This commit is contained in:
Jozef Steinhübl 2026-01-04 23:22:33 +01:00
parent e2f6466c02
commit 9e8f94b1d8
No known key found for this signature in database
GPG Key ID: 8D9A5E4549AA84FD

View File

@ -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`,