Skip to content

Commit b12a7a4

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

File tree

1 file changed

+28
-17
lines changed

1 file changed

+28
-17
lines changed

.github/workflows/electron-build.yml

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,55 +68,66 @@ jobs:
6868
echo "dist/mac-arm64 directory not found!"
6969
fi
7070
71-
# Create artifact directories
72-
mkdir -p dist/intel
73-
mkdir -p dist/apple-silicon
71+
# Create completely separate artifact directories outside of the dist folder
72+
mkdir -p macos-intel-artifact
73+
mkdir -p macos-silicon-artifact
7474
75-
# Remove quarantine attributes and copy Intel build
75+
# Process Intel build
7676
if [ -d "dist/mac/BlitzLauncher.app" ]; then
7777
echo "Removing quarantine attributes from Intel build"
7878
sudo xattr -cr dist/mac/BlitzLauncher.app
7979
80-
echo "Copying Intel build to artifact directory"
81-
cp -r dist/mac/BlitzLauncher.app dist/intel/
80+
echo "Copying Intel build to dedicated artifact directory"
81+
cp -r dist/mac/BlitzLauncher.app macos-intel-artifact/
82+
83+
# Create basic readme so users know what this is
84+
echo "BlitzLauncher for macOS (Intel/x64)" > macos-intel-artifact/README.txt
8285
else
8386
echo "Intel build not found at expected location: dist/mac/BlitzLauncher.app"
87+
echo "Build not found" > macos-intel-artifact/MISSING.txt
8488
fi
8589
86-
# Remove quarantine attributes and copy ARM build
90+
# Process ARM build
8791
if [ -d "dist/mac-arm64/BlitzLauncher.app" ]; then
8892
echo "Removing quarantine attributes from ARM build"
8993
sudo xattr -cr dist/mac-arm64/BlitzLauncher.app
9094
91-
echo "Copying ARM build to artifact directory"
92-
cp -r dist/mac-arm64/BlitzLauncher.app dist/apple-silicon/
95+
echo "Copying ARM build to dedicated artifact directory"
96+
cp -r dist/mac-arm64/BlitzLauncher.app macos-silicon-artifact/
97+
98+
# Create basic readme so users know what this is
99+
echo "BlitzLauncher for macOS (Apple Silicon/ARM64)" > macos-silicon-artifact/README.txt
93100
else
94101
echo "ARM build not found at expected location: dist/mac-arm64/BlitzLauncher.app"
102+
echo "Build not found" > macos-silicon-artifact/MISSING.txt
95103
fi
104+
105+
# Show what's in each artifact directory
106+
echo "=== Intel artifact directory contents ==="
107+
ls -la macos-intel-artifact/
108+
109+
echo "=== Apple Silicon artifact directory contents ==="
110+
ls -la macos-silicon-artifact/
96111
env:
97112
GH_TOKEN: ${{ secrets.GH_TOKEN }}
98113

99-
# Upload macOS Intel (x64) artifact
114+
# Upload macOS Intel build as separate step with very explicit path
100115
- name: Upload macOS Intel artifact
101116
if: matrix.os == 'macos-latest'
102117
uses: actions/upload-artifact@v4
103118
with:
104119
name: "BlitzLauncher-macos-intel"
105-
path: dist/intel/BlitzLauncher.app
120+
path: macos-intel-artifact
106121
if-no-files-found: warn
107-
compression-level: 0
108-
overwrite: true
109122

110-
# Upload macOS ARM (Apple Silicon) artifact
123+
# Upload macOS ARM build as separate step with very explicit path
111124
- name: Upload macOS ARM artifact
112125
if: matrix.os == 'macos-latest'
113126
uses: actions/upload-artifact@v4
114127
with:
115128
name: "BlitzLauncher-macos-apple-silicon"
116-
path: dist/apple-silicon/BlitzLauncher.app
129+
path: macos-silicon-artifact
117130
if-no-files-found: warn
118-
compression-level: 0
119-
overwrite: true
120131

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

0 commit comments

Comments
 (0)