forked from spesmilo/electrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
macosx.spec
46 lines (41 loc) · 1.12 KB
/
macosx.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
# -*- mode: python -*-
a = Analysis(['reddcoin-electrum'])
##### include folder in distribution #######
def extra_data(folder):
def rec_glob(p, files):
import os
import glob
for d in glob.glob(p):
if os.path.isfile(d):
files.append(d)
rec_glob("%s/*" % d, files)
files = []
rec_glob("%s/*" % folder, files)
extra_data = []
for f in files:
extra_data.append((f, f, 'DATA'))
return extra_data
###########################################
# Theme data
a.datas += extra_data('data')
# Localization
#a.datas += extra_data('locale')
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='Reddcoin Electrum',
debug=False,
strip=None,
upx=True,
console=False , icon='electrum.icns')
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=None,
upx=True,
name='Reddcoin Electrum')
app = BUNDLE(coll,
name='Reddcoin Electrum.app',
icon='electrum.icns')