diff --git a/scripts/build-desktop-artifact.test.ts b/scripts/build-desktop-artifact.test.ts index 8a0dbc4faa8b7..eba3f8fa0cae6 100644 --- a/scripts/build-desktop-artifact.test.ts +++ b/scripts/build-desktop-artifact.test.ts @@ -1218,6 +1218,7 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => { const fs = yield* FileSystem.FileSystem; const path = yield* Path.Path; const repoRoot = yield* fs.makeTempDirectoryScoped({ prefix: "t3-kde-stage-test-" }); + const hostPlatform = yield* HostProcess.Platform; const protocols = path.join(repoRoot, "native/hyprland-snap-shot/protocols"); yield* fs.makeDirectory(protocols, { recursive: true }); yield* fs.writeFileString(path.join(protocols, "capture.xml"), "BSD protocol notice"); @@ -1267,7 +1268,10 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => { `${backend}-capture/t3-${backend}-snap-shot`, ); assert.equal(yield* fs.readFileString(installed), `helper-${arch}`); - assert.equal((yield* fs.stat(installed)).mode & 0o777, 0o755); + // Windows does not expose POSIX executable permission bits. + if (hostPlatform !== "win32") { + assert.equal((yield* fs.stat(installed)).mode & 0o777, 0o755); + } if (backend === "hyprland") assert.equal( yield* fs.readFileString(