updated script to avoid some errors

This commit is contained in:
JaKooLit 2023-12-04 17:00:22 +09:00
parent 52186f1468
commit 7aec54b9c4
9 changed files with 70 additions and 13 deletions

View File

@ -146,6 +146,10 @@ ninja -C build
sudo ninja -C build install
```
### 🤬 FAQ
#### Most common question I got is, Hey Ja, Why the heck it is taking long time to install? Other distro like Arch its only a minute or two. Why here takes like forever?!?!?!
- Well, most of the core packages are downloaded and Build and compiled from SOURCE. There are no pre-built binary (yet) for Debian and Ubuntu. Unlike Other distros, they already have prepacked binary that can just download and install.
### 🛣️ Roadmap:
- [ ] Install zsh and oh-my-zsh without necessary steps above
- [ ] possibly adding gruvbox themes, cursors, icons

View File

@ -15,18 +15,25 @@ LOG="install-$(date +%d-%H%M%S)_hyprland.log"
# Clone, build, and install Hyprland using Cmake
printf "${NOTE} Cloning Hyprland...\n"
# Check if Hyprland folder exists and remove it
if [ -d "Hyprland" ]; then
printf "${NOTE} Removing existing Hyprland folder...\n"
rm -rf "Hyprland" 2>&1 | tee -a "$LOG"
fi
if git clone --recursive -b v0.32.3 "https://github.com/hyprwm/Hyprland" 2>&1 | tee -a "$LOG"; then
cd Hyprland || exit 1
cd "Hyprland" || exit 1
make all 2>&1 | tee -a "$LOG"
if sudo make install 2>&1 | tee -a "$LOG"; then
printf "${OK} Hyprland installed successfully.\n"
else
echo -e "${ERROR} Installation failed for Hyprland."
fi
# Return to the previous directory
cd ..
else
echo -e "${ERROR} Download failed for Hyprland."
fi
clear

View File

@ -82,6 +82,13 @@ add_to_file() {
# Clone, build, and install nvidia-Hyprland using Cmake
printf "${NOTE} Installing nvidia-Hyprland...\n"
# Check if Hyprland folder exists and remove it
if [ -d "Hyprland" ]; then
printf "${NOTE} Removing existing Hyprland folder...\n"
rm -rf "Hyprland" 2>&1 | tee -a "$LOG"
fi
if git clone --recursive -b v0.32.3 "https://github.com/hyprwm/Hyprland" 2>&1 | tee -a "$LOG"; then
cd Hyprland || exit 1
make all

View File

@ -53,6 +53,13 @@ for package in "${nwg_look[@]}"; do
install_package "$package" || exit 1
done
# Check if nwg-look folder exists and remove it
if [ -d "nwg-look" ]; then
printf "${NOTE} Removing existing nwg-look folder...\n"
rm -rf "nwg-look" 2>&1 | tee -a "$LOG"
fi
printf "${NOTE} Installing nwg-look\n"
if git clone https://github.com/nwg-piotr/nwg-look.git; then
cd nwg-look || exit 1

View File

@ -70,23 +70,30 @@ done
printf "\n\n\n"
# Clone and build xdg-desktop-portal-hyprland
# Clone and build rofi - wayland
printf "${NOTE} Installing rofi-wayland...\n"
# Check if rofi folder exists and remove it
if [ -d "rofi" ]; then
printf "${NOTE} Removing existing rofi folder...\n"
rm -rf "rofi" 2>&1 | tee -a "$LOG"
fi
if git clone https://github.com/lbonn/rofi.git 2>&1 | tee -a "$LOG"; then
cd rofi || exit 1
meson setup build
ninja -C build
if sudo ninja -C build install 2>&1 | tee -a "$LOG"; then
printf "${OK} rofi-wayland installed successfully.\n"
# Return to the previous directory
cd ..
cd "rofi" || exit 1
if meson setup build && ninja -C build; then
if sudo ninja -C build install 2>&1 | tee -a "$LOG"; then
printf "${OK} rofi-wayland installed successfully.\n"
# Return to the previous directory
cd ..
else
echo -e "${ERROR} Installation failed for rofi-wayland."
fi
else
echo -e "${ERROR} Installation failed for rofi-wayland."
echo -e "${ERROR} Meson setup or ninja build failed for rofi-wayland."
fi
else
echo -e "${ERROR} Download failed for rofi-wayland."
fi
clear

View File

@ -24,6 +24,12 @@ LOG="install-$(date +'%d-%H%M%S')_swappy.log"
printf "${NOTE} Installing swappy..\n"
# Check if Hyprland folder exists and remove it
if [ -d "swappy" ]; then
printf "${NOTE} Removing existing swappy folder...\n"
rm -rf "swappy" 2>&1 | tee -a "$LOG"
fi
if git clone https://github.com/jtheoof/swappy.git; then
cd swappy || exit 1
meson build

View File

@ -24,6 +24,12 @@ LOG="install-$(date +'%d-%H%M%S')_swaylock-effects.log"
printf "${NOTE} Installing swaylock-effects\n"
# Check if swaylock-effects folder exists and remove it
if [ -d "swaylock-effects" ]; then
printf "${NOTE} Removing existing swaylock-effects folder...\n"
rm -rf "swaylock-effects" 2>&1 | tee -a "$LOG"
fi
if git clone https://github.com/mortie/swaylock-effects.git; then
cd swaylock-effects || exit 1
meson build

View File

@ -24,6 +24,12 @@ LOG="install-$(date +'%d-%H%M%S')_swww.log"
printf "${NOTE} Installing swww\n"
# Check if swww folder exists and remove it
if [ -d "swww" ]; then
printf "${NOTE} Removing existing swww folder...\n"
rm -rf "swww" 2>&1 | tee -a "$LOG"
fi
if git clone https://github.com/Horus645/swww.git 2>&1 | tee -a "$LOG"; then
cd swww || exit 1
source "$HOME/.cargo/env"

View File

@ -22,6 +22,13 @@ RESET=$(tput sgr0)
# Set the name of the log file to include the current date and time
LOG="install-$(date +%d-%H%M%S)_xdph.log"
# Check if xdg-desktop-portal-hyprland folder exists and remove it
if [ -d "xdg-desktop-portal-hyprland" ]; then
printf "${NOTE} Removing existing xdg-desktop-portal-hyprland folder...\n"
rm -rf "xdg-desktop-portal-hyprland" 2>&1 | tee -a "$LOG"
fi
# Clone and build xdg-desktop-portal-hyprland
printf "${NOTE} Installing xdg-desktop-portal-hyprland...\n"
if git clone --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland 2>&1 | tee -a "$LOG"; then