This repository has been archived on 2024-09-17. You can view files and clone it, but cannot push or open issues or pull requests.
LoN-Deployer/lon_deployer/pyinstaller.py

18 lines
367 B
Python
Raw Normal View History

2024-05-06 16:14:10 +00:00
import PyInstaller.__main__
from pathlib import Path
HERE = Path(__file__).parent.parent.absolute()
path_to_main = str(HERE / "run.py")
def install():
PyInstaller.__main__.run([
path_to_main,
'--onefile',
'--collect-submodules',
'--name LoN Deployer',
"-i",
"NONE",
# other pyinstaller options...
])