support customized images and locales for FE
This commit is contained in:
BIN
customized/agt.d/images/background_dark.jpg
Normal file
BIN
customized/agt.d/images/background_dark.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 114 B |
BIN
customized/agt.d/images/background_light.jpg
Normal file
BIN
customized/agt.d/images/background_light.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
0
customized/agt.d/locales/.gitkeep
Normal file
0
customized/agt.d/locales/.gitkeep
Normal file
BIN
customized/ba.d/images/background_dark.jpg
Normal file
BIN
customized/ba.d/images/background_dark.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 216 KiB |
BIN
customized/ba.d/images/background_light.jpg
Normal file
BIN
customized/ba.d/images/background_light.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 216 KiB |
2
customized/ba.d/locales/zh-CN.ts
Normal file
2
customized/ba.d/locales/zh-CN.ts
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export default {
|
||||||
|
};
|
||||||
BIN
customized/omc.d/images/background_dark.jpg
Normal file
BIN
customized/omc.d/images/background_dark.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 114 B |
BIN
customized/omc.d/images/background_light.jpg
Normal file
BIN
customized/omc.d/images/background_light.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
0
customized/omc.d/locales/.gitkeep
Normal file
0
customized/omc.d/locales/.gitkeep
Normal file
19
makepkg.sh
19
makepkg.sh
@@ -49,8 +49,11 @@ while getopts "m:r:c:d" option; do
|
|||||||
be_args+=("-d")
|
be_args+=("-d")
|
||||||
;;
|
;;
|
||||||
c)
|
c)
|
||||||
|
c_arg=$(echo $OPTARG | tr '[:upper:]' '[:lower:]')
|
||||||
|
if [ "c_arg" == "ba" ]; then
|
||||||
pkgtype="badeb"
|
pkgtype="badeb"
|
||||||
be_args+=("$pkgtype")
|
be_args+=("$pkgtype")
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
\?)
|
\?)
|
||||||
echo "Invalid option: -$OPTARG" >&2
|
echo "Invalid option: -$OPTARG" >&2
|
||||||
@@ -66,18 +69,32 @@ if [ ! -d ${rootdir} ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
bedir=${rootdir}/be.ems
|
bedir=${rootdir}/be.ems
|
||||||
fedir=${rootdir}/fe.ems.vue3
|
|
||||||
builddir=${rootdir}/build.ems
|
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() {
|
makefe() {
|
||||||
cd ${fedir}
|
cd ${fedir}
|
||||||
|
git checkout ${feassetsdir}
|
||||||
|
git checkout ${felocalesdir}
|
||||||
git pull
|
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
|
npm install --force --registry https://registry.npmmirror.com
|
||||||
echo -n "Building front-end vue ... "
|
echo -n "Building front-end vue ... "
|
||||||
npm run build 1>/dev/null
|
npm run build 1>/dev/null
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
echo "done"
|
echo "done"
|
||||||
fi
|
fi
|
||||||
|
git checkout ${feassetsdir}
|
||||||
|
git checkout ${felocalesdir}
|
||||||
}
|
}
|
||||||
|
|
||||||
makebe() {
|
makebe() {
|
||||||
|
|||||||
Reference in New Issue
Block a user