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

エンジンを含めてビルドするとファイル容量が2GBを超えてインストーラが作成できない #15

Closed
Hiroshiba opened this issue Aug 2, 2021 · 3 comments

Comments

@Hiroshiba
Copy link
Member

エンジンの容量を削減するには時間がかかるので、インストーラを作る段階で対処したい。

Github Releaseなどに分割してバイナリを配置したものからインストールするインストーラーを作る、
vue.config.jsのbuilderOptionsにtarget: msiを追加してmsi形式にする、などの手段が思いつく。

前者は方法がわからない、後者はインストール時になぜかエラーになる。

@oov
Copy link
Contributor

oov commented Aug 6, 2021

ちょっと個人的にも興味があって、Inno Setup 用のインストーラースクリプトを試しに書いてみました。

https://github.com/oov/VOICEVOX-installer-demo
オフライン版とオンライン版があります。
オフライン版は通常のインストーラで、オンライン版はインストール中に http://127.0.0.1:50022/ から 7z ファイルをダウンロードしてくるようになっています。

使い物になるかどうかわかりませんが、もし参考になりそうでしたらお使いください。

@Hiroshiba
Copy link
Member Author

Hiroshiba commented Aug 7, 2021

なるほど、ありがとうございます。参考になりそうです。
electron-builderはtargetにdirを指定すれば全部入りディレクトリだけができあがるので、このあとInno Setupでインストーラを作るという手があるかもしれません。
ただelectron-builderは他にも自動アップデートなどにも対応しているので、そのあたりの機能が受けられないとなると少しもったいないかもです。

Hiroshiba added a commit that referenced this issue Aug 17, 2021
* electron-builder installer settings
appId is FQDN of VOICEVOX website.
copyright name is author of VOICEVOX.

* electron-builder installer settings
appId is FQDN of VOICEVOX website.
copyright name is author of VOICEVOX.

* change installer target nsis-web

* electron-builder installer settings
appId is FQDN of VOICEVOX website.
copyright name is author of VOICEVOX.

* change installer target nsis-web

* add custom installer script

* change download repository

* change concatenate process
to get detail error message

* add resource split script
for nsis-web

* change CI test OS

* move splitResources.js to build dir

* change dictionary key specification way

Co-authored-by: Hiroshiba <[email protected]>

* apply fmt

* change file index variable to camel case

* fix to use project version env

* fix variable expansion

* fix for eslint disable
importing module and unused variable

* remove extends attribute

Co-authored-by: Hiroshiba <[email protected]>
@Hiroshiba
Copy link
Member Author

分割リリースが正常に稼働する個が確認できたので、閉じます。
続き https://github.com/Hiroshiba/voicevox/issues/148

romot-co pushed a commit that referenced this issue Oct 10, 2022
romot-co pushed a commit that referenced this issue Oct 11, 2022
romot-co pushed a commit that referenced this issue Oct 12, 2022
romot-co added a commit that referenced this issue Oct 18, 2022
* #15 要素のみの状態

* #15 project-s:storeの利用(仕掛かり)

* project-s: 各コンポーネントの調整 (#15)

* project-s: spec追加 (#15)

* project-s: Component name Note should always be multi-word の修正 (#15)

* project-s: 未使用定数などの削除(今後利用時追加) #15

Co-authored-by: Romot <[email protected]>
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

No branches or pull requests

2 participants