diff --git a/Makefile b/Makefile index 7783729..8ab4938 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/stacosys.spec b/stacosys.spec index 8b8ca35..da67012 100644 --- a/stacosys.spec +++ b/stacosys.spec @@ -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',