diff --git a/favicon.icns b/favicon.icns new file mode 100644 index 0000000..a6b15ec Binary files /dev/null and b/favicon.icns differ diff --git a/fluentdna.spec b/fluentdna.spec index 58b5df4..e166131 100644 --- a/fluentdna.spec +++ b/fluentdna.spec @@ -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')