-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·20 lines (16 loc) · 768 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·20 lines (16 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# Remove the build directory if it exists
if [ -d "build" ]; then
rm -rf build
fi
# Install widget for current user
cmake -B build -S . -DBUILD_PLUGIN=OFF -DCMAKE_INSTALL_PREFIX="$HOME/.local"
cmake --build build
cmake --install build
# cmake plasma_install_package does't copy executable permission
chmod 700 "$HOME/.local/share/plasma/plasmoids/luisbocanegra.panelspacer.extended/contents/ui/tools/get_shortcuts.sh"
chmod 700 "$HOME/.local/share/plasma/plasmoids/luisbocanegra.panelspacer.extended/contents/ui/tools/run_kwin_script.sh"
# Install plugin system-wide (required for qml modules)
cmake -B build/plugin -S . -DINSTALL_PLASMOID=OFF -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build/plugin -j$(nproc --all)
sudo cmake --install build/plugin