forked from renerocksai/sublimeless_zk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_macos.py
250 lines (244 loc) · 9.4 KB
/
build_macos.py
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
from cx_Freeze import setup, Executable
from bundle_version import prefix, version
import sys
sys.path.append('src')
includes = ["atexit", "PyQt5.QtCore", "PyQt5.Qt", "PyQt5.QtGui",
"PyQt5.QtWidgets", "PyQt5.Qsci",
"pygments",
"pygments.formatters._mapping",
"pygments.formatters.bbcode",
"pygments.formatters.html",
"pygments.formatters.img",
"pygments.formatters.irc",
"pygments.formatters.latex",
"pygments.formatters.other",
"pygments.formatters.rtf",
"pygments.formatters.svg",
"pygments.formatters.terminal",
"pygments.formatters.terminal256",
"pygments.lexers._asy_builtins",
"pygments.lexers._cl_builtins",
"pygments.lexers._cocoa_builtins",
"pygments.lexers._csound_builtins",
"pygments.lexers._lasso_builtins",
"pygments.lexers._lua_builtins",
"pygments.lexers._mapping",
"pygments.lexers._mql_builtins",
"pygments.lexers._openedge_builtins",
"pygments.lexers._php_builtins",
"pygments.lexers._postgres_builtins",
"pygments.lexers._scilab_builtins",
"pygments.lexers._sourcemod_builtins",
"pygments.lexers._stan_builtins",
"pygments.lexers._stata_builtins",
"pygments.lexers._tsql_builtins",
"pygments.lexers._vim_builtins",
"pygments.lexers.actionscript",
"pygments.lexers.agile",
"pygments.lexers.algebra",
"pygments.lexers.ambient",
"pygments.lexers.ampl",
"pygments.lexers.apl",
"pygments.lexers.archetype",
"pygments.lexers.asm",
"pygments.lexers.automation",
"pygments.lexers.basic",
"pygments.lexers.bibtex",
"pygments.lexers.business",
"pygments.lexers.c_cpp",
"pygments.lexers.c_like",
"pygments.lexers.capnproto",
"pygments.lexers.chapel",
"pygments.lexers.clean",
"pygments.lexers.compiled",
"pygments.lexers.configs",
"pygments.lexers.console",
"pygments.lexers.crystal",
"pygments.lexers.csound",
"pygments.lexers.css",
"pygments.lexers.d",
"pygments.lexers.dalvik",
"pygments.lexers.data",
"pygments.lexers.diff",
"pygments.lexers.dotnet",
"pygments.lexers.dsls",
"pygments.lexers.dylan",
"pygments.lexers.ecl",
"pygments.lexers.eiffel",
"pygments.lexers.elm",
"pygments.lexers.erlang",
"pygments.lexers.esoteric",
"pygments.lexers.ezhil",
"pygments.lexers.factor",
"pygments.lexers.fantom",
"pygments.lexers.felix",
"pygments.lexers.forth",
"pygments.lexers.fortran",
"pygments.lexers.foxpro",
"pygments.lexers.functional",
"pygments.lexers.go",
"pygments.lexers.grammar_notation",
"pygments.lexers.graph",
"pygments.lexers.graphics",
"pygments.lexers.haskell",
"pygments.lexers.haxe",
"pygments.lexers.hdl",
"pygments.lexers.hexdump",
"pygments.lexers.html",
"pygments.lexers.idl",
"pygments.lexers.igor",
"pygments.lexers.inferno",
"pygments.lexers.installers",
"pygments.lexers.int_fiction",
"pygments.lexers.iolang",
"pygments.lexers.j",
"pygments.lexers.javascript",
"pygments.lexers.julia",
"pygments.lexers.jvm",
"pygments.lexers.lisp",
"pygments.lexers.make",
"pygments.lexers.markup",
"pygments.lexers.math",
"pygments.lexers.matlab",
"pygments.lexers.ml",
"pygments.lexers.modeling",
"pygments.lexers.modula2",
"pygments.lexers.monte",
"pygments.lexers.ncl",
"pygments.lexers.nimrod",
"pygments.lexers.nit",
"pygments.lexers.nix",
"pygments.lexers.oberon",
"pygments.lexers.objective",
"pygments.lexers.ooc",
"pygments.lexers.other",
"pygments.lexers.parasail",
"pygments.lexers.parsers",
"pygments.lexers.pascal",
"pygments.lexers.pawn",
"pygments.lexers.perl",
"pygments.lexers.php",
"pygments.lexers.praat",
"pygments.lexers.prolog",
"pygments.lexers.python.py",
"pygments.lexers.qvt",
"pygments.lexers.r",
"pygments.lexers.rdf",
"pygments.lexers.rebol",
"pygments.lexers.resource",
"pygments.lexers.rnc",
"pygments.lexers.roboconf",
"pygments.lexers.robotframework",
"pygments.lexers.ruby",
"pygments.lexers.rust",
"pygments.lexers.sas",
"pygments.lexers.scripting",
"pygments.lexers.shell",
"pygments.lexers.smalltalk",
"pygments.lexers.smv",
"pygments.lexers.snobol",
"pygments.lexers.special",
"pygments.lexers.sql",
"pygments.lexers.stata",
"pygments.lexers.supercollider",
"pygments.lexers.tcl",
"pygments.lexers.templates",
"pygments.lexers.testing",
"pygments.lexers.text",
"pygments.lexers.textedit",
"pygments.lexers.textfmts",
"pygments.lexers.theorem",
"pygments.lexers.trafficscript",
"pygments.lexers.typoscript",
"pygments.lexers.urbi",
"pygments.lexers.varnish",
"pygments.lexers.verification",
"pygments.lexers.web",
"pygments.lexers.webmisc",
"pygments.lexers.whiley",
"pygments.lexers.x10",
"pygments.styles.abap",
"pygments.styles.algol",
"pygments.styles.algol_nu",
"pygments.styles.arduino",
"pygments.styles.autumn",
"pygments.styles.borland",
"pygments.styles.bw",
"pygments.styles.colorful",
"pygments.styles.default",
"pygments.styles.emacs",
"pygments.styles.friendly",
"pygments.styles.fruity",
"pygments.styles.igor",
"pygments.styles.lovelace",
"pygments.styles.manni",
"pygments.styles.monokai",
"pygments.styles.murphy",
"pygments.styles.native",
"pygments.styles.paraiso_dark",
"pygments.styles.paraiso_light",
"pygments.styles.pastie",
"pygments.styles.perldoc",
"pygments.styles.rainbow_dash",
"pygments.styles.rrt",
"pygments.styles.sas",
"pygments.styles.stata",
"pygments.styles.tango",
"pygments.styles.trac",
"pygments.styles.vim",
"pygments.styles.vs",
"pygments.styles.xcode",
]
includefiles = [
('themes/saved_searches.json', 'themes/saved_searches.json'),
('themes/search_results.json', 'themes/search_results.json'),
('themes/solarized_light.json', 'themes/solarized_light.json'),
('themes/monokai.json', 'themes/monokai.json'),
('themes/Office.json', 'themes/Office.json'),
('themes/monokai-large-headings.json', 'themes/monokai-large-headings.json'),
('themes/C64.json', 'themes/C64.json'),
('saved_searches_default.md', 'saved_searches_default.md'),
('search_results_default.md', 'search_results_default.md'),
('sublimeless_zk-settings.json', 'sublimeless_zk-settings.json'),
('zettelkasten/201804141018 Welcome.md', 'zettelkasten/201804141018 Welcome.md'),
('zettelkasten/rene_shades.png', 'zettelkasten/rene_shades.png'),
('app_logo_64.png', 'app_logo_64.png'),
('app_picture.png', 'app_picture.png'),
('data/setevi-template.html', 'data/setevi-template.html'),
('build_commands.json', 'build_commands.json')
] #path_platforms
excludes = [
'_gtkagg', '_tkagg', 'bsddb', 'curses', 'pywin.debugger',
'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl',
'Tkconstants', 'Tkinter', 'scipy', "numpy", "numpy.core"
]
packages = ["os", ]
path = []
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
"includes": includes,
"include_files": includefiles,
"excludes": excludes,
"packages": packages,
"path": path
}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
exe = None
sublimeless_zk = Executable(
script="src/sublimeless_zk.py",
initScript = None,
)
setup(
name = "sublimeless_zk",
version = prefix + '-' + version,
author = 'Rene Schallner',
description = "Sublimeless_ZK",
options = {"build_exe": build_exe_options,
"bdist_mac": { "iconfile": "if_Note_Book_Alt_86976.icns",
"custom_info_plist": "Info.plist",
},
},
executables = [sublimeless_zk],
)