Skip to content

Commit b60ea88

Browse files
committed
improve install
1 parent 4d25ab4 commit b60ea88

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/goreleaser.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ export async function install(distribution: string, version: string): Promise<st
2929
let extPath: string;
3030
if (context.osPlat == 'win32') {
3131
if(!downloadPath.endsWith('.zip')) {
32-
let newPath = downloadPath + '.zip'
33-
fs.renameSync(downloadPath, newPath)
34-
downloadPath = newPath
32+
let newPath = downloadPath + '.zip';
33+
fs.renameSync(downloadPath, newPath);
34+
extPath = await tc.extractZip(newPath);
35+
} else {
36+
extPath = await tc.extractZip(downloadPath);
3537
}
36-
extPath = await tc.extractZip(downloadPath);
3738
} else {
3839
extPath = await tc.extractTar(downloadPath);
3940
}

0 commit comments

Comments
 (0)