build settings

This commit is contained in:
Phillip Kühne 2018-01-13 19:35:24 +01:00
parent 9552dcad1a
commit 4b72bfb0f9
2 changed files with 58 additions and 4 deletions

View File

@ -39,10 +39,10 @@ buildSettings = {
# if you want to publish your own fork of the project, and host it on your own web site # if you want to publish your own fork of the project, and host it on your own web site
# create a localbuildsettings.py file containing something similar to this # create a localbuildsettings.py file containing something similar to this
# note: Firefox+Greasemonkey require the distUrlBase to be "https" - they won't check for updates on regular "http" URLs # note: Firefox+Greasemonkey require the distUrlBase to be "https" - they won't check for updates on regular "http" URLs
#'example': { 'example': {
# 'resourceBaseUrl': 'http://www.example.com/iitc/dist', 'resourceBaseUrl': 'http://www.example.com/iitc/dist',
# 'distUrlBase': 'https://secure.example.com/iitc/dist', 'distUrlBase': 'https://secure.example.com/iitc/dist',
#}, },
} }

54
localbuildsettings.py Normal file
View File

@ -0,0 +1,54 @@
# settings file for builds.
# if you want to have custom builds, copy this file to "localbuildsettings.py" and make changes there.
# possible fields:
# resourceBaseUrl - optional - the URL base for external resources (all resources embedded in standard IITC)
# distUrlBase - optional - the base URL to use for update checks
# buildMobile - optional - if set, mobile builds are built with 'ant'. requires the Android SDK and appropriate mobile/local.properties file configured
# preBuild - optional - an array of strings to run as commands, via os.system, before building the scripts
# postBuild - optional - an array of string to run as commands, via os.system, after all builds are complete
buildSettings = {
# local: use this build if you're not modifying external resources
# no external resources allowed - they're not needed any more
'local': {
'resourceUrlBase': None,
'distUrlBase': None,
},
# local8000: if you need to modify external resources, this build will load them from
# the web server at http://0.0.0.0:8000/dist
# (This shouldn't be required any more - all resources are embedded. but, it remains just in case some new feature
# needs external resources)
'local8000': {
'resourceUrlBase': 'http://0.0.0.0:8000/dist',
'distUrlBase': None,
},
# mobile: default entry that also builds the mobile .apk
# you will need to have the android-sdk installed, and the file mobile/local.properties created as required
'mobile': {
'resourceBaseUrl': 'https://phillipatcloud.dynv6.net/iitc/mobile',
'distUrlBase': 'https://phillipatcloud.dynv6.net/iitc/mobile',
'buildMobile': 'debug',
},
# if you want to publish your own fork of the project, and host it on your own web site
# create a localbuildsettings.py file containing something similar to this
# note: Firefox+Greasemonkey require the distUrlBase to be "https" - they won't check for updates on regular "http" URLs
'publish': {
'resourceBaseUrl': 'https://phillipatcloud.dynv6.net/iitc/dist',
'distUrlBase': 'https://phillipatcloud.dynv6.net/iitc/dist',
},
}
# defaultBuild - the name of the default build to use if none is specified on the build.py command line
# (in here as an example - it only works in localbuildsettings.py)
#defaultBuild = 'local'