refactor(build): 统一本地与 CI 构建入口及平台发布工具 (#9)
Gitea CI / Check code and tests (push) Successful in 7m38s
Gitea CI / Build Android APK (push) Successful in 6m20s
Gitea CI / Audit and package Windows x64 (push) Canceled after 0s
Gitea CI / Assemble and validate CI artifacts (push) Canceled after 0s
Gitea CI / Gitea CI passed (push) Canceled after 0s
Gitea CI / Build Windows x64 app (push) Canceled after 14m42s

This commit was merged in pull request #9.
This commit is contained in:
lingjhf committed 2026-10-06 16:14:42 +00:00
1 parent a13a54d5ec
commit 4a759d81a6
61 files changed
+1913 -388

No files matched your search

+3 -3
View File
@@ -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')