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
@@ -11,6 +11,9 @@ import zipfile
|
||||
from release_artifacts import AUDIT, FEED, INSTALLER, PORTABLE, METADATA, app_versions, checksum_lines, validate_artifact
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
sys.path.insert(0, str(ROOT / 'tool'))
|
||||
from common.files import file_sha256
|
||||
from common.process import cli
|
||||
|
||||
|
||||
def validate_apk(apk):
|
||||
@@ -36,8 +39,7 @@ def package_windows(windows, vpk, windows_version):
|
||||
checksums = {}
|
||||
for path in sorted(staged.rglob('*')):
|
||||
if path.is_file():
|
||||
with path.open('rb') as stream:
|
||||
checksums[path.relative_to(staged).as_posix()] = hashlib.file_digest(stream, 'sha256').hexdigest()
|
||||
checksums[path.relative_to(staged).as_posix()] = file_sha256(path)
|
||||
(staged / 'checksums.json').write_text(json.dumps(checksums), encoding='utf-8')
|
||||
result = package_app(staged, releases, vpk, require_processing=False)
|
||||
if result['version'] != windows_version:
|
||||
@@ -105,4 +107,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
sys.exit(cli(main))
|
||||
Reference in new issue
Block a user