Skip to content

Commit

Permalink
Add AppImage to make release
Browse files Browse the repository at this point in the history
  • Loading branch information
ncravino committed Nov 5, 2023
1 parent 2c32933 commit 1e83812
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
build/
.qmake.stash
packaging/*
dist/*
21 changes: 19 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,29 @@ 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/ && \
cp ./scripts/packaging/giduba.desktop ./packaging/appimage && \
cp ./resources/icons/giduba.svg ./packaging/appimage && \
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

0 comments on commit 1e83812

Please sign in to comment.