mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 18:20:13 +01:00
added force install package script
This commit is contained in:
parent
9a6a90bce7
commit
00f127b5f8
@ -1,5 +1,8 @@
|
|||||||
## Changelogs
|
## Changelogs
|
||||||
|
|
||||||
|
## 13 Dec 2023
|
||||||
|
- Added a script / function to force install packages. Some users reported that it is not installed.
|
||||||
|
|
||||||
## 11 Dec 2023
|
## 11 Dec 2023
|
||||||
- Changing over to zsh automatically if user opted
|
- Changing over to zsh automatically if user opted
|
||||||
- If chose to install zsh and have no login manager, zsh auto login will auto start Hyprland
|
- If chose to install zsh and have no login manager, zsh auto login will auto start Hyprland
|
||||||
|
|||||||
@ -167,6 +167,10 @@ sudo ninja -C build install
|
|||||||
#### 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?!?!?!
|
#### 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.
|
- 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.
|
||||||
|
|
||||||
|
### ❗ some known issues on this Installer
|
||||||
|
- some users reported that they have to install some packages. It is in the install-scripts/force-install.sh
|
||||||
|
- At this time the packages force to install are the following `imagemagick`
|
||||||
|
|
||||||
### 🏴☠️🏴☠️🏴☠️ Got a questions regarding the Hyprland Dots?
|
### 🏴☠️🏴☠️🏴☠️ Got a questions regarding the Hyprland Dots?
|
||||||
- Head over to wiki Link [`WIKI`](🏴https://github.com/JaKooLit/Hyprland-Dots/wiki)
|
- Head over to wiki Link [`WIKI`](🏴https://github.com/JaKooLit/Hyprland-Dots/wiki)
|
||||||
|
|
||||||
|
|||||||
37
install-scripts/force-install.sh
Normal file
37
install-scripts/force-install.sh
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
force=(
|
||||||
|
imagemagick
|
||||||
|
)
|
||||||
|
|
||||||
|
############## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU'RE DOING! ##############
|
||||||
|
|
||||||
|
# Determine the directory where the script is located
|
||||||
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
|
# Change the working directory to the parent directory of the script
|
||||||
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
|
cd "$PARENT_DIR" || exit 1
|
||||||
|
|
||||||
|
# Set some colors for output messages
|
||||||
|
OK="$(tput setaf 2)[OK]$(tput sgr0)"
|
||||||
|
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"
|
||||||
|
NOTE="$(tput setaf 3)[NOTE]$(tput sgr0)"
|
||||||
|
WARN="$(tput setaf 166)[WARN]$(tput sgr0)"
|
||||||
|
CAT="$(tput setaf 6)[ACTION]$(tput sgr0)"
|
||||||
|
ORANGE=$(tput setaf 166)
|
||||||
|
YELLOW=$(tput setaf 3)
|
||||||
|
RESET=$(tput sgr0)
|
||||||
|
|
||||||
|
# Set the name of the log file to include the current date and time
|
||||||
|
LOG="install-$(date +'%d-%H%M%S')_force.log"
|
||||||
|
|
||||||
|
|
||||||
|
printf "${NOTE} Force installing packages...\n"
|
||||||
|
for FORCE in "${force[@]}"; do
|
||||||
|
sudo apt-get --reinstall install -y "$FORCE" 2>&1 | tee -a "$LOG"
|
||||||
|
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $CLIP install had failed, please check the install.log"; exit 1; }
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
clear
|
||||||
@ -164,6 +164,7 @@ execute_script "swappy.sh"
|
|||||||
execute_script "swww.sh"
|
execute_script "swww.sh"
|
||||||
execute_script "rofi-wayland.sh"
|
execute_script "rofi-wayland.sh"
|
||||||
execute_script "pywal.sh"
|
execute_script "pywal.sh"
|
||||||
|
execute_script "force-install.sh"
|
||||||
|
|
||||||
|
|
||||||
if [ "$nvidia" == "Y" ]; then
|
if [ "$nvidia" == "Y" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user