DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
fix(ci): accept Apple multi-platform iOS provisioning profiles
idealclover489b8f17b6b1
diff --git a/.github/scripts/ios-testflight.py b/.github/scripts/ios-testflight.pyindex 29a66aed..721f8698 100644--- a/.github/scripts/ios-testflight.py+++ b/.github/scripts/ios-testflight.py@@ -36,7 +36,8 @@ def validate_profile(profile, team, now, identities):require(len(prefixes) == 1 and isinstance(prefixes[0], str), 'Invalid app identifier prefix')require(entitlements.get('application-identifier') == f'{prefixes[0]}.{BUNDLE_ID}', 'Profile app ID mismatch')require(profile.get('ExpirationDate', dt.datetime.min) > now, 'Provisioning profile expired')- require(profile.get('Platform') == ['iOS'], 'Profile is not for iOS')+ platforms = profile.get('Platform')+ require(isinstance(platforms, list) and 'iOS' in platforms, 'Profile is not for iOS')require('ProvisionedDevices' not in profile and not profile.get('ProvisionsAllDevices'), 'Profile must use App Store distribution')require(entitlements.get('get-task-allow') is False, 'Profile must disallow debugging')require(entitlements.get('beta-reports-active') is True, 'Profile must support TestFlight')diff --git a/.github/scripts/test_ios_testflight.py b/.github/scripts/test_ios_testflight.pyindex 7ee9f838..81b0c8f7 100644--- a/.github/scripts/test_ios_testflight.py+++ b/.github/scripts/test_ios_testflight.py@@ -66,6 +66,16 @@ class ProfileTests(unittest.TestCase):def test_valid_profile_allows_legacy_app_identifier_prefix(self):self.assertEqual(self.validate(), self.identity)+ def test_accepts_apple_multiplatform_profile_containing_ios(self):+ self.profile['Platform'] = ['iOS', 'xrOS', 'visionOS']+ self.assertEqual(self.validate(), self.identity)++ def test_rejects_platform_metadata_without_ios_or_not_a_list(self):+ for platforms in (None, [], ['xrOS', 'visionOS'], 'iOS', {'iOS': True}):+ with self.subTest(platforms=platforms), self.assertRaisesRegex(ValueError, 'iOS'):+ self.profile['Platform'] = platforms+ self.validate()+def test_rejects_wrong_team_app_platform_expiry_and_distribution(self):cases = [('TeamIdentifier', ['OTHERTEAM1']),