add build scripts

This commit is contained in:
Izalia Mae 2022-05-05 17:31:31 -04:00
parent d4944946b8
commit 5dba7f8c2b
3 changed files with 58 additions and 0 deletions

3
bl2tools.py Normal file
View file

@ -0,0 +1,3 @@
from bl2tools.cli import main
main()

52
bl2tools.spec Normal file
View file

@ -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
)

3
build.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
pyvenv run PyInstaller bl2tools.spec