diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c44f82034..1ffbb6cc6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -159,7 +159,7 @@ jobs: cp "${CUDA_ROOT}/lib64/"libcurand.so.* download/cuda/bin/ # remove unneed full version libraries - rm -f download/cuda/bin/libcublas.so.*.* + rm -f download/cuda/bin/libcublas.so.*.* rm -f download/cuda/bin/libcublasLt.so.*.* rm -f download/cuda/bin/libcufft.so.*.* rm -f download/cuda/bin/libcurand.so.*.* @@ -446,6 +446,9 @@ jobs: run: | set -eux + jq '.version = "${{ needs.config.outputs.version_or_latest }}"' engine_manifest.json > engine_manifest.json.tmp + mv -f engine_manifest.json.tmp engine_manifest.json + # Replace version & specify dynamic libraries if [[ ${{ matrix.os }} == macos-* ]]; then gsed -i "s/__version__ = \"latest\"/__version__ = \"${{ needs.config.outputs.version_or_latest }}\"/" voicevox_engine/__init__.py diff --git a/Dockerfile b/Dockerfile index bbc9845af..5fe278b33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -236,6 +236,7 @@ ADD ./engine_manifest_assets /opt/voicevox_engine/engine_manifest_assets # Replace version ARG VOICEVOX_ENGINE_VERSION=latest RUN sed -i "s/__version__ = \"latest\"/__version__ = \"${VOICEVOX_ENGINE_VERSION}\"/" /opt/voicevox_engine/voicevox_engine/__init__.py +RUN sed -i "s/\"version\": \"999\\.999\\.999\"/\"version\": \"${VOICEVOX_ENGINE_VERSION}\"/" /opt/voicevox_engine/engine_manifest.json # Generate licenses.json ADD ./requirements-license.txt /tmp/