spark-store/build.sh
zty199 961d174bf7 chore: 尝试添加打包脚本
尝试添加了自动编译打包脚本,由于不会使用 dh_make 故每次需要手动更新打包信息。
2021-06-29 21:52:41 +08:00

20 lines
598 B
Bash
Executable File

#!/bin/sh
realpath=`realpath $0`
cd `dirname $realpath`
mkdir -p build && cd build
/usr/lib/qt5/bin/qmake ../spark-store-project.pro -spec linux-g++ CONFIG+=qtquickcompiler && /usr/bin/make qmake_all
make -j$(cat /proc/cpuinfo | grep "processor" | wc -l)
cd ..
cp ./ssinstall ./debian/opt/durapps/spark-store/bin/
cp ./build/src/spark-store ./debian/opt/durapps/spark-store/bin/
cp ./translations/*.qm ./debian/usr/share/spark-store/translations/
version=$(cat ./debian/DEBIAN/control | grep "Version" | awk -F ' ' '{print $2}')
fakeroot dpkg -b ./debian ./spark-store_"$version"_amd64.deb