diff --git a/JNote.spec b/JNote.spec index 919103b..ce8653f 100644 --- a/JNote.spec +++ b/JNote.spec @@ -1,6 +1,7 @@ # -*- mode: python ; coding: utf-8 -*- from os.path import abspath as path +from sys import platform block_cipher = None @@ -34,21 +35,42 @@ a = Analysis(['main.py'], noarchive=False) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) -exe = EXE(pyz, + +if platform == "darwin": + exe = EXE(pyz, a.scripts, + a.binaries, + a.zipfiles, + a.datas, [], - exclude_binaries=True, name='JNote', - debug=True, + debug=False, bootloader_ignore_signals=False, strip=False, upx=False, - console=True, icon="icons/favicon.ico") -coll = COLLECT(exe, - a.binaries, - a.zipfiles, - a.datas, - strip=False, - upx=False, - upx_exclude=[], - name='JNote') \ No newline at end of file + upx_exclude=[], + runtime_tmpdir=None, + console=False ) + app = BUNDLE(exe, + name='JNote.app', + icon="icons/favicon.icns", + bundle_identifier=None) +else: + exe = EXE(pyz, + a.scripts, + [], + exclude_binaries=True, + name='JNote', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=False, + console=False, icon="icons/favicon.ico") + coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=False, + upx_exclude=[], + name='JNote') \ No newline at end of file