Gitea CI / Check code and tests (pull_request) Failing after 8m56s
Gitea CI / Build Android APK (pull_request) Skipped
Gitea CI / Build Windows x64 app (pull_request) Skipped
Gitea CI / Audit and package Windows x64 (pull_request) Skipped
Gitea CI / Assemble and validate CI artifacts (pull_request) Skipped
Gitea CI / Gitea CI passed (pull_request) Failing after 4s
Pin Flutter with FVM and share local environment loading across IDE, Python, and Dart entrypoints. Keep CI on the verified preinstalled SDK and skip local overrides. Extract common build presets, process execution, and file hashing. Propagate project roots through SDK selection and release commands, and migrate macOS release, signing, and DMG orchestration to Python. Reuse local check suites in CI, support Android source overrides, and update documentation and regression tests.
28 lines
1.2 KiB
Python
28 lines
1.2 KiB
Python
"""Build the application with shared development/production presets."""
|
|
import argparse
|
|
import sys
|
|
|
|
from common.build import build_application
|
|
from common.process import cli
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
parser.add_argument('platform', choices=['android', 'windows', 'macos'])
|
|
parser.add_argument('--flavor', choices=['development', 'production'], default='production')
|
|
parser.add_argument('--mode', choices=['debug', 'profile', 'release'], default='release')
|
|
parser.add_argument('--split-per-abi', action='store_true')
|
|
# Explicit separator keeps custom Flutter arguments distinct from presets.
|
|
arguments = sys.argv[1:]
|
|
separator = arguments.index('--') if '--' in arguments else len(arguments)
|
|
extra = arguments[separator + 1:]
|
|
args = parser.parse_args(arguments[:separator])
|
|
if args.split_per_abi and args.platform != 'android':
|
|
parser.error('--split-per-abi is only available for Android')
|
|
return build_application(args.platform, flavor=args.flavor, mode=args.mode,
|
|
split_per_abi=args.split_per_abi, extra=extra).returncode
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(cli(main))
|