From ba5abff79bba888560fde458defb4992d7c57e7f Mon Sep 17 00:00:00 2001 From: Nanashi Date: Mon, 3 Apr 2023 04:21:13 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20engine=5Fmanifest.json=E3=81=AEversion?= =?UTF-8?q?=E3=82=92=E7=BD=AE=E3=81=8D=E6=8F=9B=E3=81=88=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=20(#643)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Hiroshiba --- .github/workflows/build.yml | 5 ++++- Dockerfile | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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/