Commit d30d9a6acd4ba51340097f28e77580637a6ec654

Authored by Wiebe Cazemier
1 parent 3aecd638

Bundle binary with AppImage

Showing 2 changed files with 8 additions and 1 deletions
FlashMQ.png 0 → 100644

27.6 KB

build.sh
@@ -22,5 +22,12 @@ fi @@ -22,5 +22,12 @@ fi
22 cd "$BUILD_DIR" 22 cd "$BUILD_DIR"
23 23
24 cmake -DCMAKE_BUILD_TYPE="$BUILD_TYPE" "$thisdir" 24 cmake -DCMAKE_BUILD_TYPE="$BUILD_TYPE" "$thisdir"
25 -make 25 +make -j
26 cpack 26 cpack
  27 +
  28 +FLASHMQ_VERSION=$(./FlashMQ --version | grep -Ei 'Flashmq.*version.*' | grep -oE '[^ ]+$')
  29 +
  30 +if which linuxdeploy-x86_64.AppImage &> /dev/null; then
  31 + linuxdeploy-x86_64.AppImage --create-desktop-file --icon-file "../FlashMQ.png" --appdir "AppImageDir" --executable "FlashMQ" --output appimage
  32 + mv FlashMQ-*.AppImage "FlashMQ-${FLASHMQ_VERSION}-linux-amd64.AppImage"
  33 +fi