-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated .spec file so that it can generate the MAC OSX distribution f…
…or a console application. Added favicon.icns that will be useful eventually for the windowed mac OSX app icon.
- Loading branch information
1 parent
3cd2580
commit 6bf5774
Showing
2 changed files
with
41 additions
and
27 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,49 @@ | ||
# -*- mode: python -*- | ||
from PyInstaller.compat import is_darwin | ||
|
||
block_cipher = None | ||
pathextras=['D:\\josiah\\Projects\\DDV'] | ||
mainexepath=['DDV\\fluentdna.py'] | ||
excludelibs=[] | ||
if is_darwin: pathextras=[] | ||
if is_darwin: excludelibs=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'] | ||
if is_darwin: mainexepath=['DDV/fluentdna.py'] | ||
|
||
# Icons: https://stackoverflow.com/questions/9946760/add-image-to-spec-file-in-pyinstaller | ||
a = Analysis(['DDV\\fluentdna.py'], | ||
pathex=['D:\\josiah\\Projects\\DDV'], | ||
binaries=[], | ||
datas=[('DDV/example_data', 'DDV/example_data'), | ||
('DDV/html_template','DDV/html_template')], | ||
hiddenimports=[], | ||
hookspath=[], | ||
runtime_hooks=[], | ||
excludes=[], | ||
win_no_prefer_redirects=False, | ||
win_private_assemblies=False, | ||
cipher=block_cipher) | ||
a = Analysis(mainexepath, | ||
pathex=pathextras, | ||
binaries=[], | ||
datas=[('DDV/example_data', 'DDV/example_data'), | ||
('DDV/html_template','DDV/html_template')], | ||
hiddenimports=[], | ||
hookspath=[], | ||
runtime_hooks=[], | ||
excludes=excludelibs, | ||
win_no_prefer_redirects=False, | ||
win_private_assemblies=False, | ||
cipher=block_cipher) | ||
|
||
pyz = PYZ(a.pure, a.zipped_data, | ||
cipher=block_cipher) | ||
exe = EXE(pyz, | ||
a.scripts, | ||
exclude_binaries=True, | ||
name='FluentDNA', | ||
debug=False, | ||
strip=False, | ||
upx=True, | ||
console=True, | ||
icon='D:\\josiah\\Projects\\DDV\\favicon.ico') | ||
a.scripts, | ||
exclude_binaries=True, | ||
name='FluentDNA', | ||
debug=False, | ||
strip=False, | ||
upx=True, | ||
console=True, | ||
icon='favicon.ico') | ||
|
||
coll = COLLECT(exe, | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
strip=False, | ||
upx=True, | ||
name='FluentDNA') | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
strip=False, | ||
upx=True, | ||
name='FluentDNA') | ||
|
||
#the app will be useful ONLY for the MAC GUI/windowed version | ||
#if is_darwin: | ||
# app = BUNDLE(exe, | ||
# name='FluentDNA.app', | ||
# icon='favicon.icns') |