Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2bebf6b729 | ||
|
|
17591b1705 | ||
|
|
5d9425c457 | ||
|
|
d8624c2fe9 | ||
|
|
cb8692cf44 | ||
|
|
cc45dd1be3 | ||
|
|
56d62831eb | ||
|
|
246fb027cd | ||
|
|
7818759109 | ||
|
|
48d5a0a783 |
10
build.sh
10
build.sh
@@ -56,7 +56,7 @@ fi
|
|||||||
ProjectL=omc
|
ProjectL=omc
|
||||||
ProjectU=OMC
|
ProjectU=OMC
|
||||||
PROJECT=${ProjectL}
|
PROJECT=${ProjectL}
|
||||||
VERSION=2.2502.3
|
VERSION=2.2503.6
|
||||||
RelDate=`date +%Y%m%d`
|
RelDate=`date +%Y%m%d`
|
||||||
RelVer=${VERSION}-${RelDate}
|
RelVer=${VERSION}-${RelDate}
|
||||||
Ky10Arch=ky10.aarch64
|
Ky10Arch=ky10.aarch64
|
||||||
@@ -163,6 +163,12 @@ case $(get_os_info) in
|
|||||||
RpmPkgName=${ProjectL}-${RelVer}.${RpmArch}.${ptype}
|
RpmPkgName=${ProjectL}-${RelVer}.${RpmArch}.${ptype}
|
||||||
RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
|
RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
|
||||||
;;
|
;;
|
||||||
|
kylin|anolis)
|
||||||
|
ptype=rpm
|
||||||
|
RelOS=ky
|
||||||
|
RpmPkgName=${ProjectL}-${RelVer}.${RpmArch}.${ptype}
|
||||||
|
RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unsupported OS"
|
echo "Unsupported OS"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -332,7 +338,7 @@ case "${pkgtype}" in
|
|||||||
cp -rf ${BuildDir}/* ${DebBuildDir}/
|
cp -rf ${BuildDir}/* ${DebBuildDir}/
|
||||||
cp -rf ${CustomizedDir}/ba.d ${DebBuildOMCDir}/static
|
cp -rf ${CustomizedDir}/ba.d ${DebBuildOMCDir}/static
|
||||||
# replace Chinese character
|
# 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."
|
echo "Replace all chinese character."
|
||||||
chmod +x ${DebBuildDir}/usr/local/omc/bin
|
chmod +x ${DebBuildDir}/usr/local/omc/bin
|
||||||
sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control
|
sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Package: OMC
|
Package: OMC
|
||||||
Version: 2.2502.3-YYYYMMDD
|
Version: 2.2503.6-YYYYMMDD
|
||||||
Section: AGrandTech
|
Section: AGrandTech
|
||||||
Prioritt: optional
|
Prioritt: optional
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Package: OMC
|
Package: OMC
|
||||||
Version: 2.2502.3-YYYYMMDD
|
Version: 2.2503.6-YYYYMMDD
|
||||||
Section: AGrandTech
|
Section: AGrandTech
|
||||||
Prioritt: optional
|
Prioritt: optional
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
|
|||||||
@@ -91,8 +91,8 @@ makefe() {
|
|||||||
if [ "${pkgtype}" == "badeb" ]; then
|
if [ "${pkgtype}" == "badeb" ]; then
|
||||||
cp -rf ${customizeddir}/images/* ${feassetsdir}
|
cp -rf ${customizeddir}/images/* ${feassetsdir}
|
||||||
cp -rf ${customizeddir}/locales/* ${felocalesdir}
|
cp -rf ${customizeddir}/locales/* ${felocalesdir}
|
||||||
find "${feconstantsdir}" -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' {} +
|
find "${fehooksdir}" -type f -name '*.ts' -exec sed -i 's/[一-龥()“”,。?!]~·]//g' {} +
|
||||||
fi
|
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 ... "
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
Name: %{project_lname}
|
Name: %{project_lname}
|
||||||
Summary: 5GC OMC
|
Summary: 5GC OMC
|
||||||
Version: 2.2502.3
|
Version: 2.2503.6
|
||||||
Release: %{release_date}
|
Release: %{release_date}
|
||||||
Vendor: omc
|
Vendor: omc
|
||||||
URL: https://www.omc.com/
|
URL: https://www.omc.com/
|
||||||
|
|||||||
Reference in New Issue
Block a user