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
@@ -21,7 +21,7 @@ class UpdatePublicationTests(unittest.TestCase):
|
||||
def test_packaging_tool_check_does_not_resolve_flutter_dependencies(self):
|
||||
from subprocess import CompletedProcess
|
||||
with patch('windows_updates.resolved_deskup', side_effect=AssertionError('No Flutter config')), \
|
||||
patch('windows_updates.subprocess.run', return_value=CompletedProcess([], 0, f'vpk {SDK_VERSION}', '')):
|
||||
patch('windows_updates.run', return_value=CompletedProcess([], 0, f'vpk {SDK_VERSION}', '')):
|
||||
check_tool(['vpk'])
|
||||
|
||||
def test_build_sdk_check_rejects_mismatched_and_missing_versions(self):
|
||||
@@ -53,7 +53,7 @@ class UpdatePublicationTests(unittest.TestCase):
|
||||
def test_missing_package_config_requests_pub_get(self):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
with patch('windows_updates.ROOT', Path(directory)):
|
||||
with self.assertRaisesRegex(ValueError, 'flutter pub get'):
|
||||
with self.assertRaisesRegex(ValueError, 'flutter_local.dart pub get'):
|
||||
resolved_deskup()
|
||||
|
||||
def test_display_version_conversion_is_shared_and_ordered(self):
|
||||
@@ -64,7 +64,7 @@ class UpdatePublicationTests(unittest.TestCase):
|
||||
update_version(version, build)
|
||||
|
||||
def test_invalid_pack_version_never_starts_vpk(self):
|
||||
with patch('windows_updates.subprocess.run') as run:
|
||||
with patch('windows_updates.run') as run:
|
||||
with self.assertRaises(ValueError):
|
||||
pack_release(['vpk'], app=Path('app'), output=Path('release'),
|
||||
package_id='Cutdex', version='1.0.0.42', title='Cutdex')
|
||||
|
||||
Reference in new issue
Block a user