mirror of
https://github.com/oguzhaninan/Stacer.git
synced 2025-12-23 23:18:31 -05:00
34 lines
937 B
Bash
34 lines
937 B
Bash
#!/bin/bash
|
|
VERSION=1.1.0
|
|
RELEASE=Release
|
|
DIR=stacer-$VERSION
|
|
|
|
mkdir $RELEASE
|
|
mkdir build ; cd build
|
|
cmake -DCMAKE_BUILD_TYPE=debug -DCMAKE_CXX_COMPILER=g++ -DCMAKE_PREFIX_PATH=$QTDIR/bin ..
|
|
make -j `nproc`
|
|
cd ..
|
|
|
|
mkdir $RELEASE/$DIR/stacer -p
|
|
cp -r icons applications debian $RELEASE/$DIR
|
|
cp -r build/output/* $RELEASE/$DIR/stacer
|
|
|
|
# translations
|
|
lupdate stacer/stacer.pro -no-obsolete
|
|
lrelease stacer/stacer.pro
|
|
mkdir $RELEASE/$DIR/stacer/translations
|
|
mv translations/*.qm $RELEASE/$DIR/stacer/translations
|
|
|
|
# linuxdeployqt
|
|
wget -cO lqt "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
|
|
chmod +x lqt
|
|
unset QTDIR; unset QT_PLUGIN_PATH; unset LD_LIBRARY_PATH
|
|
./lqt $RELEASE/$DIR/stacer/stacer -bundle-non-qt-libs -no-translations -unsupported-allow-new-glibc
|
|
rm lqt
|
|
|
|
if [ $1 = "deb" ]; then
|
|
cd $RELEASE/$DIR
|
|
dh_make --createorig -i -c mit
|
|
debuild --no-lintian -us -uc
|
|
fi
|