diff options
author | doc <doc@filenotfound.org> | 2025-06-28 21:03:28 +0000 |
---|---|---|
committer | doc <doc@filenotfound.org> | 2025-06-28 21:03:28 +0000 |
commit | 86ee174c9d81c0ed5672113fcd8e76cf30c671ec (patch) | |
tree | 78336d6aee604dad9d385b275fff7016699bd33b /radiotoot.spec |
Diffstat (limited to 'radiotoot.spec')
-rw-r--r-- | radiotoot.spec | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/radiotoot.spec b/radiotoot.spec new file mode 100644 index 0000000..ccd2366 --- /dev/null +++ b/radiotoot.spec @@ -0,0 +1,48 @@ +# radiotoot.spec +# PyInstaller spec for building a single-file radiotoot binary + +block_cipher = None + +a = Analysis( + ['app.py'], + pathex=['.'], + binaries=[], + datas=[ + ('templates', 'templates'), + ('.env', '.'), + ('migrations', 'migrations'), + ], + hiddenimports=[], + hookspath=[], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, +) + +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + +exe = EXE( + pyz, + a.scripts, + [], + exclude_binaries=True, + name='radiotoot', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=True # set to False if GUI +) + +coll = COLLECT( + exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='radiotoot' +) |