Skip to content

Commit 00c93f9

Browse files
committed
Add icon to the gui exe file
1 parent b589816 commit 00c93f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ideeplc/gui.spec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ from PyInstaller.utils.hooks import collect_all, collect_data_files
44
from PyInstaller.building.build_main import Analysis, PYZ, EXE, COLLECT
55
from PyInstaller.building.datastruct import TOC
66
from pathlib import Path
7+
from ideeplc import __version__ as version
78

89

910
os.environ["MODIN_ENGINE"] = "python"
1011

1112
app_name = "iDeepLC"
13+
app_name = f"{app_name}_{version}"
1214
script_path = "gui.py"
13-
icon_path = None
15+
icon_path = "ideeplc.ico"
1416

1517
packages = ["PIL", "requests", "torch", "ideeplc", "lxml", "pyteomics", "tqdm"]
1618
hiddenimports = set()
@@ -62,9 +64,8 @@ exe = EXE(
6264
bootloader_ignore_signals=False,
6365
strip=False,
6466
upx=True,
65-
upx_exclude=[],
66-
runtime_tmpdir=None,
6767
console=True, # GUI mode
68+
icon=icon_path,
6869
)
6970

7071
coll = COLLECT(
@@ -73,6 +74,5 @@ coll = COLLECT(
7374
a.zipfiles,
7475
a.datas,
7576
strip=False,
76-
upx=True,
7777
name=app_name,
7878
)

0 commit comments

Comments
 (0)