diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 292bdbb..cc8f02d 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -9,7 +9,7 @@ runs: - uses: actions/setup-python@v5 with: python-version: '3.10.x' - - uses: FedericoCarboni/setup-ffmpeg@v1 + - uses: FedericoCarboni/setup-ffmpeg@v3 id: setup-ffmpeg - name: fetch tags run: git fetch --prune --unshallow --tags @@ -24,7 +24,7 @@ runs: run: pip install --upgrade build twine shell: bash - name: build - run: python3 -m build + run: python3 -X utf8 -m build shell: bash - name: install run: pip install dist/*.whl diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c6038f..2a0dac7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: run: python3 ./versionfile_gen.py - name: run pyinstaller run: | - pyinstaller --collect-data preppipe --icon=preppipe.ico --version-file=versionfile.txt -n preppipe_cli -D preppipe_cli.py + pyinstaller --collect-data preppipe --collect-data pypinyin --recursive-copy-metadata preppipe --icon=preppipe.ico --version-file=versionfile.txt -n preppipe_cli -D preppipe_cli.py cd dist/preppipe_cli && 7z.exe a -t7z -mx=9 ../preppipe_cli-windows-x64.7z * - uses: "marvinpinto/action-automatic-releases@latest" with: diff --git a/setup.cfg b/setup.cfg index d376ec5..9ed8d95 100644 --- a/setup.cfg +++ b/setup.cfg @@ -38,7 +38,7 @@ install_requires = ghostscript editdistance bidict - pypinyin <= 0.51 + pypinyin graphviz antlr4-python3-runtime >= 4.10, < 4.11.0