fix
This commit is contained in:
parent
e2f6466c02
commit
9e8f94b1d8
@ -75,7 +75,7 @@ async function getShaDownloadMeta(options: Input): Promise<DownloadMeta> {
|
|||||||
const { os, arch, avx2, profile, token } = options;
|
const { os, arch, avx2, profile, token } = options;
|
||||||
|
|
||||||
const name = `bun-${os ?? getPlatform()}-${arch ?? getArchitecture()}${
|
const name = `bun-${os ?? getPlatform()}-${arch ?? getArchitecture()}${
|
||||||
avx2 == false ? "-baseline" : ""
|
avx2 === false ? "-baseline" : ""
|
||||||
}${profile ? "-profile" : ""}`;
|
}${profile ? "-profile" : ""}`;
|
||||||
|
|
||||||
const artifact = artifacts.artifacts.find((item) => item.name === name);
|
const artifact = artifacts.artifacts.find((item) => item.name === name);
|
||||||
@ -128,8 +128,8 @@ async function getSemverDownloadMeta(options: Input): Promise<DownloadMeta> {
|
|||||||
const eversion = encodeURIComponent(tag ?? version);
|
const eversion = encodeURIComponent(tag ?? version);
|
||||||
const eos = encodeURIComponent(os ?? getPlatform());
|
const eos = encodeURIComponent(os ?? getPlatform());
|
||||||
const earch = encodeURIComponent(arch ?? getArchitecture());
|
const earch = encodeURIComponent(arch ?? getArchitecture());
|
||||||
const eavx2 = encodeURIComponent(avx2 == false ? "-baseline" : "");
|
const eavx2 = encodeURIComponent(avx2 === false ? "-baseline" : "");
|
||||||
const eprofile = encodeURIComponent(profile == true ? "-profile" : "");
|
const eprofile = encodeURIComponent(profile === true ? "-profile" : "");
|
||||||
|
|
||||||
const { href } = new URL(
|
const { href } = new URL(
|
||||||
`${eversion}/bun-${eos}-${earch}${eavx2}${eprofile}.zip`,
|
`${eversion}/bun-${eos}-${earch}${eavx2}${eprofile}.zip`,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user