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.
22 lines
588 B
Python
22 lines
588 B
Python
"""Normalize engine paths and sign native files and nested macOS bundles."""
|
|
import argparse
|
|
from pathlib import Path
|
|
import sys
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
|
from common.process import cli
|
|
from project_tools import project_environment
|
|
from release import require_macos, sign_app
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
parser.add_argument('app', type=Path)
|
|
args = parser.parse_args()
|
|
require_macos()
|
|
sign_app(args.app, environment=project_environment())
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(cli(main))
|