From 95d036e34ab1de54ff129fe210588e0780e3ad38 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 28 Aug 2024 20:55:52 -0400 Subject: [PATCH] Build an AppImage. Why not? --- GNUmakefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 80fea4df..0de3e020 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1066,6 +1066,19 @@ $(IOS_DEPS): $(filter $(BUILD_DIR)/ios%,$(APP_OBJS)): | $(IOS_DEPS) endif +out/Tilde_Friends-x86_64.AppImage: out/release/tildefriends out/data.zip + @mkdir -p out/AppDir/usr/bin + @mkdir -p out/AppDir/usr/share/applications + @mkdir -p out/AppDir/usr/share/icons/hicolor/scalable/apps + @echo "[Desktop Entry]\nName=Tilde Friends\nExec=tildefriends\nIcon=tildefriends\nType=Application\nCategories=Network" > out/AppDir/usr/share/applications/tildefriends.desktop + @cp src/ios/tildefriends.svg out/AppDir/usr/share/icons/hicolor/scalable/apps/ + @cat out/release/tildefriends out/data.zip > out/AppDir/usr/bin/tildefriends + @chmod +x out/AppDir/usr/bin/tildefriends + @unset SOURCE_DATE_EPOCH; cd out; linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage; cd .. + +appimage: out/Tilde_Friends-x86_64.AppImage +.PHONY: appimage + clean: rm -rf $(BUILD_DIR) .PHONY: clean