mirror of
https://github.com/MeexReay/bRAC.git
synced 2025-06-24 02:42:57 +03:00
fix makefile install
This commit is contained in:
parent
8c5dad7aa5
commit
d390c1f28b
2
Makefile
2
Makefile
@ -17,7 +17,7 @@ install: target/release/bRAC
|
|||||||
chmod +x ~/.local/bin/bRAC
|
chmod +x ~/.local/bin/bRAC
|
||||||
mkdir ~/.local/share/bRAC -p
|
mkdir ~/.local/share/bRAC -p
|
||||||
cp misc/bRAC.png ~/.local/share/bRAC/icon.png
|
cp misc/bRAC.png ~/.local/share/bRAC/icon.png
|
||||||
cp misc/bRAC.desktop ~/.local/share/applications/ru.themixray.bRAC.desktop
|
./misc/create-desktop.sh > ~/.local/share/applications/ru.themixray.bRAC.desktop
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -rf ~/.config/bRAC ~/.local/share/bRAC
|
rm -rf ~/.config/bRAC ~/.local/share/bRAC
|
||||||
rm -f ~/.local/share/applications/ru.themixray.bRAC.desktop
|
rm -f ~/.local/share/applications/ru.themixray.bRAC.desktop
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Name=bRAC
|
|
||||||
Version=0.1.4
|
|
||||||
Type=Application
|
|
||||||
Comment=better RAC client
|
|
||||||
Icon=~/.local/share/bRAC/icon.png
|
|
||||||
Exec=~/.local/bin/bRAC
|
|
||||||
Categories=Network;
|
|
||||||
StartupNotify=true
|
|
||||||
DBusActivatable=true
|
|
||||||
Terminal=false
|
|
||||||
X-GNOME-UsesNotifications=true
|
|
16
misc/create-desktop.sh
Normal file
16
misc/create-desktop.sh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
version=$(grep -m1 '^version' Cargo.toml | sed -E 's/version *= *"(.*)"/\1/')
|
||||||
|
|
||||||
|
echo "[Desktop Entry]"
|
||||||
|
echo "Name=bRAC"
|
||||||
|
echo "Version=$version"
|
||||||
|
echo "Type=Application"
|
||||||
|
echo "Comment=better RAC client"
|
||||||
|
echo "Icon=$HOME/.local/share/bRAC/icon.png"
|
||||||
|
echo "Exec=$HOME/.local/bin/bRAC"
|
||||||
|
echo "Categories=Network;"
|
||||||
|
echo "StartupNotify=true"
|
||||||
|
echo "DBusActivatable=true"
|
||||||
|
echo "Terminal=false"
|
||||||
|
echo "X-GNOME-UsesNotifications=true"
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "this script is deprecated, fix it yourself if you wanna to"; exit
|
||||||
|
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo "This script must be run as root"
|
echo "This script must be run as root"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "this script is deprecated, fix it yourself if you wanna to"; exit
|
||||||
|
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo "This script must be run as root"
|
echo "This script must be run as root"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -4,4 +4,4 @@ cp bRAC ~/.local/bin/bRAC
|
|||||||
chmod +x ~/.local/bin/bRAC
|
chmod +x ~/.local/bin/bRAC
|
||||||
mkdir ~/.local/share/bRAC -p
|
mkdir ~/.local/share/bRAC -p
|
||||||
cp misc/bRAC.png ~/.local/share/bRAC/icon.png
|
cp misc/bRAC.png ~/.local/share/bRAC/icon.png
|
||||||
cp misc/bRAC.desktop ~/.local/share/applications/ru.themixray.bRAC.desktop
|
./misc/create-desktop.sh > ~/.local/share/applications/ru.themixray.bRAC.desktop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user