-
Notifications
You must be signed in to change notification settings - Fork 1
/
travis.sh
executable file
·91 lines (90 loc) · 3.63 KB
/
travis.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
if [ $STAGE = "script" ]; then
if [ $TRAVIS_OS_NAME = "linux" ]; then
source /opt/qt510/bin/qt510-env.sh
# git clone https://gitlab.gnome.org/GNOME/glib.git
# cd glib
# git checkout e44ea516afeb41d22cebf968b3ea5d9543856df2
# NOCONFIGURE=1 ./autogen.sh
# ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --sysconfdir=/etc
# make
# sudo make install DESTDIR=/
# cd ..
git clone https://github.com/vicr123/the-libs.git
cd the-libs
git checkout blueprint
qmake
make
sudo make install INSTALL_ROOT=/
cd ..
mkdir tttermwidget
cd tttermwidget
git clone https://github.com/vicr123/tttermwidget.git
mkdir build
cd build
qmake ../tttermwidget/tttermwidget.pro
make
sudo make install INSTALL_ROOT=/
make install INSTALL_ROOT=~/appdir # Also install into the appdir
cd ../../
qmake
make
make install INSTALL_ROOT=~/appdir
git clone https://github.com/vicr123/contemporary-icons.git
cp contemporary-icons/apps/32/utilities-terminal.svg ~/appdir/utilities-terminal.svg
cd ~
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
wget -c -nv "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
sudo cp appimagetool-x86_64.AppImage /usr/bin/appimagetool
sudo chmod +x /usr/bin/appimagetool
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
if [ $TRAVIS_BRANCH = "blueprint" ]; then
DESKTOP_ENTRY=com.vicr123.theterminal-blueprint
else
DESKTOP_ENTRY=com.vicr123.theterminal
fi
./linuxdeployqt-continuous-x86_64.AppImage ~/appdir/usr/share/applications/$DESKTOP_ENTRY.desktop -appimage -extra-plugins=iconengines/libqsvgicon.so,imageformats/libqsvg.so
else
echo "[TRAVIS] Building for macOS"
export PATH="/usr/local/opt/qt/bin:$PATH"
#cd ..
#mkdir "build-theterminal"
#cd "build-theterminal"
#echo "[TRAVIS] Running qmake"
#qmake "INCLUDEPATH += /usr/local/opt/qt/include" "LIBS += -L/usr/local/opt/qt/lib" ../theTerminal/theTerminal.pro
#echo "[TRAVIS] Building project"
#make
#echo "[TRAVIS] Deploying Qt Libraries"
#macdeployqt theTerminal.app
#echo "[TRAVIS] Preparing Disk Image creator"
#npm install appdmg
#echo "[TRAVIS] Building Disk Image"
#./node_modules/appdmg/bin/appdmg.js ./node-appdmg-config.json ~/theTerminal-macOS.dmg
fi
elif [ $STAGE = "before_install" ]; then
if [ $TRAVIS_OS_NAME = "linux" ]; then
wget -O ~/vicr12345.gpg.key https://vicr123.com/repo/apt/vicr12345.gpg.key
sudo apt-key add ~/vicr12345.gpg.key
sudo add-apt-repository 'deb https://vicr123.com/repo/apt/ubuntu bionic main'
sudo add-apt-repository -y ppa:beineri/opt-qt-5.10.1-trusty
sudo apt-get update -qq
sudo apt-get install qt510-meta-minimal qt510x11extras qt510tools qt510translations qt510multimedia libmount-dev xorg-dev libxcb-util0-dev libgl1-mesa-dev qt510svg #libutf8proc-dev
else
echo "[TRAVIS] Preparing to build for macOS"
brew update
brew install qt5
fi
elif [ $STAGE = "after_success" ]; then
if [ $TRAVIS_OS_NAME = "linux" ]; then
echo "[TRAVIS] Publishing AppImage"
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
cp theTerminal*.AppImage theTerminal-linux.AppImage
cp theTerminal*.AppImage.zsync theTerminal-linux.AppImage.zsync
bash upload.sh theTerminal-linux.AppImage*
else
echo "hello :)"
#echo "[TRAVIS] Publishing Disk Image"
#cd ~
#wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
#bash upload.sh theTerminal-macOS.dmg
fi
fi