mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
updated install scripts to download only specific versions of hypr eco system packages, swww and nwg look
This commit is contained in:
parent
ea72a8424e
commit
e70bc6fb84
@ -6,6 +6,9 @@ idle=(
|
||||
libsdbus-c++-dev
|
||||
)
|
||||
|
||||
#specific branch or release
|
||||
idle_tag="v0.1.2"
|
||||
|
||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||
# Determine the directory where the script is located
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
@ -39,7 +42,7 @@ fi
|
||||
|
||||
# Clone and build
|
||||
printf "${NOTE} Installing hypridle...\n"
|
||||
if git clone --recursive -b v0.1.2 https://github.com/hyprwm/hypridle.git; then
|
||||
if git clone --recursive -b $idle_tag https://github.com/hyprwm/hypridle.git; then
|
||||
cd hypridle || exit 1
|
||||
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
|
||||
cmake --build ./build --config Release --target hypridle -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
||||
|
||||
@ -2,6 +2,10 @@
|
||||
# 💫 https://github.com/JaKooLit 💫 #
|
||||
# Main Hyprland Package#
|
||||
|
||||
|
||||
#specific branch or release
|
||||
hyprland_tag="v0.39.1"
|
||||
|
||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||
# Determine the directory where the script is located
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
@ -25,7 +29,7 @@ if [ -d "Hyprland" ]; then
|
||||
rm -rf "Hyprland" 2>&1 | tee -a "$LOG"
|
||||
fi
|
||||
|
||||
if git clone --recursive -b v0.39.1 "https://github.com/hyprwm/Hyprland"; then
|
||||
if git clone --recursive -b $hyprland_tag "https://github.com/hyprwm/Hyprland"; then
|
||||
cd "Hyprland" || exit 1
|
||||
make all
|
||||
if sudo make install 2>&1 | tee -a "$MLOG"; then
|
||||
|
||||
@ -2,6 +2,9 @@
|
||||
# 💫 https://github.com/JaKooLit 💫 #
|
||||
# hyprlang - hyprland and xdg-desktop-portal- dependencies #
|
||||
|
||||
#specific branch or release
|
||||
lang_tag="v0.5.1"
|
||||
|
||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||
# Determine the directory where the script is located
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
@ -27,7 +30,7 @@ fi
|
||||
|
||||
# Clone and build hyprlang
|
||||
printf "${NOTE} Installing hyprlang...\n"
|
||||
if git clone --recursive -b v0.5.1 https://github.com/hyprwm/hyprlang.git; then
|
||||
if git clone --recursive -b $lang_tag https://github.com/hyprwm/hyprlang.git; then
|
||||
cd hyprlang || exit 1
|
||||
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||
cmake --build ./build --config Release --target hyprlang -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
||||
|
||||
@ -6,6 +6,9 @@ lock=(
|
||||
libmagic-dev
|
||||
)
|
||||
|
||||
#specific branch or release
|
||||
lock_tag="v0.3.0"
|
||||
|
||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||
# Determine the directory where the script is located
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
@ -39,7 +42,7 @@ fi
|
||||
|
||||
# Clone and build hyprlock
|
||||
printf "${NOTE} Installing hyprlock...\n"
|
||||
if git clone --recursive -b v0.3.0 https://github.com/hyprwm/hyprlock.git; then
|
||||
if git clone --recursive -b $lock_tag https://github.com/hyprwm/hyprlock.git; then
|
||||
cd hyprlock || exit 1
|
||||
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
|
||||
cmake --build ./build --config Release --target hyprlock -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
||||
|
||||
@ -9,6 +9,9 @@ nwg_look=(
|
||||
libglib2.0-bin
|
||||
)
|
||||
|
||||
# specific tags to download
|
||||
nwg_tag="v0.2.7"
|
||||
|
||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||
# Determine the directory where the script is located
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
@ -33,33 +36,31 @@ for PKG1 in "${nwg_look[@]}"; do
|
||||
done
|
||||
|
||||
printf "${NOTE} Installing nwg-look\n"
|
||||
# Check if nwg-look directory exists
|
||||
|
||||
# Check if nwg-look folder exists and remove it
|
||||
if [ -d "nwg-look" ]; then
|
||||
printf "${INFO} nwg-look directory already exists. Updating...\n"
|
||||
cd nwg-look || exit 1
|
||||
git stash
|
||||
git pull
|
||||
else
|
||||
# Clone nwg-look repository if directory doesn't exist
|
||||
if git clone https://github.com/nwg-piotr/nwg-look.git; then
|
||||
printf "${NOTE} Removing existing nwg-look folder...\n"
|
||||
rm -rf "nwg-look"
|
||||
fi
|
||||
|
||||
# Clone nwg-look repository with the specified tag
|
||||
if git clone --recursive -b "$nwg_tag" --depth 1 https://github.com/nwg-piotr/nwg-look.git; then
|
||||
cd nwg-look || exit 1
|
||||
else
|
||||
echo -e "${ERROR} Download failed for nwg-look." 2>&1 | tee -a "$LOG"
|
||||
# Build nwg-look
|
||||
make build
|
||||
if sudo make install 2>&1 | tee -a "$MLOG"; then
|
||||
printf "${OK} nwg-look installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||
else
|
||||
echo -e "${ERROR} Installation failed for nwg-look" 2>&1 | tee -a "$MLOG"
|
||||
fi
|
||||
|
||||
# Move logs to Install-Logs directory
|
||||
mv "$MLOG" ../Install-Logs/ || true
|
||||
cd ..
|
||||
else
|
||||
echo -e "${ERROR} Download failed for nwg-look tag: $TAG." 2>&1 | tee -a "$LOG"
|
||||
mv "$MLOG" ../Install-Logs/ || true
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Build nwg-look
|
||||
make build
|
||||
if sudo make install 2>&1 | tee -a "$MLOG"; then
|
||||
printf "${OK} nwg-look installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||
else
|
||||
echo -e "${ERROR} Installation failed for nwg-look" 2>&1 | tee -a "$MLOG"
|
||||
fi
|
||||
|
||||
# Move logs to Install-Logs directory
|
||||
mv "$MLOG" ../Install-Logs/ || true
|
||||
cd ..
|
||||
|
||||
clear
|
||||
|
||||
@ -7,6 +7,9 @@ cargo
|
||||
liblz4-dev
|
||||
)
|
||||
|
||||
#specific branch or release
|
||||
swww_tag="v0.9.4"
|
||||
|
||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||
# Determine the directory where the script is located
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
@ -41,7 +44,7 @@ if [ -d "swww" ]; then
|
||||
git pull origin main 2>&1 | tee -a "$MLOG"
|
||||
else
|
||||
printf "${NOTE} Cloning swww repository...\n"
|
||||
if git clone https://github.com/Horus645/swww.git; then
|
||||
if git clone --recursive -b $swww_tag https://github.com/Horus645/swww.git; then
|
||||
cd swww || exit 1
|
||||
else
|
||||
echo -e "${ERROR} Download failed for swww" 2>&1 | tee -a "$LOG"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user