From e8f7407338ace24f58287d26fe6ba4bba69b8bbe Mon Sep 17 00:00:00 2001 From: Nanashi Date: Mon, 19 Feb 2024 06:03:52 +0900 Subject: [PATCH] =?UTF-8?q?Change:=20=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E3=82=92=E5=9B=BA=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/downloadMobileAssets.mts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/build/downloadMobileAssets.mts b/build/downloadMobileAssets.mts index a516cf7881..506c94d22f 100644 --- a/build/downloadMobileAssets.mts +++ b/build/downloadMobileAssets.mts @@ -46,11 +46,16 @@ const downloadAndCompressModel = async () => { return; } console.log("Downloading model..."); - const releases = await fetch( - "https://api.github.com/repos/voicevox/voicevox_core/releases" - ); - const releasesJson = (await releases.json()) as Release[]; - const latestRelease = releasesJson[0]; + // 今の最新(0.15.0)にはモデルのzipが入ってないので、0.15.0-preview.16を使っている。 + // TODO: 次のプレリリースが出たら直す。 + // const releases = await fetch( + // "https://api.github.com/repos/voicevox/voicevox_core/releases" + // ); + // const releasesJson = (await releases.json()) as Release[]; + // const latestRelease = releasesJson[0]; + const latestRelease = await fetch( + "https://api.github.com/repos/voicevox/voicevox_core/releases/0.15.0-preview.16" + ).then((r) => r.json()) const modelUrl = latestRelease.assets.find((asset) => asset.name.startsWith("model-") )?.browser_download_url;