Pyinstaller
This commit is contained in:
parent
95695f6626
commit
343c32b8c1
2 changed files with 5 additions and 9 deletions
5
Makefile
5
Makefile
|
@ -5,6 +5,8 @@ ifeq (run,$(firstword $(MAKECMDGOALS)))
|
||||||
$(eval $(RUN_ARGS):;@:)
|
$(eval $(RUN_ARGS):;@:)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
.PHONY: all build run test
|
||||||
|
|
||||||
# code quality
|
# code quality
|
||||||
all: black typehint lint
|
all: black typehint lint
|
||||||
|
|
||||||
|
@ -24,8 +26,9 @@ test:
|
||||||
rye run coverage report
|
rye run coverage report
|
||||||
|
|
||||||
# build
|
# build
|
||||||
|
#rye run pyinstaller src/stacosys/run.py --name stacosys --onefile
|
||||||
build:
|
build:
|
||||||
rye run pyinstaller stacosys.spec
|
rye run pyinstaller --clean stacosys.spec
|
||||||
|
|
||||||
# run
|
# run
|
||||||
run:
|
run:
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
# -*- mode: python ; coding: utf-8 -*-
|
# -*- mode: python ; coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
block_cipher = None
|
|
||||||
|
|
||||||
|
|
||||||
a = Analysis(
|
a = Analysis(
|
||||||
['src/stacosys/run.py'],
|
['src/stacosys/run.py'],
|
||||||
pathex=[],
|
pathex=[],
|
||||||
|
@ -14,18 +11,14 @@ a = Analysis(
|
||||||
hooksconfig={},
|
hooksconfig={},
|
||||||
runtime_hooks=[],
|
runtime_hooks=[],
|
||||||
excludes=[],
|
excludes=[],
|
||||||
win_no_prefer_redirects=False,
|
|
||||||
win_private_assemblies=False,
|
|
||||||
cipher=block_cipher,
|
|
||||||
noarchive=False,
|
noarchive=False,
|
||||||
)
|
)
|
||||||
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
pyz = PYZ(a.pure)
|
||||||
|
|
||||||
exe = EXE(
|
exe = EXE(
|
||||||
pyz,
|
pyz,
|
||||||
a.scripts,
|
a.scripts,
|
||||||
a.binaries,
|
a.binaries,
|
||||||
a.zipfiles,
|
|
||||||
a.datas,
|
a.datas,
|
||||||
[],
|
[],
|
||||||
name='stacosys',
|
name='stacosys',
|
||||||
|
|
Loading…
Add table
Reference in a new issue