testing
This commit is contained in:
parent
90ba8e7ff7
commit
f3e92f52fa
1 changed files with 7 additions and 7 deletions
14
hyprlock.sh
14
hyprlock.sh
|
@ -86,10 +86,8 @@ getDependencies() {
|
||||||
case "$distro" in
|
case "$distro" in
|
||||||
arch) checkAndInstall hyprgraphics ;;
|
arch) checkAndInstall hyprgraphics ;;
|
||||||
debian)
|
debian)
|
||||||
if ! command_exists hyprutils; then
|
cloneAndBuildUtils
|
||||||
cloneAndBuildUtils
|
cloneAndBuildGraphics
|
||||||
cloneAndBuildGraphics
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
@ -103,7 +101,7 @@ getDependencies() {
|
||||||
}
|
}
|
||||||
|
|
||||||
buildGraphics() {
|
buildGraphics() {
|
||||||
echo_info "Building hyprgraphics"
|
echo_pkg build
|
||||||
run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||||
run cmake --build ./build --config Release --target all -j"$cores"
|
run cmake --build ./build --config Release --target all -j"$cores"
|
||||||
}
|
}
|
||||||
|
@ -116,7 +114,7 @@ cloneAndBuildGraphics() {
|
||||||
cd hyprgraphics
|
cd hyprgraphics
|
||||||
|
|
||||||
if buildGraphics; then
|
if buildGraphics; then
|
||||||
echo_info "Installing hyprgraphics.."
|
echo_pkg install
|
||||||
$_sudo cmake --install build
|
$_sudo cmake --install build
|
||||||
else
|
else
|
||||||
echo_error "Build has failed for $distro compiling hyprgraphics"
|
echo_error "Build has failed for $distro compiling hyprgraphics"
|
||||||
|
@ -125,7 +123,7 @@ cloneAndBuildGraphics() {
|
||||||
}
|
}
|
||||||
|
|
||||||
buildUtils() {
|
buildUtils() {
|
||||||
echo_info "Building hyprutils"
|
echo_pkg build "Building hyprutils"
|
||||||
run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||||
run cmake --build ./build --config Release --target all -j"$cores"
|
run cmake --build ./build --config Release --target all -j"$cores"
|
||||||
}
|
}
|
||||||
|
@ -188,6 +186,8 @@ main() {
|
||||||
_install hyprlock
|
_install hyprlock
|
||||||
;;
|
;;
|
||||||
debian)
|
debian)
|
||||||
|
cloneAndBuildUtils
|
||||||
|
cloneAndBuildGraphics
|
||||||
cloneAndBuildLock
|
cloneAndBuildLock
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue