diff --git a/build.sh b/build.sh index 35e9559..8da334e 100755 --- a/build.sh +++ b/build.sh @@ -335,10 +335,12 @@ case "${pkgtype}" in chmod 755 ${DebBuildDir}/DEBIAN/preinst chmod 755 ${DebBuildDir}/DEBIAN/postinst chmod 755 ${DebBuildDir}/DEBIAN/postrm - cp -rf ${BuildDir}/* ${DebBuildDir}/ + cp -rf ${CustomizedDir}/ba.d/* ${DebBuildOMCDir}/static/omc.d + cp -rf ${CustomizedDir}/ba.d/logo/en_brand.png ${DebBuildOMCDir}/static/omc.d/logo/zh_brand.png + cp -rf ${CustomizedDir}/ba.d/logo/en_icon.png ${DebBuildOMCDir}/static/omc.d/logo/zh_icon.png cp -rf ${CustomizedDir}/ba.d ${DebBuildOMCDir}/static # replace Chinese character - find "${DebBuildOMCDir}/etc/db" -type f -name '*.sql' -exec sed -i 's/[一-龥]//g' {} + + find "${DebBuildOMCDir}/etc/db" -type f -name '*.sql' -exec sed -i 's/[一-龥()“”,。?!]~·]//g' {} + echo "Replace all chinese character." chmod +x ${DebBuildDir}/usr/local/omc/bin sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control diff --git a/makepkg.sh b/makepkg.sh index 5b22bb3..fb602c0 100755 --- a/makepkg.sh +++ b/makepkg.sh @@ -91,8 +91,8 @@ makefe() { if [ "${pkgtype}" == "badeb" ]; then cp -rf ${customizeddir}/images/* ${feassetsdir} cp -rf ${customizeddir}/locales/* ${felocalesdir} - find "${feconstantsdir}" -type f -name '*.ts' -exec sed -i 's/[一-龥]//g' {} + - find "${fehooksdir}" -type f -name '*.ts' -exec sed -i 's/[一-龥]//g' {} + + find "${feconstantsdir}" -type f -name '*.ts' -exec sed -i 's/[一-龥()“”,。?!]~·]//g' {} + + find "${fehooksdir}" -type f -name '*.ts' -exec sed -i 's/[一-龥()“”,。?!]~·]//g' {} + fi npm install --force --registry https://registry.npmmirror.com echo -n "Building front-end vue ... "