feat(Installer): Add Multi Desktop environnement in the installer to allow the user to choose wich desktop env

This commit is contained in:
2026-05-27 19:22:42 +02:00
parent a9d4b9ac91
commit f6ee07429b
23 changed files with 358 additions and 25 deletions
+12 -3
View File
@@ -5,7 +5,16 @@ export MSYS_NO_PATHCONV=1
set -e
trap 'echo -e "\e[31mErreur lors de l execution (build.sh).\e[0m"; exit 1' ERR
DISTRO_NAME="Arch"
DISTRO_NAME="${ARCH_WSL_DISTRO:-Arch}"
# Auto-détection si la distro par défaut est inaccessible
if [ -z "$IN_WSL" ] && ! wsl.exe -d "$DISTRO_NAME" -u root -- echo ok >/dev/null 2>&1; then
for _name in "Arch" "ArchLinux" "archlinux" "arch" "ArchWSL"; do
if wsl.exe -d "$_name" -u root -- echo ok >/dev/null 2>&1; then
DISTRO_NAME="$_name"; break
fi
done
fi
if [ -n "$WSL_DISTRO_NAME" ]; then
echo -e "\e[36mBuild exécuté depuis WSL ($WSL_DISTRO_NAME) en tant que root...\e[0m"
@@ -28,9 +37,9 @@ WORK_DIR="${WORK_DIR_WSL}"
echo "==> Dossier de travail : \$WORK_DIR"
echo "==> Mise à jour des miroirs et installation de archiso..."
pacman -Sy --noconfirm reflector || true
pacman -Syu --noconfirm reflector || true
reflector --verbose --latest 10 --sort rate --save /etc/pacman.d/mirrorlist || true
pacman -Sy --noconfirm archiso
pacman -Syu --noconfirm archiso
echo "==> Préparation de l'environnement de build..."
rm -rf /tmp/fws-build