From 9e2447153117414f4435579274d2fe8c6cc0cfc7 Mon Sep 17 00:00:00 2001 From: ncravino Date: Sun, 5 Nov 2023 03:51:39 +0000 Subject: [PATCH] Add AppImage to make release --- .gitignore | 1 + Makefile | 27 ++++++++++++++++++++++++--- README.md | 3 ++- scripts/packaging/Giduba.appdata.xml | 27 +++++++++++++++++++++++++++ 4 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 scripts/packaging/Giduba.appdata.xml diff --git a/.gitignore b/.gitignore index 7df888e..272de08 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ build/ .qmake.stash packaging/* +dist/* diff --git a/Makefile b/Makefile index cd6d4da..818148b 100644 --- a/Makefile +++ b/Makefile @@ -31,12 +31,14 @@ run: prepare-deb: build rm -rf ./packaging/deb/ && \ mkdir -p ./packaging/deb/giduba/usr/bin && \ - mkdir -p ./packaging/deb/giduba//usr/share/applications && \ + mkdir -p ./packaging/deb/giduba/usr/share/applications && \ + mkdir -p ./packaging/deb/giduba/usr/share/metainfo && \ mkdir -p ./packaging/deb/giduba/usr/share/icons/hicolor/scalable/apps/ && \ mkdir -p ./packaging/deb/giduba/DEBIAN && \ VERSION=${VERSION} envsubst < ./scripts/packaging//control > ./packaging/deb/giduba/DEBIAN/control && \ cp ./scripts/packaging//giduba.desktop ./packaging/deb/giduba/usr/share/applications/ && \ cp ./resources/icons/giduba.svg ./packaging/deb/giduba/usr/share/icons/hicolor/scalable/apps/ && \ + cp ./scripts/packaging/Giduba.appdata.xml ./packaging/deb/giduba/usr/share/metainfo/ && \ cp ./build/Giduba ./packaging/deb/giduba/usr/bin/ .PHONY: prepare-tgz @@ -54,12 +56,31 @@ deb: prepare-deb tgz: prepare-tgz cd ./packaging/tgz/ && tar -czf giduba-${VERSION}.tar.gz ./giduba/* +.PHONY: prepare-appimage +prepare-appimage: build + rm -rf ./packaging/appimage && \ + mkdir -p ./packaging/appimage/AppDir/usr/bin/ && \ + mkdir -p ./packaging/appimage/AppDir/usr/share/metainfo/ && \ + cp ./scripts/packaging/giduba.desktop ./packaging/appimage && \ + cp ./resources/icons/giduba.svg ./packaging/appimage && \ + cp ./scripts/packaging/Giduba.appdata.xml ./packaging/appimage/AppDir/usr/share/metainfo/ && \ + cp ./build/Giduba ./packaging/appimage/AppDir/usr/bin/ + +.PHONY: appimage +appimage: prepare-appimage + cd ./packaging/appimage && \ + linuxdeploy-x86_64.AppImage --appdir AppDir -d giduba.desktop -i giduba.svg --output appimage + + + .PHONY: release -release: clean deb tgz +release: clean deb tgz appimage mkdir -p ./dist/ && \ cp ./packaging/tgz/giduba-${VERSION}.tar.gz ./dist/ && \ - cp ./packaging/deb/giduba-${VERSION}.deb ./dist/ + cp ./packaging/deb/giduba-${VERSION}.deb ./dist/ && \ + cp ./packaging/appimage/Giduba-x86_64.AppImage ./dist/ .PHONY: deb-install-build-depends deb-install-build-depends: sudo apt update && sudo apt install make qt5-qmake qtbase5-dev build-essential + diff --git a/README.md b/README.md index fd56afe..5433b02 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,8 @@ Giduba is the sumerian word for writing utensils, literally a reed that was cut ## Installing -You can find both .deb and .tar.gz releases in [https://github.com/ncravino/giduba/releases](https://github.com/ncravino/giduba/releases). +You can find both .deb, AppImage, and .tar.gz releases in [https://github.com/ncravino/giduba/releases](https://github.com/ncravino/giduba/releases). + To install a .deb, simply download it and run: - `sudo dpkg -i filename.deb` diff --git a/scripts/packaging/Giduba.appdata.xml b/scripts/packaging/Giduba.appdata.xml new file mode 100644 index 0000000..b3cf2a1 --- /dev/null +++ b/scripts/packaging/Giduba.appdata.xml @@ -0,0 +1,27 @@ + + + giduba + Gidyba + A small and fast text editor + https://github.com/ncravino/giduba + giduba.desktop + CC0-1.0 + GPL-3.0+ + + + Giduba under KDE Plasma + https://github.com/ncravino/giduba/blob/main/images/screenshot.png + + + + + Giduba + + + + + Nuno Cravino + + + +