Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2020-08-15 22:14:45 +0300
committerRobert <krzmbrzl@gmail.com>2020-10-23 20:56:25 +0300
commit61e7e8468eefa312322a899e534a56d2384e119f (patch)
tree87f5ff9ab4a0e4163330b49e0d7e8c7c8d86add9 /.ci
parent54fd2209b2787219280d98f973c3bddfa0e426fb (diff)
CI(azure): Outsource AppImage build
The packaging of the AppImage is now a separate step instead of being integrated into the build step.
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/azure-pipelines/build_linux.bash22
-rwxr-xr-x.ci/azure-pipelines/package_AppImage.bash30
-rw-r--r--.ci/azure-pipelines/steps_linux.yml2
3 files changed, 32 insertions, 22 deletions
diff --git a/.ci/azure-pipelines/build_linux.bash b/.ci/azure-pipelines/build_linux.bash
index 2c1bccfba..690e73de5 100755
--- a/.ci/azure-pipelines/build_linux.bash
+++ b/.ci/azure-pipelines/build_linux.bash
@@ -25,25 +25,3 @@ cmake --build .
ctest --verbose
cmake --install .
-# Get the AppImage-tool - always use the latest available version
-wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2)
-chmod +x appimagetool-*.AppImage
-
-# find the appdir that was created by cmake --install
-appDir=$(find $HOME -type d -name 'appdir'| head -n 1)
-
-# Bundle the AppDir
-./appimagetool-*.AppImage -s deploy $appDir/usr/share/applications/*.desktop # Bundle EVERYTHING
-
-# Actually create the AppImage
-VERSION="$VER" ARCH="x86_64" ./appimagetool-*.AppImage $appDir
-
-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
diff --git a/.ci/azure-pipelines/package_AppImage.bash b/.ci/azure-pipelines/package_AppImage.bash
new file mode 100755
index 000000000..3e5640859
--- /dev/null
+++ b/.ci/azure-pipelines/package_AppImage.bash
@@ -0,0 +1,30 @@
+#!/bin/bash -ex
+#
+# Copyright 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 <https://www.mumble.info/LICENSE>.
+
+# Get the AppImage-tool - always use the latest available version
+wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2)
+chmod +x appimagetool-*.AppImage
+
+# find the appdir that was created by cmake --install
+appDir=$(find $HOME -type d -name 'appdir'| head -n 1)
+
+# Bundle the AppDir
+./appimagetool-*.AppImage -s deploy $appDir/usr/share/applications/*.desktop # Bundle EVERYTHING
+
+# Actually create the AppImage
+VERSION="$VER" ARCH="x86_64" ./appimagetool-*.AppImage $appDir
+
+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
+
+# Copy AppImage files into artifacts directory so that they can be published
+mv Mumble*.AppImage* $BUILD_ARTIFACTSTAGINGDIRECTORY
diff --git a/.ci/azure-pipelines/steps_linux.yml b/.ci/azure-pipelines/steps_linux.yml
index 5ad23b8bd..192551289 100644
--- a/.ci/azure-pipelines/steps_linux.yml
+++ b/.ci/azure-pipelines/steps_linux.yml
@@ -5,6 +5,8 @@ steps:
displayName: 'Install build environment'
- script: .ci/azure-pipelines/build_linux.bash
displayName: 'Build'
+ - script: .ci/azure-pipelines/package_AppImage.bash
+ displayName: 'Package AppImage'
- template: task-publish-artifacts.yml
parameters:
name: "AppImage"