delivery: prepare package inputs while user performs formal host acceptance

这个提交包含在:
mac 于 2026-11-05 09:19:50 +08:00 提交
1 父节点 bc974bc394
当前提交 bf25c6c9c1
3 个文件已更改
+34 -5

没有与搜索条件相匹配的文件

+4 -1
查看文件
@@ -38,7 +38,10 @@ def main():
assert (skill / "package_fxplug.py").is_file(), "请指定含 pkg-forge 技能的 PKG 工坊 checkout"
delivery = json.loads((ROOT / "verification/Delivery.json").read_text())
info = plistlib.loads((APP / "Contents/Info.plist").read_bytes())
assert delivery["status"] == "verified" and delivery["path"] == str(APP)
assert delivery["path"] == str(APP)
# Preparation only stages and validates inputs. Creating a distributable
# package still requires completed host acceptance of the formal install.
assert args.prepare_only or delivery["status"] == "verified", "正式安装尚未完成宿主验收"
assert info["CFBundleIdentifier"] == "com.dayu.color"
assert (info["CFBundleShortVersionString"], info["CFBundleVersion"]) == (delivery["version"], delivery["build"])
args.output_dir.mkdir(parents=True, exist_ok=True)