Skip to content

Commit

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

0 comments on commit 4d25ab4

Please sign in to comment.