From 11e023d4ccceb32c5f70b519669eafe045616c3c Mon Sep 17 00:00:00 2001 From: Yun Chan Date: Sun, 18 Oct 2026 07:23:40 +0900 Subject: [PATCH] fix(release): declare the latest-alias digest cache before the publisher's top-level awaits use it Also points the Scoop manifest at the 1.10.0 portable build. --- bucket/d3ro-voice.json | 8 ++++---- scripts/ci/publish-forgejo-release.mjs | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/bucket/d3ro-voice.json b/bucket/d3ro-voice.json index 23e59c7..5184e2a 100644 --- a/bucket/d3ro-voice.json +++ b/bucket/d3ro-voice.json @@ -1,15 +1,15 @@ { - "version": "1.9.0", + "version": "1.10.0", "description": "로컬 AI 음성 어시스턴트 (faster-whisper + Ollama, 100% 오프라인 지원)", "homepage": "https://d3ro.chanpaca.net", "license": "MIT", "architecture": { "64bit": { "url": [ - "https://git.chanpaca.net/api/packages/yunchan/generic/d3ro-voice/portable-1.9.0/D3RO-Voice-1.9.0-x64-portable.7z.001" + "https://git.chanpaca.net/api/packages/yunchan/generic/d3ro-voice/portable-1.10.0/D3RO-Voice-1.10.0-x64-portable.7z.001" ], "hash": [ - "68816cad80105f59d90510b8209e13ff4e5d782c86d97239b0e9c058dd839760" + "3269a2b523795e193314cbc53b9ea9d104e517d662383bde95a4498462d8b7f4" ] } }, @@ -27,7 +27,7 @@ "architecture": { "64bit": { "url": [ - "https://git.chanpaca.net/api/packages/yunchan/generic/d3ro-voice/portable-$version/D3RO-Voice-1.9.0-x64-portable.7z.001" + "https://git.chanpaca.net/api/packages/yunchan/generic/d3ro-voice/portable-$version/D3RO-Voice-1.10.0-x64-portable.7z.001" ] } } diff --git a/scripts/ci/publish-forgejo-release.mjs b/scripts/ci/publish-forgejo-release.mjs index c0ab506..ce601dd 100644 --- a/scripts/ci/publish-forgejo-release.mjs +++ b/scripts/ci/publish-forgejo-release.mjs @@ -193,6 +193,9 @@ for (const asset of versionedPlan.upload) { ); } +// latestAlreadyHolds 가 아래 top-level await 중에 불리므로 그보다 먼저 선언해야 한다 (TDZ). +let latestDigestsPromise = null; + // 2) latest feed 갱신 — 설치 자산 먼저, metadata 마지막, 정책 파일 맨 마지막. // 이미 더 새 버전이 latest에 게시돼 있으면(이전 태그 재실행·mirror 지연 완료) // alias와 update-policy.json은 건드리지 않는다. 버전별 경로와 Release는 계속 게시한다. @@ -289,8 +292,6 @@ async function sha256(path) { return hash.digest("hex"); } -let latestDigestsPromise = null; - /** latest alias에 이미 같은 바이트가 있는지 본다. 목록을 못 읽으면 "모름"으로 보고 교체한다. */ async function latestAlreadyHolds(name, digest) { latestDigestsPromise ??= readRemotePackageDigests({