Skip to content

Commit

Permalink
Add support to build Windows version in build.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
xinan committed Apr 27, 2016
1 parent 7054c89 commit b3dcc36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# -*- mode: python -*-

import platform

block_cipher = None

icon_filename = 'icon.icns' if platform.system() == 'Darwin' else 'icon.ico'

a = Analysis(['examdownloader-gui.py'],
pathex=['.'],
binaries=None,
Expand All @@ -28,7 +32,7 @@ exe = EXE(pyz,
strip=False,
upx=True,
console=False,
icon='icon.icns')
icon=icon_filename)

app = BUNDLE(exe,
name='NUS Exams Paper Downloader.app',
Expand Down
Binary file added icon.ico
Binary file not shown.

0 comments on commit b3dcc36

Please # to comment.