Skip to content

Commit

Permalink
アプリの名称をvoicevoxとしてset (#1466)
Browse files Browse the repository at this point in the history
Co-authored-by: Hiroshiba <[email protected]>
  • Loading branch information
g-Ratie and Hiroshiba authored Aug 5, 2023
1 parent f0a726f commit 480cb2d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,13 @@ if (isTest) {
}
console.log(`Environment: ${import.meta.env.MODE}, appData: voicevox${suffix}`);

// バージョン0.14より前の設定ファイルの保存場所
const beforeUserDataDir = app.getPath("userData"); // マイグレーション用

// appnameをvoicevoxとしてsetする
app.setName(`voicevox${suffix}`);

// Electronの設定ファイルの保存場所を変更
const beforeUserDataDir = app.getPath("userData"); // 設定ファイルのマイグレーション用
const fixedUserDataDir = path.join(app.getPath("appData"), `voicevox${suffix}`);
if (!fs.existsSync(fixedUserDataDir)) {
fs.mkdirSync(fixedUserDataDir);
Expand Down

0 comments on commit 480cb2d

Please sign in to comment.