-
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·25 lines (20 loc) · 756 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·25 lines (20 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
set -e
if [ "$(whoami)" = root ];
then
echo "Please do not run this script as root or using sudo"
exit 1
fi
if [ -d "build" ]; then
rm -rf build
fi
# install plugin
cmake -B build -S .
cmake --build build
sudo cmake --install build
# CMakeLists.txt plasma_install_package doesn't copy executable permission
sudo chmod 755 "/usr/share/plasma/wallpapers/luisbocanegra.smart.video.wallpaper.reborn/contents/ui/tools/gdbus_get_signal.sh"
# remove KDE Store / kpackagetool6 install so it doesn't override the system-wide one
echo "Removing previous install (if exists) from $HOME/.local/share/plasma/wallpapers/"
rm -r "$HOME/.local/share/plasma/wallpapers/luisbocanegra.smart.video.wallpaper.reborn/" 2>/dev/null || true
echo "Done"