-
Notifications
You must be signed in to change notification settings - Fork 46
/
build.py
45 lines (36 loc) · 1.1 KB
/
build.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
#!/usr/bin/env python
import sys
import os
import os.path
from cx_Freeze import setup, Executable
base = None
# if sys.platform == "win32":
# base = "Win32GUI"
def ls(path):
for name in os.listdir(path):
yield os.path.join(path, name)
import itertools
build_exe_options = {
"include_files": list(itertools.chain(ls('ui/forms'), ls('ui/icons')))
}
def mangle_target_name(name):
if sys.platform == "win32":
return name + ".exe"
else:
return name
setup(
name='ngcccbase',
version='0.0.10',
description='A flexible and modular base for colored coin software.',
classifiers=[
"Programming Language :: Python",
],
url='https://github.com/bitcoinx/ngcccbase',
keywords='bitcoinx bitcoin coloredcoins',
packages=["ngcccbase", "ngcccbase.services", "ngcccbase.p2ptrade", "ecdsa", "coloredcoinlib", "ui"],
options = {"build_exe": build_exe_options},
executables = [
Executable("ngccc-gui.py", base=base, targetName=mangle_target_name("chromawallet")),
Executable("ngccc-cli.py", base=base, targetName=mangle_target_name("cw-cli")),
]
)