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 9e24471
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 4 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/*
27 changes: 24 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
27 changes: 27 additions & 0 deletions scripts/packaging/Giduba.appdata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>giduba</id>
<name>Gidyba</name>
<summary>A small and fast text editor</summary>
<url type="homepage">https://github.com/ncravino/giduba</url>
<launchable type="desktop-id">giduba.desktop</launchable>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0+</project_license>
<screenshots>
<screenshot type="default">
<caption>Giduba under KDE Plasma</caption>
<image>https://github.com/ncravino/giduba/blob/main/images/screenshot.png</image>
</screenshot>
</screenshots>

<provides>
<binary>Giduba</binary>
</provides>
<releases>
<release version="1.0.0" date="2023-11-05" />
</releases>
<developer_name>Nuno Cravino</developer_name>
</component>



0 comments on commit 9e24471

Please sign in to comment.