summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--GCPyramid.spec55
-rw-r--r--main.spec38
3 files changed, 70 insertions, 24 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e43b0f9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.DS_Store
diff --git a/GCPyramid.spec b/GCPyramid.spec
new file mode 100644
index 0000000..d58acdb
--- /dev/null
+++ b/GCPyramid.spec
@@ -0,0 +1,55 @@
+# -*- mode: python ; coding: utf-8 -*-
+from PyInstaller.utils.hooks import collect_data_files
+
+datas = [('assets', 'assets')]
+datas += collect_data_files('sv_ttk')
+
+
+block_cipher = None
+
+
+a = Analysis(
+ ['main.py'],
+ pathex=[],
+ binaries=[],
+ datas=datas,
+ hiddenimports=[],
+ hookspath=[],
+ hooksconfig={},
+ runtime_hooks=[],
+ excludes=[],
+ win_no_prefer_redirects=False,
+ win_private_assemblies=False,
+ cipher=block_cipher,
+ noarchive=False,
+)
+pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
+
+exe = EXE(
+ pyz,
+ a.scripts,
+ a.binaries,
+ a.zipfiles,
+ a.datas,
+ [],
+ name='GCPyramid',
+ debug=False,
+ bootloader_ignore_signals=False,
+ strip=True,
+ upx=True,
+ upx_exclude=[],
+ runtime_tmpdir=None,
+ console=False,
+ disable_windowed_traceback=False,
+ argv_emulation=False,
+ target_arch='x86_64',
+ codesign_identity='16ECF592D895581CF30098ECA4234D61D323ADA7',
+ entitlements_file=None,
+ icon=['assets/logo.jpeg'],
+)
+app = BUNDLE(
+ exe,
+ name='GCPyramid.app',
+ icon='assets/logo.jpeg',
+ bundle_identifier='com.navanchauhan.gcpyramid',
+)
diff --git a/main.spec b/main.spec
index 5cecf15..574ac56 100644
--- a/main.spec
+++ b/main.spec
@@ -24,42 +24,32 @@ a = Analysis(
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
-splash = Splash(
- 'assets/GentryCapitalRGB.jpg',
- binaries=a.binaries,
- datas=a.datas,
- text_pos=None,
- text_size=12,
- minify_script=True,
- always_on_top=True,
-)
exe = EXE(
pyz,
a.scripts,
- splash,
+ a.binaries,
+ a.zipfiles,
+ a.datas,
[],
- exclude_binaries=True,
name='main',
debug=False,
bootloader_ignore_signals=False,
- strip=False,
+ strip=True,
upx=True,
- console=True,
+ upx_exclude=[],
+ runtime_tmpdir=None,
+ console=False,
disable_windowed_traceback=False,
argv_emulation=False,
- target_arch=None,
- codesign_identity=None,
+ target_arch='x86_64',
+ codesign_identity='16ECF592D895581CF30098ECA4234D61D323ADA7',
entitlements_file=None,
+ icon=['assets/logo.jpeg'],
)
-coll = COLLECT(
+app = BUNDLE(
exe,
- a.binaries,
- a.zipfiles,
- a.datas,
- splash.binaries,
- strip=False,
- upx=True,
- upx_exclude=[],
- name='main',
+ name='main.app',
+ icon='assets/logo.jpeg',
+ bundle_identifier='com.navanchauhan.gcpyramid',
)