Pyinstaller

This commit is contained in:
Yax 2023-11-11 15:07:18 +01:00
parent 95695f6626
commit 343c32b8c1
2 changed files with 5 additions and 9 deletions

View file

@ -5,6 +5,8 @@ ifeq (run,$(firstword $(MAKECMDGOALS)))
$(eval $(RUN_ARGS):;@:)
endif
.PHONY: all build run test
# code quality
all: black typehint lint
@ -24,8 +26,9 @@ test:
rye run coverage report
# build
#rye run pyinstaller src/stacosys/run.py --name stacosys --onefile
build:
rye run pyinstaller stacosys.spec
rye run pyinstaller --clean stacosys.spec
# run
run:

View file

@ -1,9 +1,6 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(
['src/stacosys/run.py'],
pathex=[],
@ -14,18 +11,14 @@ a = Analysis(
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)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='stacosys',