File: linux-build.sh

package info (click to toggle)
packetsender 8.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,532 kB
  • sloc: cpp: 12,123; sh: 80; xml: 75; php: 47; makefile: 13
file content (31 lines) | stat: -rw-r--r-- 930 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/env bash

if [ -z "$1" ]
  then
    echo "Please supply build version (e.g. 8.0.3)"
    exit
fi
BUILD_VERSION="$1";
php ci_cd/linux/linux-prebuild.php $BUILD_VERSION
# exit 99
cd src
qmake --version
qmake PacketSender.pro
make clean
make -j4
ls
mkdir -p appdir/usr/bin ;
mkdir -p appdir/usr/share/icons ;
cd appdir
cp ../packetsender usr/bin/
cp ../pslogo256.png packetsender.png
cp ../pslogo256.png usr/share/icons/packetsender.png
cp ../packetsender.desktop packetsender.desktop

cd ..
wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt*.AppImage
unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
./linuxdeployqt*.AppImage ./appdir/usr/bin/packetsender -appimage  -bundle-non-qt-libs

#curl --upload-file ./PacketSender-*.AppImage https://transfer.sh/PacketSender-git$(git rev-parse --short HEAD)-x86_64.AppImage