Skip to content

Commit 0badb86

Browse files
committed
Enhance macOS Intel build process for Huntarr
- Updated macOS installer workflow to enforce x86_64 architecture during pip installations and the PyInstaller build process. - Added verification steps to ensure the built binary is correctly targeting the Intel architecture. - Improved comments for clarity on architecture-specific commands.
1 parent 8c884a1 commit 0badb86

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/macos-installer-intel.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ jobs:
2929
uses: actions/setup-python@v4
3030
with:
3131
python-version: '3.9'
32+
architecture: 'x64'
3233

3334
- name: Install dependencies
3435
run: |
35-
python -m pip install --upgrade pip
36-
pip install -r requirements.txt
37-
pip install py2app==0.28.6 pyinstaller==6.1.0
36+
# Force x86_64 architecture for all pip installations
37+
arch -x86_64 python -m pip install --upgrade pip
38+
arch -x86_64 pip install -r requirements.txt
39+
arch -x86_64 pip install py2app==0.28.6 pyinstaller==6.1.0
3840
3941
- name: Extract metadata
4042
id: meta
@@ -384,7 +386,7 @@ jobs:
384386
console=True,
385387
disable_windowed_traceback=False,
386388
argv_emulation=True,
387-
target_arch=None,
389+
target_arch='x86_64',
388390
codesign_identity=None,
389391
entitlements_file=None,
390392
icon='frontend/static/logo/huntarr.icns',
@@ -422,7 +424,19 @@ jobs:
422424
EOF
423425
424426
- name: Build macOS app bundle
425-
run: python -m PyInstaller Huntarr.spec --clean --collect-all apprise
427+
run: |
428+
# Force x86_64 architecture for Intel build
429+
arch -x86_64 python -m PyInstaller Huntarr.spec --clean --collect-all apprise
430+
431+
- name: Verify architecture
432+
run: |
433+
# Verify the built binary is x86_64 (Intel)
434+
echo "Checking architecture of built binary:"
435+
file dist/Huntarr.app/Contents/MacOS/Huntarr
436+
lipo -info dist/Huntarr.app/Contents/MacOS/Huntarr || echo "lipo command not available"
437+
438+
# Also check with otool if available
439+
otool -hv dist/Huntarr.app/Contents/MacOS/Huntarr | head -10 || echo "otool command not available"
426440
427441
- name: Create PKG installer
428442
run: |

0 commit comments

Comments
 (0)