diff --git a/Dockerfile b/Dockerfile index c7d2245c8..309493e3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ ARG VERSION ENV VERSION=$VERSION ADD . /data RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=lina \ - sed -i "s@Version .*@Version ${VERSION}@g" src/layout/components/Footer/index.vue \ + sed -i "s@ version-dev @ ${VERSION} @g" src/layout/components/NavHeader/About.vue \ && yarn build FROM nginx:alpine diff --git a/src/layout/components/NavHeader/About.vue b/src/layout/components/NavHeader/About.vue index 81a490bb8..7d5191028 100644 --- a/src/layout/components/NavHeader/About.vue +++ b/src/layout/components/NavHeader/About.vue @@ -13,7 +13,7 @@
logo
-
{{ $tc('ops.version') }}: dev GPLv3.
+
{{ $tc('ops.version') }}: version-dev GPLv3.
{{ $tc('common.PermissionCompany') }}:{{ corporation }}
diff --git a/utils/build.sh b/utils/build.sh index 7eae42304..1b815ae4e 100755 --- a/utils/build.sh +++ b/utils/build.sh @@ -12,7 +12,7 @@ else fi function change_version() { - sedi "s@Version .*@Version ${VERSION}@g" "${project_dir}/src/layout/components/Footer/index.vue" || return 2 + sedi "s@ version-dev @ ${VERSION} @g" "${project_dir}/src/layout/components/NavHeader/About.vue" || return 2 } function install_deps() {