switched to download rofi-wayland from releases instead from upstream

This commit is contained in:
JaKooLit 2024-11-25 05:02:49 +09:00
parent 0a2dc7604c
commit d4c11f8d51
2 changed files with 17 additions and 11 deletions

View File

@ -1,5 +1,8 @@
## Changelogs ## Changelogs
## 24 Nov 2024
- switched to download rofi-wayland from releases instead from upstream
## 20 Sep 2024 ## 20 Sep 2024
- User will be ask if they want to set Thunar as default file manager if they decided to install it - User will be ask if they want to set Thunar as default file manager if they decided to install it

View File

@ -66,22 +66,23 @@ printf "\n\n"
printf "${NOTE} Installing rofi-wayland...\n" printf "${NOTE} Installing rofi-wayland...\n"
# Check if rofi folder exists # Check if rofi folder exists
if [ -d "rofi" ]; then if [ -d "rofi-1.7.5+wayland3" ]; then
printf "${NOTE} rofi folder exists. Removing existing directory...\n" rm -rf "rofi-1.7.5+wayland3"
rm -rf rofi
fi fi
# cloning rofi-wayland # cloning rofi-wayland
printf "${NOTE} Cloning rofi-wayland repository...\n" printf "${NOTE} Downloading rofi-wayland v1.7.5+wayland3 from releases...\n"
if git clone https://github.com/lbonn/rofi.git; then wget https://github.com/lbonn/rofi/releases/download/1.7.5%2Bwayland3/rofi-1.7.5+wayland3.tar.gz
cd rofi || exit 1
else if [ -f "rofi-1.7.5+wayland3.tar.gz" ]; then
echo -e "${ERROR} Download failed for rofi-wayland." 2>&1 | tee -a "$LOG" printf "rofi-wayland downloaded successfully.\n" 2>&1 | tee -a "$LOG"
exit 1 tar xf rofi-1.7.5+wayland3.tar.gz
fi fi
cd rofi-1.7.5+wayland3 || exit 1
# Proceed with the installation steps # Proceed with the installation steps
if meson setup build && ninja -C build; then if meson setup build && ninja -C build ; then
if sudo ninja -C build install 2>&1 | tee -a "$MLOG"; then if sudo ninja -C build install 2>&1 | tee -a "$MLOG"; then
printf "${OK} rofi-wayland installed successfully.\n" 2>&1 | tee -a "$MLOG" printf "${OK} rofi-wayland installed successfully.\n" 2>&1 | tee -a "$MLOG"
else else
@ -95,5 +96,7 @@ fi
mv "$MLOG" ../Install-Logs/ || true mv "$MLOG" ../Install-Logs/ || true
cd .. || exit 1 cd .. || exit 1
clear # clean up
rm -rf rofi-1.7.5+wayland3.tar.gz
clear