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,24 @@
|
||||
"""Create and verify a compressed DMG with application and volume icons."""
|
||||
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 create_dmg, print_artifact, require_macos
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument('app', type=Path)
|
||||
parser.add_argument('output', type=Path)
|
||||
args = parser.parse_args()
|
||||
if args.output.suffix != '.dmg':
|
||||
parser.error('output must have a .dmg extension')
|
||||
require_macos()
|
||||
print_artifact('DMG', create_dmg(args.app, args.output, environment=project_environment()))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(cli(main))
|
||||
Reference in new issue
Block a user