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

Mac: vvprojファイルからVOICEVOXを正しく開けるようにする #588

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

PickledChair
Copy link
Member

内容

vvprojファイルからVOICEVOXを開くと、VOICEVOXは立ち上がりますがプロジェクト内容を開くことができていませんでした。この問題について、プロジェクト内容を開けるように修正しました。

関連 Issue

close #586
ref #572

スクリーンショット・動画など

以下のように、vvprojファイルをダブルクリックしてVOICEVOXを開いたとき、プロジェクト内容がエディタに反映されます(コンテキストメニューからの起動でも同様です)。

open_from_file_mac.mov

その他

https://github.com/PickledChair/voicevox/actions/runs/1572994607macos-cpu-prepackage-zip から今回の変更を加えた Mac 向けビルドをダウンロードできます。

また「system preferenceからアプリケーション実行を許可した初回起動時にエラーが出る」という問題( #570 (comment)#572 (comment) を参照)は、調べた限りは Mac において process.argv でファイルパスを得ようとした時に起こっているようだったので、今回の変更で同時に修正された可能性があります。修正されていなかった場合は、このPR内で引き続き作業します。動作確認できる方は確認をよろしくお願いいたします。

他のOSでの動作確認をまだ行っていません。後ほど Linux 版の動作を確認してみます。

@PickledChair
Copy link
Member Author

Linux 環境で同様に https://github.com/PickledChair/voicevox/actions/runs/1572994607 から linux-cpu-prepackage-targz をダウンロードして、./voicevox /path/to/test.vvproj を実行したところ、正しく起動するのを確認しました。

Windows については手元に環境がないので、どなたか確認してくだされば幸いです。

Copy link
Member

@y-chan y-chan left a comment

Choose a reason for hiding this comment

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

LGTM!

Windowsでも、第二引数にファイル名を取って実行する形、ファイルをexeファイルにD&Dする形、双方で何も問題は起きませんでした。

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

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

LGTM!!

@Hiroshiba Hiroshiba merged commit ce00a73 into VOICEVOX:main Dec 14, 2021
@PickledChair PickledChair deleted the open-from-file-on-mac branch December 29, 2021 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mac: vvprojファイルからVOICEVOXを開いてもプロジェクトが開かれない
3 participants