mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
Add buildserver details to AndroidManifest.xml
This commit is contained in:
parent
f95eccf307
commit
5b21f86af2
1 changed files with 16 additions and 0 deletions
|
|
@ -470,6 +470,22 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
|
|||
tarball.add(build_dir, tarname, exclude=tarexc)
|
||||
tarball.close()
|
||||
|
||||
if onserver:
|
||||
manifest = os.path.join(root_dir, 'AndroidManifest.xml')
|
||||
if os.path.exists(manifest):
|
||||
with open('/home/vagrant/buildserverid', 'r') as f:
|
||||
buildserverid = f.read()
|
||||
with open('/home/vagrant/fdroidserverid', 'r') as f:
|
||||
fdroidserverid = f.read()
|
||||
with open(manifest, 'r') as f:
|
||||
manifestcontent = f.read()
|
||||
manifestcontent = manifestcontent.replace('</manifest>',
|
||||
'<fdroid buildserverid="' + buildserverid + '"' +
|
||||
' fdroidserverid="' + fdroidserverid + '"' +
|
||||
'/></manifest>')
|
||||
with open(manifest, 'w') as f:
|
||||
f.write(manifestcontent)
|
||||
|
||||
# Run a build command if one is required...
|
||||
if 'build' in thisbuild:
|
||||
cmd = common.replace_config_vars(thisbuild['build'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue