mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
Merge pull request #156 from JaKooLit/main
Main to Dev Added final error checks on install-logs
This commit is contained in:
commit
a742997159
@ -1,5 +1,13 @@
|
|||||||
## Changelogs
|
## Changelogs
|
||||||
|
|
||||||
|
## 08 Sep 2024
|
||||||
|
- Added final error checks on install-logs
|
||||||
|
|
||||||
|
## 07 Sep 2024
|
||||||
|
- Fix installation issue on hyprlock and xdph
|
||||||
|
- disabled imagemagick compilation from source
|
||||||
|
- dotfiles adjusted so it will be compatible for imagemagick v6
|
||||||
|
|
||||||
## 04 Sep 2024
|
## 04 Sep 2024
|
||||||
- added a function to check if it is Ubuntu or Based on Ubuntu and script will exit
|
- added a function to check if it is Ubuntu or Based on Ubuntu and script will exit
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,7 @@ hypr_package=(
|
|||||||
gvfs
|
gvfs
|
||||||
gvfs-backends
|
gvfs-backends
|
||||||
inxi
|
inxi
|
||||||
|
imagemagick
|
||||||
kitty
|
kitty
|
||||||
nano
|
nano
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
|||||||
@ -17,6 +17,7 @@ PACKAGES=(
|
|||||||
pypr
|
pypr
|
||||||
swappy
|
swappy
|
||||||
waybar
|
waybar
|
||||||
|
magick
|
||||||
)
|
)
|
||||||
|
|
||||||
## 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! ##
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# Hyprland-Dots to download a specific release #
|
# Hyprland-Dots to download a specific release #
|
||||||
|
|
||||||
# Define the specific release version to download
|
# Define the specific release version to download
|
||||||
specific_version="v2.3.3-Deb-Untu"
|
specific_version="v2.3.3-Deb-Untu-Hyprland-0.41.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! ##
|
||||||
|
|
||||||
|
|||||||
@ -3,6 +3,9 @@
|
|||||||
# hyprlock #
|
# hyprlock #
|
||||||
|
|
||||||
lock=(
|
lock=(
|
||||||
|
libpam0g-dev
|
||||||
|
libgbm-dev
|
||||||
|
libdrm-dev
|
||||||
libmagic-dev
|
libmagic-dev
|
||||||
libhyprlang-dev
|
libhyprlang-dev
|
||||||
libhyprutils-dev
|
libhyprutils-dev
|
||||||
|
|||||||
@ -22,6 +22,7 @@ rofi=(
|
|||||||
libxcb-xinerama0-dev
|
libxcb-xinerama0-dev
|
||||||
libxkbcommon-dev
|
libxkbcommon-dev
|
||||||
libxkbcommon-x11-dev
|
libxkbcommon-x11-dev
|
||||||
|
imagemagick
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@ LOG="Install-Logs/install-$(date +%d-%H%M%S)_wallust.log"
|
|||||||
mkdir -p "$(dirname "$LOG")"
|
mkdir -p "$(dirname "$LOG")"
|
||||||
|
|
||||||
# Install up-to-date Rust
|
# Install up-to-date Rust
|
||||||
echo "Installing most up to Rust compiler..."
|
echo "Installing most up to date Rust compiler..."
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y 2>&1 | tee -a "$LOG"
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y 2>&1 | tee -a "$LOG"
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
|
|
||||||
|
|||||||
@ -3,6 +3,8 @@
|
|||||||
# XDG-Desktop-Portals for hyprland #
|
# XDG-Desktop-Portals for hyprland #
|
||||||
|
|
||||||
xdg=(
|
xdg=(
|
||||||
|
libpipewire-0.3-dev
|
||||||
|
libspa-0.2-dev
|
||||||
xdg-desktop-portal-gtk
|
xdg-desktop-portal-gtk
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
44
install.sh
44
install.sh
@ -182,7 +182,9 @@ execute_script "00-dependencies.sh"
|
|||||||
execute_script "00-hypr-pkgs.sh"
|
execute_script "00-hypr-pkgs.sh"
|
||||||
execute_script "fonts.sh"
|
execute_script "fonts.sh"
|
||||||
execute_script "wallust.sh"
|
execute_script "wallust.sh"
|
||||||
execute_script "imagemagick.sh"
|
|
||||||
|
#execute_script "imagemagick.sh" #this is for compiling from source. 07 Sep 2024
|
||||||
|
|
||||||
execute_script "swww.sh"
|
execute_script "swww.sh"
|
||||||
execute_script "rofi-wayland.sh"
|
execute_script "rofi-wayland.sh"
|
||||||
execute_script "ags.sh"
|
execute_script "ags.sh"
|
||||||
@ -244,9 +246,45 @@ fi
|
|||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
printf "\n%.0s" {1..3}
|
||||||
|
|
||||||
|
# Error-checking section
|
||||||
|
LOG_DIR="Install-Logs"
|
||||||
|
ERROR_FILE="$LOG_DIR/00-Error.log"
|
||||||
|
|
||||||
|
# Create or clear the error file
|
||||||
|
: > "$ERROR_FILE"
|
||||||
|
|
||||||
|
# Check if the Install-Logs directory exists
|
||||||
|
if [ -d "$LOG_DIR" ]; then
|
||||||
|
# Iterate through each file in the Install-Logs directory
|
||||||
|
for log_file in "$LOG_DIR"/*; do
|
||||||
|
# Check if it's a file
|
||||||
|
if [ -f "$log_file" ]; then
|
||||||
|
# Search for lines containing the word "error" (case-insensitive) in the log file
|
||||||
|
if grep -i "error" "$log_file" > /dev/null; then
|
||||||
|
# If errors are found, add the filename to the error file
|
||||||
|
echo "${WARN} Errors found in file: $(basename "$log_file")" >> "$ERROR_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Check if the error file has any content
|
||||||
|
if [ -s "$ERROR_FILE" ]; then
|
||||||
|
echo "${ERROR} Errors encountered during Installation. See $ERROR_FILE for details."
|
||||||
|
else
|
||||||
|
echo "${OK} No errors were found."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Directory $LOG_DIR does not exist or could not be found."
|
||||||
|
fi
|
||||||
|
|
||||||
|
printf "\n%.0s" {1..1}
|
||||||
|
|
||||||
# Check if either hyprland or hyprland-git is installed
|
# Check if either hyprland or hyprland-git is installed
|
||||||
if dpkg -l | grep -qw hyprland || dpkg -l | grep -qw hyprland-git; then
|
if dpkg -l | grep -qw hyprland || dpkg -l | grep -qw hyprland-git; then
|
||||||
printf "\n${OK} Yey! Installation Completed.\n"
|
printf "\n${OK} Hyprland is installed. However, there may some errors during installation "
|
||||||
|
printf "\n${CAT} Please see the errors in Install-Logs as stated above\n"
|
||||||
sleep 2
|
sleep 2
|
||||||
printf "\n${NOTE} You can start Hyprland by typing Hyprland (IF SDDM is not installed) (note the capital H!).\n"
|
printf "\n${NOTE} You can start Hyprland by typing Hyprland (IF SDDM is not installed) (note the capital H!).\n"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
@ -265,7 +303,7 @@ if dpkg -l | grep -qw hyprland || dpkg -l | grep -qw hyprland-git; then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Print error message if neither package is installed
|
# Print error message if neither package is installed
|
||||||
printf "\n${WARN} Hyprland failed to install. Please check Install-Logs...\n\n"
|
printf "\n${NOTE} Hyprland failed to install. Please check Install-Logs...\n\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user