From cfe359ceafb484f5cfb6023f295a16d79696f707 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Fri, 12 Mar 2021 13:54:39 +0100 Subject: [PATCH] [spec/actions] update --- .github/workflows/python-app_linux.yml | 2 +- .github/workflows/python-app_macos.yml | 2 +- .github/workflows/python-app_win.yml | 4 +- blipblop_win.spec | 52 ++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 blipblop_win.spec diff --git a/.github/workflows/python-app_linux.yml b/.github/workflows/python-app_linux.yml index 95fe4dd..508460e 100644 --- a/.github/workflows/python-app_linux.yml +++ b/.github/workflows/python-app_linux.yml @@ -36,7 +36,7 @@ jobs: - name: create package run: | pyrcc5 resources.qrc -o resources.py - pyinstaller blipblop_linux.py + pyinstaller blipblop_linux.spec - name: Upload a Build Artifact uses: actions/upload-artifact@v2.2.2 diff --git a/.github/workflows/python-app_macos.yml b/.github/workflows/python-app_macos.yml index e94e5ea..ba25164 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 --onefile --windowed --osx-bundle-identifier="de.uni-tuebingen.neuroetho.blipblop" blipblop_dawin.py + pyinstaller --onefile --windowed --osx-bundle-identifier="de.uni-tuebingen.neuroetho.blipblop" blipblop_dawin.spec - name: Upload a Build Artifact uses: actions/upload-artifact@v2.2.2 diff --git a/.github/workflows/python-app_win.yml b/.github/workflows/python-app_win.yml index 3401d98..3a29d38 100644 --- a/.github/workflows/python-app_win.yml +++ b/.github/workflows/python-app_win.yml @@ -12,7 +12,7 @@ on: jobs: build: - runs-on: macos-10.15 + runs-on: windows-latest steps: - uses: actions/checkout@v2 @@ -36,7 +36,7 @@ jobs: - name: create package run: | pyrcc5 resources.qrc -o resources.py - pyinstaller --onefile --windowed --name="BlipBlop" --osx-bundle-identifier="de.uni-tuebingen.neuroetho.blipblop" -i icons/blipblop_logo.icns --add-data="icons/blipblop_logo.icns:." --add-data="resources.py:." blipblop.py + pyinstaller --onefile --windowed --name="BlipBlop" blipblop_win.spec - name: Upload a Build Artifact uses: actions/upload-artifact@v2.2.2 diff --git a/blipblop_win.spec b/blipblop_win.spec new file mode 100644 index 0000000..4298622 --- /dev/null +++ b/blipblop_win.spec @@ -0,0 +1,52 @@ +# -*- mode: python ; coding: utf-8 -*- + +block_cipher = None + + +a = Analysis(['blipblop_main.py'], + pathex=['.'], + binaries=[], + datas=[('docs\index.md', "docs"), + ('docs\visual_task.md', "docs"), + ('docs\auditory_task.md', "docs"), + ('docs\license.md', "docs"), + ('docs\tasks.md', "docs"), + ('docs\images\blipblop_main.png', "docs\images"), + ('docs\images\blipblop_logo.png', "docs\images"), + ('sounds\bell.wav', "sounds"), + ('sounds\complete.wav', "sounds"), + ('sounds\message.wav', "sounds"), + ('icons\blipblop_logo.ico', '.') + ], + 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='BlipBlop', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=False, + icon='icons/blipblop_logo.ico' + ) + +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='BlipBlop')