Skip to content

Commit

Permalink
Windows用実行バイナリ自動ビルドにlicenses.jsonの生成を追加 (VOICEVOX#126)
Browse files Browse the repository at this point in the history
* generate licenses.json in windows ci

* add licenses.json in doc
  • Loading branch information
aoirint authored Sep 29, 2021
1 parent b756fe8 commit 9fe3ff7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ jobs:
pip install .
- name: Generate licenses.json
shell: bash
run: python generate_licenses.py > licenses.json

- name: Cache Nuitka (ccache, module-cache)
uses: actions/cache@v2
id: nuitka-cache
Expand Down Expand Up @@ -327,6 +331,7 @@ jobs:
--include-package-data=pyopenjtalk
--include-package-data=resampy
--include-data-file="VERSION.txt=./"
--include-data-file="licenses.json=./"
--msvc=14.2
--follow-imports
--no-prefer-source-code
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ Build Tools for Visual Studio 2019 が必要です。
```bash
pip install -r requirements-dev.txt

python generate_licenses.py > licenses.json

python -m nuitka \
--standalone \
--plugin-enable=numpy \
Expand All @@ -145,6 +147,7 @@ python -m nuitka \
--include-package-data=pyopenjtalk \
--include-package-data=resampy \
--include-data-file=VERSION.txt=./ \
--include-data-file=licenses.json=./ \
--include-data-file=C:/path/to/cuda/*.dll=./ \
--include-data-file=C:/path/to/libtorch/*.dll=./ \
--include-data-file=C:/音声ライブラリへのパス/*.bin=./ \
Expand Down

0 comments on commit 9fe3ff7

Please sign in to comment.