-
Notifications
You must be signed in to change notification settings - Fork 109
/
buildsettings.py
87 lines (67 loc) · 3.15 KB
/
buildsettings.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
"""Config file for builds.
if you want to have custom builds, copy this file to "localbuildsettings.py" and make changes there.
"""
localfile = 'localbuildsettings.py'
defaults = { # common for all build targets
'url_dist_base': None, # network location, used for @updateURL and @downloadURL fields
'update_file': None, # how to use @updateURL
# - '.meta.js': generate .meta.js
# - '.user.js': use main script
# - None: do not use the field
'version_timestamp': False, # add extra component to version field (to force update)
# these settings should be modified when developing own fork of this project
'namespace': 'https://github.com/IITC-CE/ingress-intel-total-conversion',
'url_homepage': 'https://iitc.app/',
'url_tg': 'https://t.me/iitc_news',
# these settings should not be touched unless intel url(s) changed
'match': ['https://intel.ingress.com/*', 'https://intel-x.ingress.com/*'],
'plugin_wrapper': 'pluginwrapper', # use wrapper from pluginwrapper.py
'pre_build': [], # list of commands to execute before build run
'post_build': [], # ... after build succeed
# watch mode settings:
'watch_mode': False, # otherwise can be activated with --watch commandline argument
'watch_interval': 1, # (seconds)
'on_fail': lambda: print('\a'), # function (or string for os.system)
'on_success': lambda: print('Build succeeded'),
# Path to plugin icons. For example: `http://localhost/icons/{}.png`
'url_icon_base': None,
# The path to the icons of the plugins with the size of 64 pixels. For example: `http://localhost/icons/{}-64.png`
'url_icon_64_base': None,
# other:
# runtime settings set in settings.py also can be overriden
# - 'build_source_dir'
# - 'build_target_dir'
# - ...
}
builds = { # every build entry extends common defaults
# default settings
'local': {},
# specify localhost as base for scripts (auto)updating
# useful for developers
'dev': {
'url_dist_base': 'http://localhost:8000',
'update_file': '.user.js',
'version_timestamp': True,
},
# use no-inject wrapper for easy breakpoints (Tampermonkey only!)
'tmdev': {
'url_dist_base': 'http://localhost:8000',
'update_file': '.user.js',
'version_timestamp': True,
'plugin_wrapper': 'pluginwrapper_noinject',
},
# default entry that also builds the mobile .apk
# requires: Java JDK, android-sdk
'mobile': {
'post_build': ['build_mobile.py'],
},
# publish your own fork of the project, and host it on your own web site
# 'myfork': {
# 'url_homepage': 'https://www.example.com/iitc',
# 'url_dist_base': 'https://download.example.com/iitc',
# 'update_file': '.meta.js',
# },
}
# default_build - the name of the build settings to use if none is specified on the build.py command line
# (change it in localbuildsettings.py)
default_build = None