mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-06 01:05:13 +00:00
fix: 修复 build 时设置版本号
This commit is contained in:
parent
71c86a637c
commit
0b5d7c8ca1
@ -16,7 +16,7 @@ ARG VERSION
|
|||||||
ENV VERSION=$VERSION
|
ENV VERSION=$VERSION
|
||||||
ADD . /data
|
ADD . /data
|
||||||
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=lina \
|
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=lina \
|
||||||
sed -i "s@Version <strong>.*</strong>@Version <strong>${VERSION}</strong>@g" src/layout/components/Footer/index.vue \
|
sed -i "s@<strong> version-dev </strong>@<strong> ${VERSION} </strong>@g" src/layout/components/NavHeader/About.vue \
|
||||||
&& yarn build
|
&& yarn build
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<div class="head">
|
<div class="head">
|
||||||
<img :src="logoTextSrc" alt="logo" class="sidebar-logo-text">
|
<img :src="logoTextSrc" alt="logo" class="sidebar-logo-text">
|
||||||
</div>
|
</div>
|
||||||
<div class="text">{{ $tc('ops.version') }}:<strong> dev </strong> <span v-if="!publicSettings.XPACK_LICENSE_IS_VALID"> GPLv3. </span></div>
|
<div class="text">{{ $tc('ops.version') }}:<strong> version-dev </strong> <span v-if="!publicSettings.XPACK_LICENSE_IS_VALID"> GPLv3. </span></div>
|
||||||
<div class="text">{{ $tc('common.PermissionCompany') }}:{{ corporation }}</div>
|
<div class="text">{{ $tc('common.PermissionCompany') }}:{{ corporation }}</div>
|
||||||
<el-divider class="divider" />
|
<el-divider class="divider" />
|
||||||
<div class="text">
|
<div class="text">
|
||||||
|
@ -12,7 +12,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
function change_version() {
|
function change_version() {
|
||||||
sedi "s@Version <strong>.*</strong>@Version <strong>${VERSION}</strong>@g" "${project_dir}/src/layout/components/Footer/index.vue" || return 2
|
sedi "s@<strong> version-dev </strong>@<strong> ${VERSION} </strong>@g" "${project_dir}/src/layout/components/NavHeader/About.vue" || return 2
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_deps() {
|
function install_deps() {
|
||||||
|
Loading…
Reference in New Issue
Block a user