-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fbs was holding back the code from using modern versions of python, qt, and everything else. Remove fsb and update everything. * Remove fbs from spec * update to python 3.12 * update all dependencies to latest minor releases * update to latest version of pyinstaller * re-implement part of fbs context object to minimize refactoring * update Vial.spec to have all options necessary to run
- Loading branch information
Showing
9 changed files
with
156 additions
and
60 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,3 +3,5 @@ target | |
__pycache__ | ||
*.pyc | ||
.idea | ||
build/ | ||
dist/ |
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 |
---|---|---|
@@ -1 +1 @@ | ||
3.6.0 | ||
3.12 |
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,29 @@ | ||
# Command Line to generate a spec | ||
|
||
These are the command-line options used to generate the .spec file for pyinstaller: | ||
|
||
``` | ||
pyi-makespec \ | ||
--specpath=misc \ | ||
--name=Vial \ | ||
--add-data="../src/main/resources/base/qmk_settings.json:resources/base" \ | ||
--add-data="../src/build/settings/base.json:resources/settings" \ | ||
--add-data="../src/build/settings/linux.json:resources/settings" \ | ||
--add-data="../src/build/settings/mac.json:resources/settings" \ | ||
--windowed \ | ||
--noupx \ | ||
--icon="../src/main/icons/Icon.ico" | ||
--argv-emulation \ | ||
./src/main/python/main.py | ||
``` | ||
|
||
|
||
If you are upgrading pyinstaller and want to use new default options, you must | ||
either delete the old spec or rename it to force pyi-makespec to use updated | ||
default options. | ||
|
||
## Building from the spec | ||
|
||
``` | ||
pyinstaller misc/Vial.spec | ||
``` |
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 |
---|---|---|
@@ -1,37 +1,44 @@ | ||
# -*- mode: python ; coding: utf-8 -*- | ||
|
||
|
||
block_cipher = None | ||
a = Analysis( | ||
['..\\src\\main\\python\\main.py'], | ||
pathex=[], | ||
binaries=[], | ||
datas=[('../src/main/resources/base/qmk_settings.json', 'resources/base'), ('../src/build/settings/base.json', 'resources/settings'), ('../src/build/settings/linux.json', 'resources/settings'), ('../src/build/settings/mac.json', 'resources/settings')], | ||
hiddenimports=[], | ||
hookspath=[], | ||
hooksconfig={}, | ||
runtime_hooks=[], | ||
excludes=[], | ||
noarchive=False, | ||
) | ||
pyz = PYZ(a.pure) | ||
|
||
|
||
a = Analysis(['../src/main/python/main.py'], | ||
binaries=[], | ||
datas=[], | ||
hiddenimports=[], | ||
hookspath=[], | ||
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) | ||
exe = EXE(pyz, | ||
a.scripts, | ||
[], | ||
exclude_binaries=True, | ||
name='Vial', | ||
debug=False, | ||
bootloader_ignore_signals=False, | ||
strip=False, | ||
upx=False, | ||
console=False ) | ||
coll = COLLECT(exe, | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
strip=False, | ||
upx=False, | ||
upx_exclude=[], | ||
name='Vial') | ||
exe = EXE( | ||
pyz, | ||
a.scripts, | ||
[], | ||
exclude_binaries=True, | ||
name='Vial', | ||
debug=False, | ||
bootloader_ignore_signals=False, | ||
strip=False, | ||
upx=False, | ||
console=True, | ||
disable_windowed_traceback=False, | ||
argv_emulation=True, | ||
target_arch=None, | ||
codesign_identity=None, | ||
entitlements_file=None, | ||
icon=['..\\src\\main\\icons\\Icon.ico'], | ||
) | ||
coll = COLLECT( | ||
exe, | ||
a.binaries, | ||
a.datas, | ||
strip=False, | ||
upx=False, | ||
upx_exclude=[], | ||
name='Vial', | ||
) |
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,13 @@ | ||
REM Only useful to regenerate or add options to Vial.spec | ||
pyi-makespec ^ | ||
--specpath=misc ^ | ||
--name=Vial ^ | ||
--add-data="../src/main/resources/base/qmk_settings.json:resources/base" ^ | ||
--add-data="../src/build/settings/base.json:resources/settings" ^ | ||
--add-data="../src/build/settings/linux.json:resources/settings" ^ | ||
--add-data="../src/build/settings/mac.json:resources/settings" ^ | ||
--console ^ | ||
--noupx ^ | ||
--icon="../src/main/icons/Icon.ico" ^ | ||
--argv-emulation ^ | ||
./src/main/python/main.py |
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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
altgraph==0.17 | ||
future==0.18.2 | ||
altgraph==0.17.4 | ||
certifi==2024.2.2 | ||
future==1.0.0 | ||
hidapi==0.14.0 | ||
https://github.com/danthedeckie/simpleeval/archive/41c99b8e224a7a0ae0ac59c773598fe79a4470db.zip | ||
keyboard==0.13.5 | ||
macholib==1.14 | ||
pefile==2019.4.18 | ||
pyinstaller-hooks-contrib==2021.2 | ||
pyinstaller==4.3 | ||
packaging==24.0 | ||
pefile==2023.2.7 | ||
pyinstaller==6.5.0 | ||
pyinstaller-hooks-contrib==2024.3 | ||
PyQt5==5.15.7 | ||
PyQt5-Qt5==5.15.2 | ||
PyQt5-sip==12.9.0 | ||
PyQt5==5.15.4 | ||
PyQt5-sip==12.13.0 | ||
pywin32==306; sys_platform == 'win32' | ||
certifi | ||
pywin32-ctypes==0.2.2 | ||
setuptools==69.2.0 | ||
simpleeval==0.9.13 | ||
sip==6.8.3 |
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"mac_bundle_identifier": "" | ||
"mac_bundle_identifier": "", | ||
"organization_domain": "vial.today" | ||
} |
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