support customized images and locales for FE
This commit is contained in:
1 parent
cd6578f57c
commit
38dabd180d
10 files changed
+22
-3
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 114 B |
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
Whitespace-only changes.
Binary file not shown.
|
After Width: | Height: | Size: 217 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 217 KiB |
@@ -0,0 +1,2 @@
|
||||
export default {
|
||||
};
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 114 B |
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
Whitespace-only changes.
+20
-3
@@ -49,8 +49,11 @@ while getopts "m:r:c:d" option; do
|
||||
be_args+=("-d")
|
||||
;;
|
||||
c)
|
||||
pkgtype="badeb"
|
||||
be_args+=("$pkgtype")
|
||||
c_arg=$(echo $OPTARG | tr '[:upper:]' '[:lower:]')
|
||||
if [ "c_arg" == "ba" ]; then
|
||||
pkgtype="badeb"
|
||||
be_args+=("$pkgtype")
|
||||
fi
|
||||
;;
|
||||
\?)
|
||||
echo "Invalid option: -$OPTARG" >&2
|
||||
@@ -66,18 +69,32 @@ if [ ! -d ${rootdir} ]; then
|
||||
fi
|
||||
|
||||
bedir=${rootdir}/be.ems
|
||||
fedir=${rootdir}/fe.ems.vue3
|
||||
|
||||
builddir=${rootdir}/build.ems
|
||||
buildcustomized=${builddir}/customized
|
||||
customizeddir=${buildcustomized}/${c_arg}.d
|
||||
|
||||
fedir=${rootdir}/fe.ems.vue3
|
||||
feassetsdir=${fedir}/assets
|
||||
felocalesdir=${fedir}/i18n/locales
|
||||
|
||||
makefe() {
|
||||
cd ${fedir}
|
||||
git checkout ${feassetsdir}
|
||||
git checkout ${felocalesdir}
|
||||
git pull
|
||||
if [ "${c_arg}" == "ba" ]; then
|
||||
cp -rf ${customizeddir}/images/* ${feassetsdir}
|
||||
cp -rf ${customizeddir}/locales/* ${felocalesdir}
|
||||
fi
|
||||
npm install --force --registry https://registry.npmmirror.com
|
||||
echo -n "Building front-end vue ... "
|
||||
npm run build 1>/dev/null
|
||||
if [ $? = 0 ]; then
|
||||
echo "done"
|
||||
fi
|
||||
git checkout ${feassetsdir}
|
||||
git checkout ${felocalesdir}
|
||||
}
|
||||
|
||||
makebe() {
|
||||
|
||||
Reference in new issue
Block a user