-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathglue_app.spec
119 lines (106 loc) · 2.69 KB
/
glue_app.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# -*- mode: python ; coding: utf-8 -*-
import os
import sys
sys.setrecursionlimit(sys.getrecursionlimit() * 5)
# Version needs to be three integers separated by period, which is
# the case for stable tags, but otherwise we need to use a dummy version
glue_version = os.environ.get("GITHUB_REF_NAME", "")
if glue_version.count(".") == 2:
VERSION = glue_version
else:
VERSION = "1.0.0"
if os.name == "nt":
icon = os.path.abspath("icon.ico")
onefile = True
elif sys.platform == "darwin":
icon = os.path.abspath(os.path.join("osx", "icon.icns"))
onefile = False
else:
icon = None
onefile = True
block_cipher = None
a = Analysis(
["start_glue.py"],
pathex=["start-glue"],
binaries=[],
hiddenimports=[
"glue_vispy_viewers",
"vispy",
"notebook",
"freetype",
"glue_qt",
"glue_wwt",
"glue_plotly",
"glue_statistics",
"pvextractor",
"PyQt6.QtTest",
],
hookspath=["hooks"],
hooksconfig={
"matplotlib": {"backends": "all"},
},
runtime_hooks=[],
excludes=[
"tkinter",
"PyQt5.QtQml",
"joblib",
],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
if onefile:
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name="glue",
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
console=True,
icon=icon,
)
else:
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name="start_glue",
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
console=False,
icon=icon,
argv_emulation=True,
)
coll = COLLECT(
exe, a.binaries, a.zipfiles, a.datas, strip=False, upx=False, name="start_glue"
)
app = BUNDLE(
coll,
name="glue.app",
icon=icon,
info_plist={
"CFBundleName": "glueviz",
"CFBundleDisplayName": "glueviz",
"CFBundleVersion": VERSION,
"CFBundleShortVersionString": VERSION,
"NSHighResolutionCapable": "True",
"LSApplicationCategoryType": "public.app-category.education",
"CFBundleDocumentTypes": [
{
"CFBundleTypeName": "Glue Session Files",
"CFBundleTypeExtensions": ["glu"],
"CFBundleTypeRole": "Viewer",
}
],
},
bundle_identifier="io.gluesolutions.glueviz",
)