-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSConstruct
69 lines (60 loc) · 1.92 KB
/
SConstruct
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
import os
import sys
if sys.platform != 'darwin':
exit(0)
env = Environment(ENV = os.environ)
try:
paths = [os.environ.get('CBANG_HOME'), os.environ.get('CBANG_CONFIG_HOME')]
env.Tool('config', toolpath = paths)
except Exception as e:
raise Exception('CBANG_HOME not set?\n' + str(e))
env.CBLoadTools('packager')
conf = env.CBConfigure()
version = '0.1.7'
env.Replace(PACKAGE_VERSION = version)
conf.Finish()
pkg_components = [
{'name': 'Uninstaller',
'home': '.',
'pkg_id': 'org.foldingathome.uninstaller.pkg',
'must_close_apps': [
'org.foldingathome.fahviewer',
'org.foldingathome.fahcontrol',
'edu.stanford.folding.fahviewer',
'edu.stanford.folding.fahcontrol',
],
'pkg_nopayload': True,
'pkg_scripts': 'Scripts',
},
]
name = 'fah-uninstaller'
parameters = {
'name' : name,
'version' : version,
'maintainer' : 'Joseph Coffland <[email protected]>',
'vendor' : 'Folding@home',
'summary' : 'Folding@home Removal',
'description' : 'Folding@home uninstaller package',
'short_description' : 'Folding@home uninstaller package',
'pkg_type' : 'dist',
'pkg_resources' : [['Resources', '.']],
'pkg_welcome' : 'Welcome.rtf',
'pkg_conclusion' : 'Conclusion.rtf',
'pkg_background' : 'fah-opacity-50.png',
'pkg_target' : '10.5',
'pkg_arch' : 'i386 ppc x86_64 arm64',
'package_arch' : 'all',
'pkg_components' : pkg_components,
'pkg_customize' : 'never', # only one component
}
if 'package' in COMMAND_LINE_TARGETS:
pkg = env.Packager(**parameters)
AlwaysBuild(pkg)
env.Alias('package', pkg)
Clean(pkg, ['build', 'config.log', 'package.txt'])
if 'distclean' in COMMAND_LINE_TARGETS:
Clean('distclean', [
'.sconsign.dblite', '.sconf_temp', 'config.log',
'build', 'package.txt',
Glob(name + '*.pkg'),
])