Skip to content

Commit 3fed277

Browse files
authored
test(desktop): build the installer test payload with Windows tar (#68300)
1 parent 671816d commit 3fed277

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/desktop/script/windows-installer.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,9 @@ windows(
285285
await Bun.write(path.join(payload, "OpenCode.exe"), "new")
286286
await Bun.write(path.join(payload, "resources/app.asar"), "new")
287287

288+
// Git Bash puts GNU tar first on PATH in CI, and only Windows' bsdtar writes 7z.
288289
const archive = await installer.run([
289-
"tar.exe",
290+
path.join(process.env.SystemRoot ?? "C:\\Windows", "System32", "tar.exe"),
290291
"-c",
291292
"-f",
292293
path.join(installer.dir, "app.7z"),

0 commit comments

Comments
 (0)