24
24
- name : Build OpenBIOS
25
25
run : make -C src/mips/openbios -j2
26
26
- name : Upload results for MacOS build job
27
- uses : actions/upload-artifact@v3
27
+ uses : actions/upload-artifact@v4
28
28
with :
29
29
name : OpenBIOS
30
30
path : src/mips/openbios/openbios.bin
33
33
make -C src/mips/openbios -j 2 clean
34
34
make -C src/mips/tests -j 2 PCSX_TESTS=true
35
35
- name : Upload results for MacOS build job
36
- uses : actions/upload-artifact@v3
36
+ uses : actions/upload-artifact@v4
37
37
with :
38
38
name : tests
39
39
path : ' **/*.ps-exe'
@@ -53,11 +53,11 @@ jobs:
53
53
- name : Build PCSX-Redux
54
54
run : make -j 2 all pcsx-redux-tests
55
55
- name : Download OpenBIOS build
56
- uses : actions/download-artifact@v3
56
+ uses : actions/download-artifact@v4
57
57
with :
58
58
name : OpenBIOS
59
59
- name : Download mips tests
60
- uses : actions/download-artifact@v3
60
+ uses : actions/download-artifact@v4
61
61
with :
62
62
name : tests
63
63
- name : Bundle
@@ -99,18 +99,23 @@ jobs:
99
99
- name : Creating Application link
100
100
run : ln -s /Applications dmgdir
101
101
- name : Creating dmg file
102
- run : hdiutil create -volname PCSX-Redux-$BUILD -srcfolder dmgdir -ov -format UDZO PCSX-Redux-$BUILD.dmg
102
+ run : hdiutil create -volname PCSX-Redux-$BUILD -srcfolder dmgdir -ov -format UDZO PCSX-Redux-$BUILD-Intel .dmg
103
103
- name : Applying icon to dmg file
104
104
run : |
105
- Rez -append icns.rsrc -o PCSX-Redux-$BUILD.dmg
106
- SetFile -a C PCSX-Redux-$BUILD.dmg
105
+ Rez -append icns.rsrc -o PCSX-Redux-$BUILD-Intel .dmg
106
+ SetFile -a C PCSX-Redux-$BUILD-Intel .dmg
107
107
- name : Removing temporary dmg folder
108
108
run : rm -rf dmgdir
109
109
- name : Upload DMG
110
- uses : actions/upload-artifact@v2
110
+ uses : actions/upload-artifact@v4
111
111
with :
112
112
name : Dmg
113
113
path : ' **/*.dmg'
114
+ - name : Upload version
115
+ uses : actions/upload-artifact@v4
116
+ with :
117
+ name : Version
118
+ path : PCSX-Redux.app/Contents/Resources/share/pcsx-redux/resources/version.json
114
119
115
120
publish-app :
116
121
runs-on : ubuntu-latest
@@ -125,15 +130,22 @@ jobs:
125
130
uses : actions/setup-node@v4
126
131
with :
127
132
node-version : ' latest'
128
- - name : Install appcenter
129
- run : npm install -g appcenter-cli
130
133
- name : Create BUILD environment
131
134
run : echo "BUILD=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
132
135
- name : Download DMG
133
- uses : actions/download-artifact@v2
136
+ uses : actions/download-artifact@v4
134
137
with :
135
138
name : Dmg
139
+ - name : Download version
140
+ uses : actions/download-artifact@v4
141
+ with :
142
+ name : Version
136
143
- name : Distribute app
137
144
env :
145
+ APPDISTRIB_TOKEN : ${{ secrets.APPDISTRIB_MACOS_X64 }}
146
+ APPDISTRIB_ORGANIZATION : pcsx-redux
147
+ APPDISTRIB_PROJECT : macos-x64
138
148
APPCENTER_ACCESS_TOKEN : ${{ secrets.MACOS_APPCENTER_ACCESS_TOKEN }}
139
- run : appcenter distribute release -n 0 -b $BUILD -f PCSX-Redux-$BUILD.dmg -g 'Public' -a grumpycoders/pcsx-redux-macos --disable-telemetry
149
+ run : |
150
+ npx @appdistrib/cli -m PCSX-Redux.app/Contents/Resources/share/pcsx-redux/resources/version.json upload PCSX-Redux-$BUILD-Intel.dmg
151
+ npx appcenter distribute release -n 0 -b $BUILD -f PCSX-Redux-$BUILD-Intel.dmg -g 'Public' -a grumpycoders/pcsx-redux-macos --disable-telemetry
0 commit comments