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;