diff --git a/FlashMQ.png b/FlashMQ.png new file mode 100644 index 0000000..5ed9fdb --- /dev/null +++ b/FlashMQ.png 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