Skip to content

Commit aaba27b

Browse files
committed
fix: build for both Apple silicon and Intel platforms for MacOS
1 parent 3434dcb commit aaba27b

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,13 @@ jobs:
167167
168168
# ── PyInstaller ───────────────────────────────────────────────────────
169169
- name: Build with PyInstaller
170-
run: pyinstaller OpenScenarioDrive.spec --noconfirm
170+
shell: bash
171+
run: |
172+
if [ "$RUNNER_OS" = "macOS" ]; then
173+
pyinstaller OpenScenarioDrive.spec --noconfirm --target-arch universal2
174+
else
175+
pyinstaller OpenScenarioDrive.spec --noconfirm
176+
fi
171177
172178
# ── Linux - AppImage ──────────────────────────────────────────────────
173179
- name: Install xcb runtime libs (Linux)
@@ -341,6 +347,12 @@ jobs:
341347
342348
### macOS
343349
Open the `.dmg`, drag **OpenScenarioDrive** to Applications, then launch it.
350+
351+
> **macOS security warning:** Because the app is not notarized, macOS may block it. Right-click
352+
> the app → **Open** → **Open** to bypass Gatekeeper, or run:
353+
> `xattr -rd com.apple.quarantine /Applications/OpenScenarioDrive.app`
354+
>
355+
> The DMG is a universal binary and runs natively on both Intel and Apple Silicon Macs.
344356
files: |
345357
artifacts/OpenScenarioDrive-Linux/OpenScenarioDrive-Linux-x86_64.AppImage
346358
artifacts/OpenScenarioDrive-Windows/OpenScenarioDrive-Windows-Setup.exe

0 commit comments

Comments
 (0)