Skip to content

Commit

Permalink
fix setup.py for win/lin.
Browse files Browse the repository at this point in the history
  • Loading branch information
hakaishi committed Nov 26, 2020
1 parent bd2f1a4 commit 9a089cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
# Dependencies are automatically detected, but it might need
# fine tuning.
build_options = {'packages': [], 'excludes': [],
"include_files": ["file.png", "folder.png", "link.png"],
"include_files": ["file.png", "folder.png", "link.png", "tramet.png"],
"build_exe": "build/tramet/"}

import sys
base = 'Win32GUI' if sys.platform=='win32' else None
base = 'Win32GUI' if sys.platform == 'win32' else None
micon = "tramet.ico" if sys.platform == "win32" else "tramet.png"

executables = [
Executable('main.py', base=base, targetName='tramet', icon="tramet.png")
Executable('main.py', base=base, targetName='tramet', icon=micon)
]

setup(name='Tramet',
Expand Down
Binary file added tramet.ico
Binary file not shown.

0 comments on commit 9a089cb

Please sign in to comment.