diff --git a/customized/agt.d/images/background_dark.jpg b/customized/agt.d/images/background_dark.jpg new file mode 100644 index 0000000..1b64e7d Binary files /dev/null and b/customized/agt.d/images/background_dark.jpg differ diff --git a/customized/agt.d/images/background_light.jpg b/customized/agt.d/images/background_light.jpg new file mode 100644 index 0000000..1014183 Binary files /dev/null and b/customized/agt.d/images/background_light.jpg differ diff --git a/customized/agt.d/locales/.gitkeep b/customized/agt.d/locales/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/customized/ba.d/images/background_dark.jpg b/customized/ba.d/images/background_dark.jpg new file mode 100644 index 0000000..5daea14 Binary files /dev/null and b/customized/ba.d/images/background_dark.jpg differ diff --git a/customized/ba.d/images/background_light.jpg b/customized/ba.d/images/background_light.jpg new file mode 100644 index 0000000..5daea14 Binary files /dev/null and b/customized/ba.d/images/background_light.jpg differ diff --git a/customized/ba.d/locales/zh-CN.ts b/customized/ba.d/locales/zh-CN.ts new file mode 100644 index 0000000..02a61be --- /dev/null +++ b/customized/ba.d/locales/zh-CN.ts @@ -0,0 +1,2 @@ +export default { +}; diff --git a/customized/omc.d/images/background_dark.jpg b/customized/omc.d/images/background_dark.jpg new file mode 100644 index 0000000..1b64e7d Binary files /dev/null and b/customized/omc.d/images/background_dark.jpg differ diff --git a/customized/omc.d/images/background_light.jpg b/customized/omc.d/images/background_light.jpg new file mode 100644 index 0000000..1014183 Binary files /dev/null and b/customized/omc.d/images/background_light.jpg differ diff --git a/customized/omc.d/locales/.gitkeep b/customized/omc.d/locales/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/makepkg.sh b/makepkg.sh index cada75b..369a5b0 100755 --- a/makepkg.sh +++ b/makepkg.sh @@ -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() {