Skip to content

Commit

Permalink
improve install
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Nov 12, 2022
1 parent 4d25ab4 commit b60ea88
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/goreleaser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ export async function install(distribution: string, version: string): Promise<st
let extPath: string;
if (context.osPlat == 'win32') {
if(!downloadPath.endsWith('.zip')) {
let newPath = downloadPath + '.zip'
fs.renameSync(downloadPath, newPath)
downloadPath = newPath
let newPath = downloadPath + '.zip';
fs.renameSync(downloadPath, newPath);
extPath = await tc.extractZip(newPath);
} else {
extPath = await tc.extractZip(downloadPath);
}
extPath = await tc.extractZip(downloadPath);
} else {
extPath = await tc.extractTar(downloadPath);
}
Expand Down

0 comments on commit b60ea88

Please sign in to comment.