diff --git a/bl2tools.py b/bl2tools.py new file mode 100644 index 0000000..bb463df --- /dev/null +++ b/bl2tools.py @@ -0,0 +1,3 @@ +from bl2tools.cli import main + +main() diff --git a/bl2tools.spec b/bl2tools.spec new file mode 100644 index 0000000..7658c2d --- /dev/null +++ b/bl2tools.spec @@ -0,0 +1,52 @@ +# -*- mode: python ; coding: utf-8 -*- +import izzylib_http_async +from pathlib import Path + + +block_cipher = None + + +a = Analysis( + ['bl2tools.py'], + pathex=[], + binaries=[], + datas=[ + (str(Path(izzylib_http_async.__file__).parent.joinpath('frontend')), '/izzylib_frontend'), + ('bl2tools/frontend/*', '/frontend') + ], + hiddenimports=[ + 'izzylib_http_async.server.application', + 'http_router.utils' + ], + 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, + a.binaries, + a.zipfiles, + a.datas, + [], + name='bl2tools', + debug=None, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None +) diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..dd18398 --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +pyvenv run PyInstaller bl2tools.spec