From 3de4be9e74f1eeccc4a6da5724de59f11f9b562f Mon Sep 17 00:00:00 2001 From: biancalana Date: Thu, 20 Aug 2026 23:51:25 +0000 Subject: [PATCH] fix: binary installation for FreeBSD (#1415) Co-authored-by: Fernandez Ludovic --- dist/post_run/index.js | 2 +- dist/run/index.js | 2 +- src/install.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index d175496..78f8856 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -69112,7 +69112,7 @@ async function installBin(versionInfo) { else { // We want to always overwrite files if the local cache already has them const args = ["xz"]; - if (process.platform.toString() != "darwin") { + if (!["darwin", "freebsd"].includes(process.platform.toString())) { args.push("--overwrite"); } extractedDir = await tc.extractTar(archivePath, process.env.HOME, args); diff --git a/dist/run/index.js b/dist/run/index.js index 1e0150f..b5a4ce4 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -69112,7 +69112,7 @@ async function installBin(versionInfo) { else { // We want to always overwrite files if the local cache already has them const args = ["xz"]; - if (process.platform.toString() != "darwin") { + if (!["darwin", "freebsd"].includes(process.platform.toString())) { args.push("--overwrite"); } extractedDir = await tc.extractTar(archivePath, process.env.HOME, args); diff --git a/src/install.ts b/src/install.ts index f8b2b18..65961a2 100644 --- a/src/install.ts +++ b/src/install.ts @@ -145,7 +145,7 @@ async function installBin(versionInfo: VersionInfo): Promise { } else { // We want to always overwrite files if the local cache already has them const args = ["xz"] - if (process.platform.toString() != "darwin") { + if (!["darwin", "freebsd"].includes(process.platform.toString())) { args.push("--overwrite") } extractedDir = await tc.extractTar(archivePath, process.env.HOME, args)