mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-10-01 09:46:30 +13:00
dd56797cd7
Making sure that manuskript.exe builds with the correct icon means not only that any shortcuts created to the file have the proper icon, but also that we are rid of the generic PyInstaller icon we have been shipping until now. Hurrah! Note that relative paths do not seem to work for icon files because PyInstaller tries to look for them in the build directory. To work around this problem, we explicitly join the relative path on the SPECPATH constant which seems to satisfy PyInstaller well enough.
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
# -*- mode: python -*-
|
|
|
|
block_cipher = None
|
|
|
|
|
|
a = Analysis(['bin/manuskript'],
|
|
pathex=['.'],
|
|
binaries=None,
|
|
datas=[
|
|
("icons", "icons"),
|
|
("libs", "libs"),
|
|
("resources", "resources"),
|
|
("sample-projects", "sample-projects"),
|
|
("i18n", "i18n"),
|
|
],
|
|
hiddenimports=["xml.dom"],
|
|
hookspath=[],
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
win_no_prefer_redirects=False,
|
|
win_private_assemblies=False,
|
|
cipher=block_cipher)
|
|
pyz = PYZ(a.pure, a.zipped_data,
|
|
cipher=block_cipher)
|
|
exe = EXE(pyz,
|
|
a.scripts,
|
|
exclude_binaries=True,
|
|
name='manuskript',
|
|
debug=False,
|
|
strip=False,
|
|
upx=True,
|
|
console=True,
|
|
icon=os.path.join(SPECPATH, 'icons/Manuskript/manuskript.ico') )
|
|
coll = COLLECT(exe,
|
|
a.binaries,
|
|
a.zipfiles,
|
|
a.datas,
|
|
strip=False,
|
|
upx=True,
|
|
name='manuskript')
|