refactor(build): unify SDK configuration and release tooling
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.
This commit is contained in:
1 parent
a13a54d5ec
commit
0343e2f723
57 files changed
+1858
-375
No files matched your search
@@ -0,0 +1,27 @@
|
||||
"""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))
|
||||
Reference in new issue
Block a user