Skip to content

Commit

Permalink
fix: presets on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwillox committed Nov 24, 2024
1 parent d6c7e20 commit 58681c2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/presets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ const presets: Record<string, Partial<Config>> = {
},
"cloud-sql-proxy": {
repo: "GoogleCloudPlatform/cloudsql-proxy",
downloadUrl:
"https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v{{version}}/cloud-sql-proxy.{{os}}.{{arch}}",
downloadName: "cloud-sql-proxy",
downloadUrl: `https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v{{version}}/cloud-sql-proxy.${process.platform === "win32" ? "{{arch2}}.exe" : "{{os}}.{{arch}}"}`,
downloadName: "cloud-sql-proxy{{exe}}",
},
"github-cli": {
repo: "cli/cli",
version: "2.62.0",
downloadUrl:
"/releases/download/v{{version}}/gh_{{version}}_{{os}}_{{arch}}.{{archive}}",
binPath: "/gh_{{version}}_{{os}}_{{arch}}/bin",
binPath:
process.platform === "win32"
? "/bin"
: "/gh_{{version}}_{{os}}_{{arch}}/bin",
},
};

Expand Down

0 comments on commit 58681c2

Please sign in to comment.