-
Notifications
You must be signed in to change notification settings - Fork 0
Add missing PyInstaller spec file for GitHub Actions build #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| # -*- mode: python ; coding: utf-8 -*- | ||
|
|
||
| import sys | ||
| from pathlib import Path | ||
|
|
||
| block_cipher = None | ||
|
|
||
| # Platform-specific settings | ||
| if sys.platform == 'darwin': | ||
| icon_file = 'icons/wordweaver.icns' | ||
| elif sys.platform == 'win32': | ||
| icon_file = 'icons/wordweaver.ico' | ||
| else: | ||
| icon_file = 'icons/wordweaver.ico' | ||
|
|
||
| a = Analysis( | ||
| ['main.py'], | ||
| pathex=[], | ||
| binaries=[], | ||
| datas=[ | ||
| ('VERSION', '.'), | ||
| ('icons', 'icons'), | ||
| ], | ||
| hiddenimports=[ | ||
| 'PyQt6', | ||
| 'PyQt6.QtCore', | ||
| 'PyQt6.QtGui', | ||
| 'PyQt6.QtWidgets', | ||
| 'platformdirs', | ||
| 'pyperclip', | ||
| ], | ||
| hookspath=[], | ||
| 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) | ||
|
|
||
| exe = EXE( | ||
| pyz, | ||
| a.scripts, | ||
| [], | ||
| exclude_binaries=True, | ||
| name='Wordweaver', | ||
| debug=False, | ||
| bootloader_ignore_signals=False, | ||
| strip=False, | ||
| upx=True, | ||
| console=False, | ||
| disable_windowed_traceback=False, | ||
| argv_emulation=False, | ||
| target_arch=None, | ||
| codesign_identity=None, | ||
| entitlements_file=None, | ||
| icon=icon_file, | ||
| ) | ||
|
|
||
| coll = COLLECT( | ||
| exe, | ||
| a.binaries, | ||
| a.zipfiles, | ||
| a.datas, | ||
| strip=False, | ||
| upx=True, | ||
| upx_exclude=[], | ||
| name='Wordweaver', | ||
| ) | ||
|
|
||
| # macOS app bundle | ||
| if sys.platform == 'darwin': | ||
| app = BUNDLE( | ||
| coll, | ||
| name='Wordweaver.app', | ||
| icon='icons/wordweaver.icns', | ||
| bundle_identifier='com.prestonhager.wordweaver', | ||
| info_plist={ | ||
| 'CFBundleShortVersionString': Path('VERSION').read_text().strip(), | ||
| 'CFBundleVersion': Path('VERSION').read_text().strip(), | ||
|
Comment on lines
+82
to
+83
|
||
| 'NSHighResolutionCapable': True, | ||
| 'LSMinimumSystemVersion': '10.13', | ||
| }, | ||
| ) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding 'ipapy.ipachar' and potentially other ipapy submodules to the hiddenimports list. The code uses dynamic imports from ipapy (e.g., 'from ipapy import IPA_CHARS' inside a function in phonology.py) which PyInstaller's static analysis may not detect. This could cause runtime import errors in the bundled executable.