mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-03-15 13:05:01 +00:00

Keeping these up-to-date is just super tedious and they don't really fulfill any purpose these days.
36 lines
1.3 KiB
Bash
Executable file
36 lines
1.3 KiB
Bash
Executable file
#!/bin/bash -ex
|
|
#
|
|
# Copyright 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>.
|
|
|
|
pushd $BUILD_BINARIESDIRECTORY
|
|
|
|
cmake --install .
|
|
|
|
popd
|
|
|
|
# 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
|