Skip to content

Commit

Permalink
ci: icon or icns
Browse files Browse the repository at this point in the history
  • Loading branch information
zy7y committed Jan 10, 2024
1 parent dd20cee commit 9c8fec5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@
'--add-data', f'{yapf_third_party.__file__.replace("__init__.py", "")}:yapf_third_party',
'--clean',
'--noconfirm',
'--icon', 'static/logo.icns',
'client.py',
]

current_os = platform.system()

from PyInstaller import __main__ as pyi

pyi.run(params)
params.append("--icon"),
if current_os == "Windows":
params.append("static/logo.icns")
path = "./dist/client.exe"
else:
params.append("static/logo.icon")
path = "./dist/client"

pyi.run(params)
print(path)

0 comments on commit 9c8fec5

Please sign in to comment.