mirror of
https://github.com/MeexReay/bRAC.git
synced 2025-09-13 15:37:40 +03:00
refactor: changes for proper app installation
This commit is contained in:
parent
88f02f2e11
commit
3d1c707fc7
19
Makefile
19
Makefile
@ -4,18 +4,17 @@ target/release/bRAC:
|
|||||||
cargo build -r
|
cargo build -r
|
||||||
|
|
||||||
install: target/release/bRAC
|
install: target/release/bRAC
|
||||||
mkdir -p ~/.local
|
mkdir -p /usr/bin
|
||||||
mkdir -p ~/.local/bin
|
mkdir -p /usr/share
|
||||||
mkdir -p ~/.local/share
|
cp $< /usr/bin/bRAC
|
||||||
cp $< ~/.local/bin/bRAC
|
chmod +x /usr/bin/bRAC
|
||||||
chmod +x ~/.local/bin/bRAC
|
cp misc/bRAC.png /usr/share/pixmaps/ru.themixray.bRAC.png
|
||||||
mkdir ~/.local/share/bRAC -p
|
|
||||||
cp misc/bRAC.png ~/.local/share/bRAC/icon.png
|
|
||||||
chmod +x misc/create-desktop.sh
|
chmod +x misc/create-desktop.sh
|
||||||
./misc/create-desktop.sh > ~/.local/share/applications/ru.themixray.bRAC.desktop
|
./misc/create-desktop.sh > /usr/share/applications/ru.themixray.bRAC.desktop
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -rf ~/.config/bRAC ~/.local/share/bRAC
|
rm -f /usr/bin/bRAC
|
||||||
rm -f ~/.local/bin/bRAC ~/.local/share/applications/ru.themixray.bRAC.desktop
|
rm -f /usr/share/applications/ru.themixray.bRAC.desktop
|
||||||
|
rm -f /usr/share/pixmaps/ru.themixray.bRAC.png
|
||||||
|
|
||||||
package:
|
package:
|
||||||
./misc/build.sh
|
./misc/build.sh
|
||||||
|
@ -7,8 +7,8 @@ echo "Name=bRAC"
|
|||||||
echo "Version=$version"
|
echo "Version=$version"
|
||||||
echo "Type=Application"
|
echo "Type=Application"
|
||||||
echo "Comment=better RAC client"
|
echo "Comment=better RAC client"
|
||||||
echo "Icon=$HOME/.local/share/bRAC/icon.png"
|
echo "Icon=ru.themixray.bRAC"
|
||||||
echo "Exec=$HOME/.local/bin/bRAC"
|
echo "Exec=/usr/bin/bRAC"
|
||||||
echo "Categories=Network;"
|
echo "Categories=Network;"
|
||||||
echo "StartupNotify=true"
|
echo "StartupNotify=true"
|
||||||
echo "Terminal=false"
|
echo "Terminal=false"
|
||||||
|
12
misc/install.sh
Executable file
12
misc/install.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p /usr/bin
|
||||||
|
mkdir -p /usr/share
|
||||||
|
mkdir -p /usr/share/pixmaps
|
||||||
|
|
||||||
|
cp misc/bRAC-gnotif /usr/bin/bRAC
|
||||||
|
chmod +x /usr/bin/bRAC
|
||||||
|
|
||||||
|
cp misc/bRAC.png /usr/share/pixmaps/ru.themixray.bRAC.png
|
||||||
|
chmod +x misc/create-desktop.sh
|
||||||
|
./misc/create-desktop.sh > /usr/share/applications/ru.themixray.bRAC.desktop
|
5
misc/uninstall.sh
Executable file
5
misc/uninstall.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm -rf /usr/bin/bRAC \
|
||||||
|
/usr/share/pixmaps/ru.themixray.bRAC.png \
|
||||||
|
/usr/share/applications/ru.themixray.bRAC.desktop
|
@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
mkdir -p ~/.local
|
|
||||||
mkdir -p ~/.local/bin
|
|
||||||
mkdir -p ~/.local/share
|
|
||||||
mkdir -p ~/.local/share/bRAC
|
|
||||||
|
|
||||||
cp misc/bRAC-gnotif ~/.local/bin/bRAC
|
|
||||||
chmod +x ~/.local/bin/bRAC
|
|
||||||
|
|
||||||
cp misc/bRAC.png ~/.local/share/bRAC/icon.png
|
|
||||||
chmod +x misc/create-desktop.sh
|
|
||||||
./misc/create-desktop.sh > ~/.local/share/applications/ru.themixray.bRAC.desktop
|
|
@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
rm -rf ~/.local/bin/bRAC \
|
|
||||||
~/.config/bRAC \
|
|
||||||
~/.local/share/bRAC \
|
|
||||||
~/.local/share/applications/ru.themixray.bRAC.desktop
|
|
Loading…
x
Reference in New Issue
Block a user