mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-06-29 22:37:30 +00:00
fix: platform detection v2 (#300)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -246,7 +246,7 @@ function getGoReleaser(distribution, version) {
|
||||
exports.getGoReleaser = getGoReleaser;
|
||||
const getFilename = (distribution) => {
|
||||
const platform = osPlat == 'win32' ? 'Windows' : osPlat == 'darwin' ? 'Darwin' : 'Linux';
|
||||
const arch = osArch == 'x64' ? 'x86_64' : true ? 'i386' : 0;
|
||||
const arch = osArch == 'x64' ? 'x86_64' : osArch == 'x32' ? 'i386' : osArch;
|
||||
const ext = osPlat == 'win32' ? 'zip' : 'tar.gz';
|
||||
const suffix = pro.suffix(distribution);
|
||||
return util.format('goreleaser%s_%s_%s.%s', suffix, platform, arch, ext);
|
||||
|
||||
Reference in New Issue
Block a user