Skip to content

Commit 2db946f

Browse files
author
Simeon Kummer
committed
fix macOS artifacts
1 parent 2ca4ac3 commit 2db946f

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

.github/workflows/electron-build.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,25 +99,49 @@ jobs:
9999
sudo xattr -cr dist/mac-x64/*.app || echo "No .app files found in x64 directory"
100100
sudo xattr -cr dist/mac-arm64/*.app || echo "No .app files found in arm64 directory"
101101
102-
# Zip the .app files
103-
cd dist/mac-x64 && zip -r ../../BlitzLauncher-x64.zip . && cd ../..
104-
cd dist/mac-arm64 && zip -r ../../BlitzLauncher-arm64.zip . && cd ../..
102+
# Move the .app files to dist for artifact collection (no need to zip)
103+
if [ -d "dist/mac-x64/BlitzLauncher-x64.app" ]; then
104+
mv dist/mac-x64/BlitzLauncher-x64.app dist/BlitzLauncher-x64.app
105+
fi
106+
107+
if [ -d "dist/mac-arm64/BlitzLauncher-arm64.app" ]; then
108+
mv dist/mac-arm64/BlitzLauncher-arm64.app dist/BlitzLauncher-arm64.app
109+
fi
105110
env:
106111
GH_TOKEN: ${{ secrets.GH_TOKEN }}
107112

113+
# Upload macOS x64 artifact
114+
- name: Upload macOS x64 artifact
115+
if: matrix.os == 'macos-latest'
116+
uses: actions/upload-artifact@v4
117+
with:
118+
name: "BlitzLauncher-macos-x64"
119+
path: dist/BlitzLauncher-x64.app
120+
if-no-files-found: warn
121+
122+
# Upload macOS arm64 artifact
123+
- name: Upload macOS arm64 artifact
124+
if: matrix.os == 'macos-latest'
125+
uses: actions/upload-artifact@v4
126+
with:
127+
name: "BlitzLauncher-macos-arm64"
128+
path: dist/BlitzLauncher-arm64.app
129+
if-no-files-found: warn
130+
108131
- name: Package application (Linux)
109132
if: matrix.os == 'ubuntu-latest'
110133
run: npm run package-linux
111134
env:
112135
GH_TOKEN: ${{ secrets.GH_TOKEN }}
113136

114-
- name: Upload artifacts
137+
# Upload artifacts for Windows and Linux
138+
- name: Upload Windows and Linux artifacts
139+
if: matrix.os != 'macos-latest'
115140
uses: actions/upload-artifact@v4
116141
with:
117-
name: "BlitzLauncher-${{ matrix.os }}.${{ matrix.os == 'windows-latest' && 'exe' || matrix.os == 'macos-latest' && '' || 'AppImage' }}"
142+
name: "BlitzLauncher-${{ matrix.os }}.${{ matrix.os == 'windows-latest' && 'exe' || 'AppImage' }}"
118143
path: |
119144
dist/*.exe
120-
BlitzLauncher-*.zip
121145
dist/*.AppImage
122146
dist/*.deb
123147
if-no-files-found: warn

0 commit comments

Comments
 (0)