stabilize runtime state on native Windows

This commit is contained in:
Sinabina
2026-07-17 14:21:10 -07:00
parent 9b3188e74b
commit 9bb382f2ee
8 changed files with 129 additions and 33 deletions
+1
View File
@@ -389,6 +389,7 @@ describe("GStack 2 managed runtime installer", () => {
const cli = path.join(result.path, "runtime", "cli.js");
const originalMode = (await fs.stat(cli)).mode & 0o777;
await fs.chmod(cli, originalMode === 0o600 ? 0o644 : 0o600);
await expect(validateRuntimeBundle(result.path, { version: "2.0.0", platform: "win32" })).resolves.toBe(true);
await expect(validateRuntimeBundle(result.path, { version: "2.0.0" })).rejects.toMatchObject({
code: "INSTALL_VALIDATION_FAILED",
});