forked from oguzhaninan/Stacer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrelease.sh
executable file
·41 lines (33 loc) · 1.15 KB
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
VERSION=1.3.1
DIR=stacer-$VERSION
export VERSION=$VERSION
rm -rf release build
mkdir release build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++ ..
make -j $(nproc)
cd ..
mkdir -p release/$DIR/stacer
cp -r icons applications debian release/$DIR
cp -r build/output/* release/$DIR/stacer
cp icons/hicolor/256x256/apps/stacer.png release/$DIR/stacer/
# translations
lupdate stacer/stacer.pro -no-obsolete
lrelease stacer/stacer.pro
mkdir -p release/$DIR/stacer/translations
mv translations/*.qm release/$DIR/stacer/translations
# linuxdeployqt
wget -qc https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
chmod +x linuxdeployqt-continuous-x86_64.AppImage
unset QTDIR
unset QT_PLUGIN_PATH
unset LD_LIBRARY_PATH
./linuxdeployqt-continuous-x86_64.AppImage release/$DIR/stacer/stacer -bundle-non-qt-libs -no-translations -unsupported-allow-new-glibc -appimage
mv Stacer-*.AppImage release/Stacer-$VERSION-x86_64.AppImage
rm linuxdeployqt-continuous-x86_64.AppImage
if [ "$1" == "deb" ]; then
cd release/$DIR
dh_make --createorig --indep --yes
debuild --no-lintian -us -uc
fi