added auto clone and auto ran of install.sh

This commit is contained in:
JaKooLit 2025-03-07 16:09:56 +09:00
parent d9441caa7f
commit 9a671a4033
2 changed files with 40 additions and 17 deletions

View File

@ -124,6 +124,12 @@ sudo nano /etc/apt/sources.list
> Another important note for nvidia owners
> If you have nvidia, by default debian is installing nouveau or open-source nvidia driver. If you want to keep the default nvidia driver installed by Debian, choose N on the if you have nvidia question. Or else you will encounter same issue as SDDM above.
## ✨ Auto clone and install
- you can use this command to automatically clone the installer and ran the script for you
```bash
sh <(curl -L https://raw.githubusercontent.com/JaKooLit/Debian-Hyprland/main/auto-install.sh)
```
## ✨ to use this script
> clone this repo (latest commit only) by using git. Change directory, make executable and run the script
```bash
@ -136,23 +142,6 @@ chmod +x install.sh
<img align="center" width="100%" src="https://raw.githubusercontent.com/JaKooLit/Debian-Hyprland/main/Debian-Install.png" />
### 🤟 semi-unattended installation (new for Feb 2025)
- edit preset.sh to modify what packages you want. Make sure to change only with Y or N
- to use preset instead of usual `./install.sh` you can ran like this
```bash
./install.sh --preset
```
- if you have nvidia you can add --nvidia argument
```bash
./install.sh --preset --nvidia
```
- its called semi-unattended it is because you still have to answer some questions when installing KooL's Hyprland Dots
#### ✨ for ZSH and OH-MY-ZSH installation
> installer should auto change your default shell to zsh. However, if it does not, do this
```bash

34
auto-install.sh Normal file
View File

@ -0,0 +1,34 @@
#!/bin/bash
# https://github.com/JaKooLit
Distro="Debian-Hyprland"
Github_URL="https://github.com/JaKooLit/$Distro.git"
Distro_DIR="$HOME/$Distro"
printf "\n%.0s" {1..1}
# Package GIT
if ! command -v git &> /dev/null
then
echo "Git not found! Installing Git..."
sudo apt update && sudo apt install -y git
fi
printf "\n%.0s" {1..1}
# Check if the repository already exists
if [ -d "$Distro_DIR" ]; then
echo "$Distro_DIR exists. Updating the repository..."
cd "$Distro_DIR"
git stash && git pull
chmod +x install.sh
./install.sh
else
echo "$Distro_DIR does not exist. Cloning the repository..."
git clone --depth=1 "$Github_URL" "$Distro_DIR"
cd "$Distro_DIR"
chmod +x install.sh
./install.sh
fi