Skip to content

Commit 8423cf2

Browse files
committed
macos packaging spec
1 parent e5b6a5c commit 8423cf2

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

packaging/macos.spec

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import os
2+
import sys
3+
spec_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
4+
repo_root = os.path.abspath(os.path.join(spec_dir, ".."))
5+
6+
# -*- mode: python ; coding: utf-8 -*-
7+
8+
9+
a = Analysis(
10+
[os.path.join(repo_root, 'main.py')],
11+
pathex=[],
12+
binaries=[],
13+
datas=[
14+
(os.path.join(repo_root, 'codeshuffler/gui/icons'),
15+
'codeshuffler/gui/icons'),
16+
],
17+
hiddenimports=[],
18+
hookspath=[],
19+
hooksconfig={},
20+
runtime_hooks=[],
21+
excludes=[],
22+
noarchive=False,
23+
optimize=0,
24+
)
25+
26+
pyz = PYZ(a.pure)
27+
28+
exe = EXE(
29+
pyz,
30+
a.scripts,
31+
[],
32+
exclude_binaries=True,
33+
name='CodeShuffler',
34+
debug=False,
35+
bootloader_ignore_signals=False,
36+
strip=False,
37+
upx=True,
38+
console=False,
39+
argv_emulation=True,
40+
bundle_identifier="com.codeshuffler.app",
41+
icon=os.path.join(
42+
repo_root,
43+
'codeshuffler/gui/icons/codeshuffler-icon.icns',
44+
),
45+
)
46+
47+
coll = COLLECT(
48+
exe,
49+
a.binaries,
50+
a.datas,
51+
strip=False,
52+
upx=True,
53+
upx_exclude=[],
54+
name='CodeShuffler',
55+
)

0 commit comments

Comments
 (0)