Update goreleaser.ts

This commit is contained in:
Fritz Larco 2022-11-12 14:52:30 -05:00 committed by GitHub
parent b508e2e3ef
commit 4d25ab4fd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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);