Merge pull request #59 from JaKooLit/development

Updated scripts to download only specific versions of packages
This commit is contained in:
Ja.KooLit 2024-05-01 11:12:49 +09:00 committed by GitHub
commit 6f20ac894b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 46 additions and 29 deletions

View File

@ -40,7 +40,7 @@ fi
# Clone and build # Clone and build
printf "${NOTE} Installing hyprcursor...\n" printf "${NOTE} Installing hyprcursor...\n"
if git clone https://github.com/hyprwm/hyprcursor.git; then if git clone --recursive -b v0.1.8 https://github.com/hyprwm/hyprcursor.git; then
cd hyprcursor || exit 1 cd hyprcursor || exit 1
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF` cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`

View File

@ -6,6 +6,9 @@ idle=(
libsdbus-c++-dev 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! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located # Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@ -39,7 +42,7 @@ fi
# Clone and build # Clone and build
printf "${NOTE} Installing hypridle...\n" printf "${NOTE} Installing hypridle...\n"
if git clone 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 cd hypridle || exit 1
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build 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` cmake --build ./build --config Release --target hypridle -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`

View File

@ -2,6 +2,10 @@
# 💫 https://github.com/JaKooLit 💫 # # 💫 https://github.com/JaKooLit 💫 #
# Main Hyprland Package# # 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! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located # Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@ -25,7 +29,7 @@ if [ -d "Hyprland" ]; then
rm -rf "Hyprland" 2>&1 | tee -a "$LOG" rm -rf "Hyprland" 2>&1 | tee -a "$LOG"
fi 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 cd "Hyprland" || exit 1
make all make all
if sudo make install 2>&1 | tee -a "$MLOG"; then if sudo make install 2>&1 | tee -a "$MLOG"; then

View File

@ -2,6 +2,9 @@
# 💫 https://github.com/JaKooLit 💫 # # 💫 https://github.com/JaKooLit 💫 #
# hyprlang - hyprland and xdg-desktop-portal- dependencies # # 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! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located # Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@ -27,7 +30,7 @@ fi
# Clone and build hyprlang # Clone and build hyprlang
printf "${NOTE} Installing hyprlang...\n" printf "${NOTE} Installing hyprlang...\n"
if git clone 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 cd hyprlang || exit 1
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build 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` cmake --build ./build --config Release --target hyprlang -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`

View File

@ -6,6 +6,9 @@ lock=(
libmagic-dev 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! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located # Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@ -39,7 +42,7 @@ fi
# Clone and build hyprlock # Clone and build hyprlock
printf "${NOTE} Installing hyprlock...\n" printf "${NOTE} Installing hyprlock...\n"
if git clone 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 cd hyprlock || exit 1
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build 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` cmake --build ./build --config Release --target hyprlock -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`

View File

@ -9,6 +9,9 @@ nwg_look=(
libglib2.0-bin 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! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located # Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@ -33,33 +36,31 @@ for PKG1 in "${nwg_look[@]}"; do
done done
printf "${NOTE} Installing nwg-look\n" 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 if [ -d "nwg-look" ]; then
printf "${INFO} nwg-look directory already exists. Updating...\n" printf "${NOTE} Removing existing nwg-look folder...\n"
cd nwg-look || exit 1 rm -rf "nwg-look"
git stash fi
git pull
else # Clone nwg-look repository with the specified tag
# Clone nwg-look repository if directory doesn't exist if git clone --recursive -b "$nwg_tag" --depth 1 https://github.com/nwg-piotr/nwg-look.git; then
if git clone https://github.com/nwg-piotr/nwg-look.git; then
cd nwg-look || exit 1 cd nwg-look || exit 1
else # Build nwg-look
echo -e "${ERROR} Download failed for nwg-look." 2>&1 | tee -a "$LOG" 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 mv "$MLOG" ../Install-Logs/ || true
exit 1 exit 1
fi
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 clear

View File

@ -7,6 +7,9 @@ cargo
liblz4-dev 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! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located # Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 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" git pull origin main 2>&1 | tee -a "$MLOG"
else else
printf "${NOTE} Cloning swww repository...\n" 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 cd swww || exit 1
else else
echo -e "${ERROR} Download failed for swww" 2>&1 | tee -a "$LOG" echo -e "${ERROR} Download failed for swww" 2>&1 | tee -a "$LOG"