Skip to content

Commit

Permalink
append exe to install path on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Will Murphy <[email protected]>
  • Loading branch information
willmurphyscode committed Nov 7, 2023
1 parent a7f36cc commit f753891
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion dist/attachReleaseAssets/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion dist/downloadSyft/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion dist/runSyftAction/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/github/SyftGithubAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@ export async function downloadSyft(): Promise<string> {

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;
}

/**
Expand Down

0 comments on commit f753891

Please sign in to comment.