mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Added a build feature to be able to remove a specified file before building
This commit is contained in:
parent
2656a55af8
commit
f73926ea94
2 changed files with 8 additions and 0 deletions
4
README
4
README
|
@ -104,6 +104,10 @@ configuration to the build. These are:
|
|||
documentation for the Repo field for more information.
|
||||
oldsdkloc=yes - The sdk location in the repo is in an old format
|
||||
target=<target> - Specifies a particular SDK target, when the source doesn't
|
||||
rm=<relpath> - Specifies the relative path of file to delete before the
|
||||
build is done. The path is relative to the base of the
|
||||
build directory - i.e. the directory that contains
|
||||
AndroidManifest.xml.
|
||||
|
||||
Another example, using extra parameters:
|
||||
|
||||
|
|
4
build.py
4
build.py
|
@ -141,6 +141,10 @@ for app in apps:
|
|||
f.write(props)
|
||||
f.close()
|
||||
|
||||
#Delete unwanted file...
|
||||
if thisbuild.has_key('rm'):
|
||||
os.remove(os.path.join(root_dir, thisbuild['rm']))
|
||||
|
||||
# Build the release...
|
||||
p = subprocess.Popen(['ant','release'], cwd=root_dir,
|
||||
stdout=subprocess.PIPE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue