update build package shell script
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user