From ea68f49d2155fe4f0788099434c228892c4730f9 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Sun, 21 Mar 2021 00:35:48 +0100 Subject: [PATCH] [specs] onefile build for macos --- .github/workflows/python-app_macos.yml | 2 +- README.md | 7 ++----- blipblop_darwin.spec | 28 +++++++++++++++----------- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/python-app_macos.yml b/.github/workflows/python-app_macos.yml index a4f2761..3873def 100644 --- a/.github/workflows/python-app_macos.yml +++ b/.github/workflows/python-app_macos.yml @@ -36,7 +36,7 @@ jobs: - name: create package run: | pyrcc5 resources.qrc -o resources.py - pyinstaller --osx-bundle-identifier="de.uni-tuebingen.neuroetho.blipblop" blipblop_darwin.spec + pyinstaller blipblop_darwin.spec - name: Upload a Build Artifact uses: actions/upload-artifact@v2.2.2 diff --git a/README.md b/README.md index 8152df1..726fe9d 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,7 @@ # BlibBlop -A PyQt5 based cross-platform experiment for measuring reaction times in human observers. - - - +A PyQt5 based cross-platform tool to run tiny experiment for measuring reaction times in human observers to visual or auditory stimuli. ## Dependencies + - PyQt5 -- numpy diff --git a/blipblop_darwin.spec b/blipblop_darwin.spec index d6d930e..65ac540 100644 --- a/blipblop_darwin.spec +++ b/blipblop_darwin.spec @@ -4,7 +4,7 @@ block_cipher = None a = Analysis(['blipblop_main.py'], - pathex=['.'], + pathex=['/Users/jan/projects/programming/blipblop'], binaries=[], datas=[('docs/index.md', "docs"), ('docs/visual_task.md', "docs"), @@ -38,21 +38,25 @@ pyz = PYZ(a.pure, a.zipped_data, exe = EXE(pyz, a.scripts, + a.binaries, + a.zipfiles, + a.datas, [], name='BlipBlop', debug=True, bootloader_ignore_signals=False, strip=False, upx=True, - console=True, - icon='icons/blipblop_logo.icns' - ) + upx_exclude=[], + runtime_tmpdir=None, + console=False , icon='icons/blipblop_logo.icns') -coll = COLLECT(exe, - a.binaries, - a.zipfiles, - a.datas, - strip=False, - upx=True, - upx_exclude=[], - name='BlipBlop') +app = BUNDLE(exe, + name='BlipBlop.app', + icon='icons/blipblop_logo.icns', + bundle_identifier='de.uni-tuebingen.neuroetho.blipblop', + info_plist={ + 'NSPrincipalClass': 'NSApplication', + 'NSAppleScriptEnabled': False, + }, +)