-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced convert-to-exe.bat with convert-to-exe.py
This makes it much easier for anyone other than myself to build the source code into binaries, since the paths are all dynamically created.
- Loading branch information
Showing
2 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from PyInstaller.__main__ import run | ||
|
||
import PyQt6 | ||
import pathlib | ||
|
||
pyqt6_dir = pathlib.Path(PyQt6.__file__).parent | ||
|
||
if __name__ == '__main__': | ||
run([ | ||
'run.py', | ||
'--name', 'Beskar', | ||
'--clean', | ||
'--noconfirm', | ||
'--icon', r'beskar\images\beskar-icon.ico', | ||
'--paths', f'{pyqt6_dir / "Qt6" / "bin"}', | ||
f'--paths', f'{pyqt6_dir / "Qt6" / "plugins" / "platforms"}', | ||
'--hidden-import', 'PyQt6.sip', | ||
'--hidden-import', 'PyQt6.QtPrintSupport', | ||
'--add-data', 'beskar\images;images', | ||
'--add-data', f'{pyqt6_dir / "Qt6" / "plugins" / "platforms"};platforms', | ||
'--add-data', f'{pyqt6_dir / "Qt6" / "plugins" / "styles"};styles' | ||
]) |