iOS 1.0.3 source candidate only; no Apple build or installation acceptance
This commit is contained in:
@@ -20,10 +20,19 @@ EXPECTED = [
|
||||
"Shared/Models.swift",
|
||||
"Shared/TunnelConfigurationBuilder.swift",
|
||||
"Shared/NetworkAddress.swift",
|
||||
"Resources/Geo/geoip.dat",
|
||||
"Resources/Geo/geosite.dat",
|
||||
"Tests/TunnelConfigurationBuilderTests.swift",
|
||||
"Tests/ClientConfigResponseTests.swift",
|
||||
"Shared/ConnectionAttemptPolicy.swift",
|
||||
"Tests/ConnectionAttemptPolicyTests.swift",
|
||||
"Shared/ProxyTransportPolicy.swift",
|
||||
"Shared/ICMPEchoPacket.swift",
|
||||
"App/InternalIPProbe.swift",
|
||||
"Tests/ProxyTransportPolicyTests.swift",
|
||||
"Tests/ICMPEchoPacketTests.swift",
|
||||
"Resources/Assets.xcassets/MountainLandscape.imageset/Contents.json",
|
||||
"Resources/Assets.xcassets/MountainLandscape.imageset/landscape-header-v1.png",
|
||||
]
|
||||
|
||||
|
||||
@@ -54,6 +63,15 @@ def main() -> int:
|
||||
and f"版本 `{source_version}`" in readme, "README 与工程版本不一致")
|
||||
require("cn.toplc.zonghengjia.PacketTunnel" in project, "Packet Tunnel Bundle ID 缺失")
|
||||
require('iOS: "15.0"' in project, "iOS 最低版本与验收基线不一致")
|
||||
require("Shared/ProxyTransportPolicy.swift" in project,
|
||||
"Packet Tunnel 未包含授权入口校验类型")
|
||||
artwork = ROOT / "Resources/Assets.xcassets/MountainLandscape.imageset/landscape-header-v1.png"
|
||||
require(hashlib.sha256(artwork.read_bytes()).hexdigest()
|
||||
== "e87b91f59038c1e9ccfe616fbc84a0f6cd8d00d6d98e71388c62562017d9dfd8",
|
||||
"原创山水图摘要不匹配")
|
||||
asset = json.loads(artwork.with_name("Contents.json").read_text(encoding="utf-8"))
|
||||
require(any(image.get("filename") == artwork.name for image in asset.get("images", [])),
|
||||
"山水资源索引缺失")
|
||||
|
||||
app_state = (ROOT / "App/AppState.swift").read_text(encoding="utf-8")
|
||||
api = (ROOT / "App/PlatformAPI.swift").read_text(encoding="utf-8")
|
||||
@@ -90,16 +108,9 @@ def main() -> int:
|
||||
require(digest == "07f7ed7697277930e1c517755855950f594f41435b0dfc5917a66eea6278aeb9", "libXray 本地归档 SHA256 不匹配")
|
||||
vendor_result = digest
|
||||
|
||||
geo_files = [ROOT / "Resources/Geo/geoip.dat", ROOT / "Resources/Geo/geosite.dat"]
|
||||
geo_present = [path.is_file() for path in geo_files]
|
||||
require(all(geo_present) or not any(geo_present), "Geo data must be supplied as a complete pair")
|
||||
geo_status = "present-not-verified-by-source-audit" if all(geo_present) else "not-packaged"
|
||||
|
||||
report = {
|
||||
"result": "PASS",
|
||||
"source_version": source_version,
|
||||
"geo_data_status": geo_status,
|
||||
"geo_data_required_before_build_and_tunnel": True,
|
||||
"documentation_version_matches": True,
|
||||
"scope": "Source audit only; no Xcode compile, signing, IPA export, or iPhone tunnel acceptance",
|
||||
"automatic_node_selection": True,
|
||||
@@ -107,6 +118,13 @@ def main() -> int:
|
||||
"domain_loop_prevention": True,
|
||||
"gateway_contract": 2,
|
||||
"legacy_backend_compatible": True,
|
||||
"authorized_internal_ip_source_implemented": True,
|
||||
"sticky_public_fallback_source_implemented": True,
|
||||
"original_landscape_sha256": hashlib.sha256(artwork.read_bytes()).hexdigest(),
|
||||
"swift_compilation_executed": False,
|
||||
"xctest_executed": False,
|
||||
"ipa_generated": False,
|
||||
"device_installation_verified": False,
|
||||
"network_extension_entitlement": True,
|
||||
"libxray_archive_sha256": vendor_result,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user