mirror of
https://github.com/goreleaser/goreleaser-action.git
synced 2026-05-18 00:11:53 +00:00
fix: platform detection (#299)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
1bdedc7bba
commit
f9141d00ae
2 changed files with 2 additions and 2 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
|
@ -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' : 'i386';
|
||||
const arch = osArch == 'x64' ? 'x86_64' : true ? 'i386' : 0;
|
||||
const ext = osPlat == 'win32' ? 'zip' : 'tar.gz';
|
||||
const suffix = pro.suffix(distribution);
|
||||
return util.format('goreleaser%s_%s_%s.%s', suffix, platform, arch, ext);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue