From d30d9a6acd4ba51340097f28e77580637a6ec654 Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Fri, 6 May 2022 19:42:08 +0200 Subject: [PATCH] Bundle binary with AppImage --- FlashMQ.png | Bin 0 -> 28297 bytes build.sh | 9 ++++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 FlashMQ.png diff --git a/FlashMQ.png b/FlashMQ.png new file mode 100644 index 0000000..5ed9fdb Binary files /dev/null and b/FlashMQ.png differ diff --git a/build.sh b/build.sh index 29cdf44..70d4480 100755 --- a/build.sh +++ b/build.sh @@ -22,5 +22,12 @@ fi cd "$BUILD_DIR" cmake -DCMAKE_BUILD_TYPE="$BUILD_TYPE" "$thisdir" -make +make -j cpack + +FLASHMQ_VERSION=$(./FlashMQ --version | grep -Ei 'Flashmq.*version.*' | grep -oE '[^ ]+$') + +if which linuxdeploy-x86_64.AppImage &> /dev/null; then + linuxdeploy-x86_64.AppImage --create-desktop-file --icon-file "../FlashMQ.png" --appdir "AppImageDir" --executable "FlashMQ" --output appimage + mv FlashMQ-*.AppImage "FlashMQ-${FLASHMQ_VERSION}-linux-amd64.AppImage" +fi -- libgit2 0.21.4