1
0

update build package shell script

This commit is contained in:
2024-11-07 14:37:00 +08:00
parent 38dabd180d
commit 3e08ef0cc4
2 changed files with 14 additions and 4 deletions

View File

@@ -75,17 +75,20 @@ buildcustomized=${builddir}/customized
customizeddir=${buildcustomized}/${c_arg}.d
fedir=${rootdir}/fe.ems.vue3
feassetsdir=${fedir}/assets
felocalesdir=${fedir}/i18n/locales
feassetsdir=${fedir}/src/assets
felocalesdir=${fedir}/src/i18n/locales
feconstantsdir=${fedir}/src/constants
makefe() {
cd ${fedir}
git checkout ${feassetsdir}
git checkout ${felocalesdir}
git checkout ${feconstantsdir}
git pull
if [ "${c_arg}" == "ba" ]; then
cp -rf ${customizeddir}/images/* ${feassetsdir}
cp -rf ${customizeddir}/locales/* ${felocalesdir}
find "${feconstantsdir}" -type f -name '*.ts' -exec sed -i 's/[一-龥]//g' {} +
fi
npm install --force --registry https://registry.npmmirror.com
echo -n "Building front-end vue ... "
@@ -95,6 +98,7 @@ makefe() {
fi
git checkout ${feassetsdir}
git checkout ${felocalesdir}
git checkout ${feconstantsdir}
}
makebe() {