Skip to content

Commit 9fe3ff7

Browse files
authored
Windows用実行バイナリ自動ビルドにlicenses.jsonの生成を追加 (VOICEVOX#126)
* generate licenses.json in windows ci * add licenses.json in doc
1 parent b756fe8 commit 9fe3ff7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ jobs:
298298
299299
pip install .
300300
301+
- name: Generate licenses.json
302+
shell: bash
303+
run: python generate_licenses.py > licenses.json
304+
301305
- name: Cache Nuitka (ccache, module-cache)
302306
uses: actions/cache@v2
303307
id: nuitka-cache
@@ -327,6 +331,7 @@ jobs:
327331
--include-package-data=pyopenjtalk
328332
--include-package-data=resampy
329333
--include-data-file="VERSION.txt=./"
334+
--include-data-file="licenses.json=./"
330335
--msvc=14.2
331336
--follow-imports
332337
--no-prefer-source-code

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ Build Tools for Visual Studio 2019 が必要です。
136136
```bash
137137
pip install -r requirements-dev.txt
138138

139+
python generate_licenses.py > licenses.json
140+
139141
python -m nuitka \
140142
--standalone \
141143
--plugin-enable=numpy \
@@ -145,6 +147,7 @@ python -m nuitka \
145147
--include-package-data=pyopenjtalk \
146148
--include-package-data=resampy \
147149
--include-data-file=VERSION.txt=./ \
150+
--include-data-file=licenses.json=./ \
148151
--include-data-file=C:/path/to/cuda/*.dll=./ \
149152
--include-data-file=C:/path/to/libtorch/*.dll=./ \
150153
--include-data-file=C:/音声ライブラリへのパス/*.bin=./ \

0 commit comments

Comments
 (0)