chore(release): bump version to v0.8.9 and prioritize archive updates

This commit is contained in:
gitea committed 2026-09-18 11:43:55 +08:00
1 parent db2b256fcd
commit 64c0fafcf6
10 files changed
+153 -136

No files matched your search

+4 -3
View File
@@ -53,18 +53,19 @@ describe("normalizeRepo and isValidRepo", () => {
describe("matchAssetForPlatform", () => {
const assets: GitHubAsset[] = [
{ name: "hose-use-darwin-arm64", downloadUrl: "https://example.com/darwin-arm64", size: 100 },
{ name: "hose-use-darwin-arm64.tar.gz", downloadUrl: "https://example.com/darwin-arm64.tar.gz", size: 40 },
{ name: "hose-use-darwin-x64", downloadUrl: "https://example.com/darwin-x64", size: 100 },
{ name: "hose-use-linux-x64.tar.gz", downloadUrl: "https://example.com/linux-x64.tar.gz", size: 100 },
{ name: "hose-use-linux-arm64", downloadUrl: "https://example.com/linux-arm64", size: 100 },
{ name: "hose-use-windows-x64.zip", downloadUrl: "https://example.com/win-x64.zip", size: 100 },
];
test("matches darwin arm64", () => {
test("matches darwin arm64 with archive priority", () => {
const matched = matchAssetForPlatform(assets, "darwin", "arm64");
expect(matched?.name).toBe("hose-use-darwin-arm64");
expect(matched?.name).toBe("hose-use-darwin-arm64.tar.gz");
});
test("matches darwin x64", () => {
test("matches darwin x64 fallback to raw binary when no archive present", () => {
const matched = matchAssetForPlatform(assets, "darwin", "x64");
expect(matched?.name).toBe("hose-use-darwin-x64");
});