fix(release): validate DMG resize slack · openclaw/openclaw@d0f5918
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -195,6 +195,18 @@ describe("create-dmg plist validation", () => {
|
195 | 195 | expect(script).not.toContain('tell application "Finder" to close every window'); |
196 | 196 | }); |
197 | 197 | |
| 198 | +it("fails malformed DMG resize slack before creating images", () => { |
| 199 | +const script = readFileSync(scriptPath, "utf8"); |
| 200 | +const validationBlock = script.slice( |
| 201 | +script.indexOf("require_integer_list()"), |
| 202 | +script.indexOf('to_applescript_list4()'), |
| 203 | +); |
| 204 | + |
| 205 | +expect(validationBlock).toContain("require_nonnegative_integer()"); |
| 206 | +expect(validationBlock).toContain('require_nonnegative_integer DMG_EXTRA_SECTORS "$DMG_EXTRA_SECTORS"'); |
| 207 | +expect(validationBlock).toContain("must be a finite non-negative integer"); |
| 208 | +}); |
| 209 | + |
198 | 210 | it.runIf(process.platform === "darwin")( |
199 | 211 | "fails before hdiutil when required plist keys are missing", |
200 | 212 | () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。