build: retain actionable Release API authorization failures

这个提交包含在:
mac 于 2026-11-01 16:11:00 +08:00 提交
1 父节点 d1019e5b99
当前提交 e0c18d5a51
1 个文件已更改
+4 -3
+4 -3
查看文件
@@ -30,12 +30,13 @@ def main():
subprocess.run(["spctl", "--assess", "--type", "install", str(package)], check=True, capture_output=True)
commit = subprocess.check_output(["git", "rev-parse", args.tag + "^{commit}"], cwd=ROOT, text=True).strip()
helper = args.pkg_forge_repo / "skills/pkg-forge/scripts/publish_release.py"
subprocess.run(["python3", str(helper), "--repository", "dayu/dayu-color", "--repo-root", str(ROOT),
result = subprocess.run(["python3", str(helper), "--repository", "dayu/dayu-color", "--repo-root", str(ROOT),
"--tag", args.tag, "--commit", commit, "--title", "大鱼调色 " + app["version"] + "(" + app["build"] + ")",
"--body-file", str(args.notes.resolve()), "--asset", str(package), "--sha256", report["sha256"],
"--bytes", str(report["bytes"]), "--account", "dayu",
"--report", str(ROOT / "verification/Release.json")], check=True)
"--report", str(ROOT / "verification/Release.json")])
return result.returncode
if __name__ == "__main__":
main()
raise SystemExit(main())