Skip to content

Commit c12c502

Browse files
committed
build: switch to system-wide install
1 parent a6106ed commit c12c502

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

install.sh

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
#!/bin/sh
2+
3+
set -e
4+
5+
if [ "$(whoami)" = root ];
6+
then
7+
echo "Please do not run this script as root or using sudo"
8+
exit 1
9+
fi
10+
211
if [ -d "build" ]; then
312
rm -rf build
413
fi
514

6-
# install plasmoid only
7-
cmake -B build -S . -DCMAKE_INSTALL_PREFIX="$HOME/.local"
15+
# install plugin
16+
cmake -B build -S .
817
cmake --build build
9-
cmake --install build
18+
sudo cmake --install build
19+
20+
# remove KDE Store / kpackagetool6 install so it doesn't override the system one
21+
22+
rm -r "$HOME/.local/share/plasma/wallpapers/luisbocanegra.smart.video.wallpaper.reborn/"

0 commit comments

Comments
 (0)