fdroidserver.build module¶
- fdroidserver.build.build_local(app, build, vcs, build_dir, output_dir, log_dir, srclib_dir, extlib_dir, tmp_dir, force, onserver, refresh)¶
Do a build locally.
- fdroidserver.build.build_server(app, build, vcs, build_dir, output_dir, log_dir, force)¶
Do a build on the builder vm.
- Parameters:
- app
app metadata dict
- build
- vcs
version control system controller object
- build_dir
local source-code checkout of app
- output_dir
target folder for the build result
- force
- fdroidserver.build.force_gradle_build_tools(build_dir, build_tools)¶
- fdroidserver.build.force_halt_build(timeout)¶
Halt the currently running Vagrant VM, to be called from a Timer.
- fdroidserver.build.get_metadata_from_apk(app, build, apkfile)¶
Get the required metadata from the built APK.
VersionName is allowed to be a blank string, i.e. ‘’
- fdroidserver.build.keep_when_not_allowed()¶
Control if APKs signed by keys not in AllowedAPKSigningKeys are removed.
- fdroidserver.build.main()¶
- fdroidserver.build.parse_commandline()¶
Parse the command line.
- Returns:
- options
- parser
- fdroidserver.build.transform_first_char(string, method)¶
Use method() on the first character of string.
- fdroidserver.build.trybuild(app, build, build_dir, output_dir, log_dir, also_check_dir, srclib_dir, extlib_dir, tmp_dir, repo_dir, vcs, test, server, force, onserver, refresh)¶
Build a particular version of an application, if it needs building.
- Parameters:
- output_dir
The directory where the build output will go. Usually this is the ‘unsigned’ directory.
- repo_dir
The repo directory - used for checking if the build is necessary.
- also_check_dir
An additional location for checking if the build is necessary (usually the archive repo)
- test
True if building in test mode, in which case the build will always happen, even if the output already exists. In test mode, the output directory should be a temporary location, not any of the real ones.
- Returns:
- Boolean
True if the build was done, False if it wasn’t necessary.