diff options
| -rw-r--r-- | .github/workflows/build-windows.yml | 22 | ||||
| -rw-r--r-- | Correct.mp3 | bin | 0 -> 34376 bytes | |||
| -rw-r--r-- | Wrong.mp3 | bin | 0 -> 61968 bytes | |||
| -rw-r--r-- | quiz.spec | 50 |
4 files changed, 72 insertions, 0 deletions
diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml new file mode 100644 index 0000000..6ba1d7a --- /dev/null +++ b/.github/workflows/build-windows.yml @@ -0,0 +1,22 @@ +name: Build and package for windows + +on: + push: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Package Application + uses: JackMcKew/pyinstaller-action-windows@v0.1.5 + with: + path: . + + - uses: actions/upload-artifact@v2 + with: + name: quiz + path: dist/windows diff --git a/Correct.mp3 b/Correct.mp3 Binary files differnew file mode 100644 index 0000000..bd04893 --- /dev/null +++ b/Correct.mp3 diff --git a/Wrong.mp3 b/Wrong.mp3 Binary files differnew file mode 100644 index 0000000..62b4160 --- /dev/null +++ b/Wrong.mp3 diff --git a/quiz.spec b/quiz.spec new file mode 100644 index 0000000..c458e89 --- /dev/null +++ b/quiz.spec @@ -0,0 +1,50 @@ +# -*- mode: python ; coding: utf-8 -*- + + +block_cipher = None + + +a = Analysis( + ['quiz.py'], + pathex=[], + binaries=[], + datas=[('Correct.mp3', '.'), ('Wrong.mp3', '.')], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + 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='quiz', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +) +coll = COLLECT( + exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='quiz', +) |
