diff --git a/dist/attachReleaseAssets/index.js b/dist/attachReleaseAssets/index.js index 14d868f5..186e0c7a 100644 --- a/dist/attachReleaseAssets/index.js +++ b/dist/attachReleaseAssets/index.js @@ -24111,7 +24111,11 @@ function downloadSyft() { // Make sure the tool's executable bit is set const syftBinaryPath = `${installPath}_${name}`; yield (0, Executor_1.execute)("sh", [installPath, "-d", "-b", syftBinaryPath, version]); - return path_1.default.join(`${syftBinaryPath}`, `${name}`); + const installedPath = path_1.default.join(`${syftBinaryPath}`, `${name}`); + if (process.platform === "win32") { + return `${installedPath}.exe`; + } + return installedPath; }); } exports.downloadSyft = downloadSyft; diff --git a/dist/downloadSyft/index.js b/dist/downloadSyft/index.js index 3b498377..86db05d9 100644 --- a/dist/downloadSyft/index.js +++ b/dist/downloadSyft/index.js @@ -24159,7 +24159,11 @@ function downloadSyft() { // Make sure the tool's executable bit is set const syftBinaryPath = `${installPath}_${name}`; yield (0, Executor_1.execute)("sh", [installPath, "-d", "-b", syftBinaryPath, version]); - return path_1.default.join(`${syftBinaryPath}`, `${name}`); + const installedPath = path_1.default.join(`${syftBinaryPath}`, `${name}`); + if (process.platform === "win32") { + return `${installedPath}.exe`; + } + return installedPath; }); } exports.downloadSyft = downloadSyft; diff --git a/dist/runSyftAction/index.js b/dist/runSyftAction/index.js index 8fdb9ca2..4bedf1ba 100644 --- a/dist/runSyftAction/index.js +++ b/dist/runSyftAction/index.js @@ -24111,7 +24111,11 @@ function downloadSyft() { // Make sure the tool's executable bit is set const syftBinaryPath = `${installPath}_${name}`; yield (0, Executor_1.execute)("sh", [installPath, "-d", "-b", syftBinaryPath, version]); - return path_1.default.join(`${syftBinaryPath}`, `${name}`); + const installedPath = path_1.default.join(`${syftBinaryPath}`, `${name}`); + if (process.platform === "win32") { + return `${installedPath}.exe`; + } + return installedPath; }); } exports.downloadSyft = downloadSyft; diff --git a/src/github/SyftGithubAction.ts b/src/github/SyftGithubAction.ts index c2a1c677..f88c0eb2 100644 --- a/src/github/SyftGithubAction.ts +++ b/src/github/SyftGithubAction.ts @@ -205,7 +205,11 @@ export async function downloadSyft(): Promise { await execute("sh", [installPath, "-d", "-b", syftBinaryPath, version]); - return path.join(`${syftBinaryPath}`, `${name}`); + const installedPath = path.join(`${syftBinaryPath}`, `${name}`); + if (process.platform === "win32") { + return `${installedPath}.exe`; + } + return installedPath; } /**