prepare Makefile for AppDir deploy
parent
5d0679a0a5
commit
f11b84f965
9
Makefile
9
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
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Categories=Utility
|
||||
Terminal=false
|
||||
Exec=upend
|
||||
Name=UpEnd
|
||||
Icon=upend
|
Loading…
Reference in New Issue