fix install

This commit is contained in:
2026-09-10 13:44:54 +02:00
parent bb95f9334b
commit f48794c2cc
3 changed files with 7 additions and 9 deletions
+4 -3
View File
@@ -114,7 +114,8 @@ async function install(mode: "native" | "checksum" | "legacy") {
join(directory, "release.json"),
JSON.stringify({
tag_name: "v1.0.0",
assets: ["stanp-opencode.tgz", "stanp-opencode.tgz.sha256"].map((name) => ({
assets: ["stanp-opencode.tgz", "stanp-opencode.tgz.sha256"].map((name, id) => ({
id: id + 1,
name,
browser_download_url: `https://fixtures.invalid/${name}`,
})),
@@ -135,8 +136,8 @@ while (($#)); do
done
case "$url" in
https://git.krtss.de/api/v1/repos/StanPonomarev/stanp-opencode/releases/latest) source=release.json ;;
https://fixtures.invalid/stanp-opencode.tgz) source=stanp-opencode.tgz ;;
https://fixtures.invalid/stanp-opencode.tgz.sha256) source=stanp-opencode.tgz.sha256 ;;
https://fixtures.invalid/stanp-opencode.tgz?asset_id=1) source=stanp-opencode.tgz ;;
https://fixtures.invalid/stanp-opencode.tgz.sha256?asset_id=2) source=stanp-opencode.tgz.sha256 ;;
*) printf 'Unexpected fixture URL: %s\\n' "$url" >&2; exit 1 ;;
esac
if [[ -n "$output" ]]; then