Skip to content

Commit

Permalink
Change: バージョンを固定
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi authored Feb 18, 2024
1 parent 0896bd3 commit e8f7407
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions build/downloadMobileAssets.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e8f7407

Please sign in to comment.