Skip to content

Commit a049ecd

Browse files
author
Simeon Kummer
committed
fix macOS artifacts
1 parent 64ca989 commit a049ecd

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

.github/workflows/electron-build.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,54 +68,55 @@ jobs:
6868
echo "dist/mac-arm64 directory not found!"
6969
fi
7070
71-
# Create directory for zip files
72-
mkdir -p dist/zipped
71+
# Create artifact directories
72+
mkdir -p dist/intel
73+
mkdir -p dist/apple-silicon
7374
74-
# Remove quarantine attributes and create zip for Intel build
75+
# Remove quarantine attributes and copy Intel build
7576
if [ -d "dist/mac/BlitzLauncher.app" ]; then
7677
echo "Removing quarantine attributes from Intel build"
7778
sudo xattr -cr dist/mac/BlitzLauncher.app
7879
79-
echo "Creating zip archive for Intel build"
80-
cd dist/mac
81-
zip -r ../zipped/BlitzLauncher-intel.zip BlitzLauncher.app
82-
cd ../..
80+
echo "Copying Intel build to artifact directory"
81+
cp -r dist/mac/BlitzLauncher.app dist/intel/
8382
else
8483
echo "Intel build not found at expected location: dist/mac/BlitzLauncher.app"
8584
fi
8685
87-
# Remove quarantine attributes and create zip for ARM build
86+
# Remove quarantine attributes and copy ARM build
8887
if [ -d "dist/mac-arm64/BlitzLauncher.app" ]; then
8988
echo "Removing quarantine attributes from ARM build"
9089
sudo xattr -cr dist/mac-arm64/BlitzLauncher.app
9190
92-
echo "Creating zip archive for ARM build"
93-
cd dist/mac-arm64
94-
zip -r ../zipped/BlitzLauncher-apple-silicon.zip BlitzLauncher.app
95-
cd ../..
91+
echo "Copying ARM build to artifact directory"
92+
cp -r dist/mac-arm64/BlitzLauncher.app dist/apple-silicon/
9693
else
9794
echo "ARM build not found at expected location: dist/mac-arm64/BlitzLauncher.app"
9895
fi
9996
env:
10097
GH_TOKEN: ${{ secrets.GH_TOKEN }}
10198

102-
# Upload macOS Intel (x64) zip artifact
99+
# Upload macOS Intel (x64) artifact
103100
- name: Upload macOS Intel artifact
104101
if: matrix.os == 'macos-latest'
105102
uses: actions/upload-artifact@v4
106103
with:
107104
name: "BlitzLauncher-macos-intel"
108-
path: dist/zipped/BlitzLauncher-intel.zip
105+
path: dist/intel/BlitzLauncher.app
109106
if-no-files-found: warn
107+
compression-level: 0
108+
overwrite: true
110109

111-
# Upload macOS ARM (Apple Silicon) zip artifact
110+
# Upload macOS ARM (Apple Silicon) artifact
112111
- name: Upload macOS ARM artifact
113112
if: matrix.os == 'macos-latest'
114113
uses: actions/upload-artifact@v4
115114
with:
116115
name: "BlitzLauncher-macos-apple-silicon"
117-
path: dist/zipped/BlitzLauncher-apple-silicon.zip
116+
path: dist/apple-silicon/BlitzLauncher.app
118117
if-no-files-found: warn
118+
compression-level: 0
119+
overwrite: true
119120

120121
- name: Package application (Linux)
121122
if: matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)