aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-07-17 19:23:22 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-07-17 19:23:22 +0200
commit203cd9d42180ef21b938d224705783949194f03a (patch)
tree2be50f5c59e5e6aa83792e370ff52dd07f68168f
parent06d5047012d79a3e986ab46598df56002d7a9e81 (diff)
downloadquiz-203cd9d42180ef21b938d224705783949194f03a.tar.gz
quiz-203cd9d42180ef21b938d224705783949194f03a.zip
add sounds and github action to build a windows executable
-rw-r--r--.github/workflows/build-windows.yml22
-rw-r--r--Correct.mp3bin0 -> 34376 bytes
-rw-r--r--Wrong.mp3bin0 -> 61968 bytes
-rw-r--r--quiz.spec50
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
new file mode 100644
index 0000000..bd04893
--- /dev/null
+++ b/Correct.mp3
Binary files differ
diff --git a/Wrong.mp3 b/Wrong.mp3
new file mode 100644
index 0000000..62b4160
--- /dev/null
+++ b/Wrong.mp3
Binary files differ
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',
+)