Skip to content

Commit ef41d8c

Browse files
fix(scripts): skip POSIX helper permission checks on Windows
1 parent 5307c23 commit ef41d8c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎scripts/build-desktop-artifact.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,7 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
12181218
const fs = yield* FileSystem.FileSystem;
12191219
const path = yield* Path.Path;
12201220
const repoRoot = yield* fs.makeTempDirectoryScoped({ prefix: "t3-kde-stage-test-" });
1221+
const hostPlatform = yield* HostProcess.Platform;
12211222
const protocols = path.join(repoRoot, "native/hyprland-snap-shot/protocols");
12221223
yield* fs.makeDirectory(protocols, { recursive: true });
12231224
yield* fs.writeFileString(path.join(protocols, "capture.xml"), "BSD protocol notice");
@@ -1267,7 +1268,10 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
12671268
`${backend}-capture/t3-${backend}-snap-shot`,
12681269
);
12691270
assert.equal(yield* fs.readFileString(installed), `helper-${arch}`);
1270-
assert.equal((yield* fs.stat(installed)).mode & 0o777, 0o755);
1271+
// Windows does not expose POSIX executable permission bits.
1272+
if (hostPlatform !== "win32") {
1273+
assert.equal((yield* fs.stat(installed)).mode & 0o777, 0o755);
1274+
}
12711275
if (backend === "hyprland")
12721276
assert.equal(
12731277
yield* fs.readFileString(

0 commit comments

Comments
 (0)