make pkg changed
This commit is contained in:
@@ -83,10 +83,10 @@ fehooksdir=${fedir}/src/hooks
|
|||||||
|
|
||||||
makefe() {
|
makefe() {
|
||||||
cd ${fedir}
|
cd ${fedir}
|
||||||
git checkout ${feassetsdir}
|
# git checkout ${feassetsdir}
|
||||||
git checkout ${felocalesdir}
|
# git checkout ${felocalesdir}
|
||||||
git checkout ${feconstantsdir}
|
# git checkout ${feconstantsdir}
|
||||||
git checkout ${fehooksdir}
|
# git checkout ${fehooksdir}
|
||||||
git pull
|
git pull
|
||||||
if [ "${pkgtype}" == "badeb" ]; then
|
if [ "${pkgtype}" == "badeb" ]; then
|
||||||
cp -rf ${customizeddir}/images/* ${feassetsdir}
|
cp -rf ${customizeddir}/images/* ${feassetsdir}
|
||||||
@@ -94,16 +94,17 @@ makefe() {
|
|||||||
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
|
||||||
|
npm install --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 ${feassetsdir}
|
||||||
git checkout ${felocalesdir}
|
# git checkout ${felocalesdir}
|
||||||
git checkout ${feconstantsdir}
|
# git checkout ${feconstantsdir}
|
||||||
git checkout ${fehooksdir}
|
# git checkout ${fehooksdir}
|
||||||
}
|
}
|
||||||
|
|
||||||
makebe() {
|
makebe() {
|
||||||
@@ -113,15 +114,23 @@ makebe() {
|
|||||||
./build.sh ${be_args[@]}
|
./build.sh ${be_args[@]}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_makepkg() {
|
||||||
|
cd ${builddir}
|
||||||
|
git checkout debbuild/DEBIAN/
|
||||||
|
git checkout debbuild/22.04/DEBIAN/
|
||||||
|
}
|
||||||
|
|
||||||
case "${m_arg}" in
|
case "${m_arg}" in
|
||||||
fe)
|
"fe")
|
||||||
makefe
|
makefe
|
||||||
;;
|
;;
|
||||||
all)
|
"all")
|
||||||
makefe
|
makefe
|
||||||
makebe
|
makebe
|
||||||
;;
|
post_makepkg
|
||||||
be | *)
|
;;
|
||||||
makebe
|
"be" | "*")
|
||||||
;;
|
makebe
|
||||||
|
post_makepkg
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
5
bin/nodejs.sh
Executable file
5
bin/nodejs.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
# copy to /etc/profile.d/ to set the environment variables for all users
|
||||||
|
# cp -f nodejs.sh /etc/profile.d/99-nodejs.sh
|
||||||
|
|
||||||
|
export PATH=/usr/local/bin:$PATH
|
||||||
|
export NODE_OPTIONS=--max-old-space-size=50000
|
||||||
Reference in New Issue
Block a user