From dd56797cd727b6c0c4c1b454a0a7baf38942fd08 Mon Sep 17 00:00:00 2001 From: Jan Wester Date: Thu, 7 Mar 2019 21:30:56 +0100 Subject: [PATCH] Build manuskript.exe with the correct icon 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. --- manuskript.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manuskript.spec b/manuskript.spec index d375f65..550db7b 100644 --- a/manuskript.spec +++ b/manuskript.spec @@ -29,7 +29,8 @@ exe = EXE(pyz, debug=False, strip=False, upx=True, - console=True ) + console=True, + icon=os.path.join(SPECPATH, 'icons/Manuskript/manuskript.ico') ) coll = COLLECT(exe, a.binaries, a.zipfiles,