Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: electronのカレントディレクトリの変更のロジックを共通化 #2570

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Hiroshiba
Copy link
Member

内容

の解決として実装してみました。

相対パスを利用している場所がデフォルトエンジン以外に無いか少し不安。。。
pathのresolveやprocessのspawnexecで調べた感じ大丈夫そうだけど。。
readFileで相対パスを使ってるのとかない・・・かなぁ。

関連 Issue

resolve #2568

その他

先に↓が必要です。

@Hiroshiba Hiroshiba requested a review from a team as a code owner February 26, 2025 18:30
@voicevox-preview-pages
Copy link

voicevox-preview-pages bot commented Feb 26, 2025

🚀 プレビュー用ページを作成しました 🚀

更新時点でのコミットハッシュ:e234de8

Comment on lines 197 to 199
initializeEngineInfoManager({
defaultEngineDir: appDirPath,
appDirPath,
vvppEngineDir,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

引数defaultEngineDirにはappDirPathを渡してたのですが、ややこしいからもうappDirPathのまま受け取るようにしてみました。
VOICEVOXの場合、「デフォルトエンジンディレクトリ」の場所はどっちかというと{appDirPath}/vv-engineだよなぁと思ったので。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant