@@ -99,25 +99,49 @@ jobs:
99
99
sudo xattr -cr dist/mac-x64/*.app || echo "No .app files found in x64 directory"
100
100
sudo xattr -cr dist/mac-arm64/*.app || echo "No .app files found in arm64 directory"
101
101
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
105
110
env :
106
111
GH_TOKEN : ${{ secrets.GH_TOKEN }}
107
112
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
+
108
131
- name : Package application (Linux)
109
132
if : matrix.os == 'ubuntu-latest'
110
133
run : npm run package-linux
111
134
env :
112
135
GH_TOKEN : ${{ secrets.GH_TOKEN }}
113
136
114
- - name : Upload artifacts
137
+ # Upload artifacts for Windows and Linux
138
+ - name : Upload Windows and Linux artifacts
139
+ if : matrix.os != 'macos-latest'
115
140
uses : actions/upload-artifact@v4
116
141
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' }}"
118
143
path : |
119
144
dist/*.exe
120
- BlitzLauncher-*.zip
121
145
dist/*.AppImage
122
146
dist/*.deb
123
147
if-no-files-found : warn
0 commit comments