From c182bc6db05736dd0f801187e8998cb7da2756f8 Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Sat, 18 Jul 2020 00:18:25 +0200 Subject: REFAC(ci): move scripts to dedicated ".ci" folder The "scripts" folder is quite cluttered, let's make it a bit better. --- .ci/azure-pipelines/build_linux.bash | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 .ci/azure-pipelines/build_linux.bash (limited to '.ci/azure-pipelines/build_linux.bash') diff --git a/.ci/azure-pipelines/build_linux.bash b/.ci/azure-pipelines/build_linux.bash new file mode 100755 index 000000000..dc0e72bac --- /dev/null +++ b/.ci/azure-pipelines/build_linux.bash @@ -0,0 +1,38 @@ +#!/bin/bash -ex +# +# Copyright 2019-2020 The Mumble Developers. All rights reserved. +# Use of this source code is governed by a BSD-style license +# that can be found in the LICENSE file at the root of the +# Mumble source tree or at . +# +# Below is a list of configuration variables used from environment. +# +# BUILD_BINARIESDIRECTORY - The local path on the agent that can be used +# as an output folder for compiled binaries. +# BUILD_SOURCESDIRECTORY - The local path on the agent where the +# repository is downloaded. +# + +VER=$(python scripts/mumble-version.py) + +cd $BUILD_BINARIESDIRECTORY + +# QSslDiffieHellmanParameters was introduced in Qt 5.8, Ubuntu 16.04 has 5.5. +cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=appdir/usr -DBUILD_TESTING=ON -Dversion=$VER -Dsymbols=ON -Dqssldiffiehellmanparameters=OFF $BUILD_SOURCESDIRECTORY +cmake --build . +ctest +cmake --install . + +wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" +chmod a+x linuxdeployqt-continuous-x86_64.AppImage +ARCH=x86_64 ./linuxdeployqt-continuous-x86_64.AppImage $(find $HOME -type d -name 'appdir'| head -n 1)/usr/share/applications/*.desktop -appimage -extra-plugins=sqldrivers/libqsqlite.so + +for f in Mumble*.AppImage; do + # Embed update information into AppImage + echo -n "zsync|https://dl.mumble.info/nightly/latest-x86_64.AppImage.zsync" | dd of=$f seek=175720 conv=notrunc oflag=seek_bytes + + # Generate zsync file for AppImage + zsyncmake $f +done + +mv Mumble*.AppImage* $BUILD_ARTIFACTSTAGINGDIRECTORY -- cgit v1.2.3