From f11b84f9659e80bad9a762f0f15157ff6ebd66e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Fri, 11 Jun 2021 15:07:16 +0200 Subject: [PATCH] prepare Makefile for AppDir deploy --- Makefile | 9 ++++++--- upend.desktop | 8 ++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 upend.desktop diff --git a/Makefile b/Makefile index 4012956..b05cbd9 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,12 @@ all: package package: target/release/upend ui/dist/index.html rm -fr dist - mkdir dist - cp target/release/upend dist/upend - cp -r ui/dist dist/webui + linuxdeploy-x86_64.AppImage --appdir dist + cp target/release/upend dist/usr/bin/upend + cp -r ui/dist dist/usr/bin/webui + cp upend.png dist/usr/share/icons/upend.png + VERSION="$$(grep '^version' Cargo.toml|grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')" \ + linuxdeploy-x86_64.AppImage --appdir dist -d upend.desktop --output appimage backend: target/release/upend diff --git a/upend.desktop b/upend.desktop new file mode 100644 index 0000000..1594e26 --- /dev/null +++ b/upend.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Categories=Utility +Terminal=false +Exec=upend +Name=UpEnd +Icon=upend