Skip to content

Commit 94a5419

Browse files
committed
Adding / fixing AppDistrib
1 parent f70bfe0 commit 94a5419

File tree

2 files changed

+28
-14
lines changed

2 files changed

+28
-14
lines changed

.github/workflows/linux-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ jobs:
5757
if: github.event_name == 'push'
5858
env:
5959
APPDISTRIB_TOKEN: ${{ secrets.APPDISTRIB_LINUX_X64 }}
60+
APPDISTRIB_ORGANIZATION: pcsx-redux
61+
APPDISTRIB_PROJECT: linux-x64
6062
APPCENTER_ACCESS_TOKEN: ${{ secrets.LINUX_APPCENTER_ACCESS_TOKEN }}
6163
run: |
6264
git config --global --add safe.directory /__w/pcsx-redux/pcsx-redux
6365
export BUILD=`git rev-parse HEAD | cut -c 1-8`
64-
npx @appdistrib/cli -o pcsx-redux -p linux-x64 -m AppDir/usr/share/pcsx-redux/resources/version.json upload *.AppImage
6566
zip PCSX-Redux-$BUILD-linux-x86_64.zip *.AppImage
66-
appcenter distribute release -b $BUILD -f PCSX-Redux-$BUILD-linux-x86_64.zip -g public -a grumpycoders/pcsx-redux-linux64 --disable-telemetry
67+
npx @appdistrib/cli -m AppDir/usr/share/pcsx-redux/resources/version.json upload PCSX-Redux-$BUILD-linux-x86_64.zip
68+
npx appcenter distribute release -b $BUILD -f PCSX-Redux-$BUILD-linux-x86_64.zip -g public -a grumpycoders/pcsx-redux-linux64 --disable-telemetry

.github/workflows/macos-build.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Build OpenBIOS
2525
run: make -C src/mips/openbios -j2
2626
- name: Upload results for MacOS build job
27-
uses: actions/upload-artifact@v3
27+
uses: actions/upload-artifact@v4
2828
with:
2929
name: OpenBIOS
3030
path: src/mips/openbios/openbios.bin
@@ -33,7 +33,7 @@ jobs:
3333
make -C src/mips/openbios -j 2 clean
3434
make -C src/mips/tests -j 2 PCSX_TESTS=true
3535
- name: Upload results for MacOS build job
36-
uses: actions/upload-artifact@v3
36+
uses: actions/upload-artifact@v4
3737
with:
3838
name: tests
3939
path: '**/*.ps-exe'
@@ -53,11 +53,11 @@ jobs:
5353
- name: Build PCSX-Redux
5454
run: make -j 2 all pcsx-redux-tests
5555
- name: Download OpenBIOS build
56-
uses: actions/download-artifact@v3
56+
uses: actions/download-artifact@v4
5757
with:
5858
name: OpenBIOS
5959
- name: Download mips tests
60-
uses: actions/download-artifact@v3
60+
uses: actions/download-artifact@v4
6161
with:
6262
name: tests
6363
- name: Bundle
@@ -99,18 +99,23 @@ jobs:
9999
- name: Creating Application link
100100
run: ln -s /Applications dmgdir
101101
- 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
103103
- name: Applying icon to dmg file
104104
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
107107
- name: Removing temporary dmg folder
108108
run: rm -rf dmgdir
109109
- name: Upload DMG
110-
uses: actions/upload-artifact@v2
110+
uses: actions/upload-artifact@v4
111111
with:
112112
name: Dmg
113113
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
114119

115120
publish-app:
116121
runs-on: ubuntu-latest
@@ -125,15 +130,22 @@ jobs:
125130
uses: actions/setup-node@v4
126131
with:
127132
node-version: 'latest'
128-
- name: Install appcenter
129-
run: npm install -g appcenter-cli
130133
- name: Create BUILD environment
131134
run: echo "BUILD=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
132135
- name: Download DMG
133-
uses: actions/download-artifact@v2
136+
uses: actions/download-artifact@v4
134137
with:
135138
name: Dmg
139+
- name: Download version
140+
uses: actions/download-artifact@v4
141+
with:
142+
name: Version
136143
- name: Distribute app
137144
env:
145+
APPDISTRIB_TOKEN: ${{ secrets.APPDISTRIB_MACOS_X64 }}
146+
APPDISTRIB_ORGANIZATION: pcsx-redux
147+
APPDISTRIB_PROJECT: macos-x64
138148
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

Comments
 (0)