From 8d4918b4600edf8581e27153ffc0f4c0fbc7bef8 Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Fri, 26 Apr 2024 14:05:13 +0930 Subject: [PATCH] another try --- .github/workflows/pull-request.yml | 2 +- horus-gui_osx_runner.spec | 45 ++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 horus-gui_osx_runner.spec diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index d16a182..b3b85ac 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -110,7 +110,7 @@ jobs: cp horusdemodlib/build/src/libhorus.dylib . - name: Run pyinstaller - run: pyinstaller horus-gui_osx.spec + run: pyinstaller horus-gui_osx_runner.spec - name: Upload Artifact uses: actions/upload-artifact@v4 diff --git a/horus-gui_osx_runner.spec b/horus-gui_osx_runner.spec new file mode 100644 index 0000000..2ac943e --- /dev/null +++ b/horus-gui_osx_runner.spec @@ -0,0 +1,45 @@ +# -*- mode: python ; coding: utf-8 -*- + +block_cipher = None + + +a = Analysis(['horus-gui.py'], + pathex=['.'], + binaries=[('libhorus.dylib','.')], + datas=[], + hiddenimports=[], + hookspath=[], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + [], + exclude_binaries=True, + name='horus-gui', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=False , icon='doc/horus_logo.icns') +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='horus-gui') +app = BUNDLE(coll, + name='horus-gui.app', + icon='doc/horus_logo.icns', + bundle_identifier=None, + info_plist={ + 'NSMicrophoneUsageDescription': 'Horus-GUI needs audio access to receive telemetry.' + }, + )