1
0

android: support regtest builds in a similar fashion to testnet builds, by package name.

This commit is contained in:
Sander van Grieken
2025-01-17 15:36:52 +01:00
parent 28c053027f
commit 897327da5a

View File

@@ -331,6 +331,9 @@ def main():
if util.get_android_package_name() == "org.electrum.testnet.electrum":
# ~hack for easier testnet builds. pkgname subject to change.
config_options['testnet'] = True
elif util.get_android_package_name() == "org.electrum.regtest.electrum":
# ~hack for easier regtest builds. pkgname subject to change.
config_options['regtest'] = True
else:
config_options = args.__dict__
f = lambda key: config_options[key] is not None and key not in config_variables.get(args.cmd, {}).keys()