1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 23:23:27 +02:00

Build documentation updates and a new option (novcheck

This commit is contained in:
Ciaran Gultnieks 2011-01-31 22:57:56 +00:00
parent 73cf43ca59
commit 2895250014
2 changed files with 47 additions and 36 deletions

7
README
View File

@ -169,6 +169,13 @@ configuration to the build. These are:
the SDK's ant rules, and forces the Java compiler to interpret the SDK's ant rules, and forces the Java compiler to interpret
source files with this encoding. If you receive warnings during source files with this encoding. If you receive warnings during
the compile about character encodings, you probably need this. the compile about character encodings, you probably need this.
prebuild=xxxx Specifies a shell command (or commands - chain with &&) to run
before the build takes place - the only proviso being that you
can't use , or = characters.
novcheck=yes Don't check that the version name and code in the resulting apk
are correct by looking at the build output - assume the metadata
is correct. This takes away a useful level of sanity checking, and
should only be used if the values can't be extracted.
Another example, using extra parameters: Another example, using extra parameters:

View File

@ -397,6 +397,10 @@ for app in apps:
p = subprocess.Popen([aapt_path,'dump','badging', p = subprocess.Popen([aapt_path,'dump','badging',
src], stdout=subprocess.PIPE) src], stdout=subprocess.PIPE)
output = p.communicate()[0] output = p.communicate()[0]
if thisbuild.has_key('novcheck') and thisbuild['novcheck'] == "yes":
vercode = thisbuild['vercode']
version = thisbuild['version']
else:
vercode = None vercode = None
version = None version = None
for line in output.splitlines(): for line in output.splitlines():