fix(Installer ─ Multi-Desktop): Fix Multi Desktop

This commit is contained in:
2026-05-28 18:00:25 +02:00
parent 40fd289a9f
commit 241bd5c219
29 changed files with 116 additions and 621 deletions
+3 -12
View File
@@ -5,16 +5,7 @@ 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_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
DISTRO_NAME="Arch"
if [ -n "$WSL_DISTRO_NAME" ]; then
echo -e "\e[36mBuild exécuté depuis WSL ($WSL_DISTRO_NAME) en tant que root...\e[0m"
@@ -37,9 +28,9 @@ WORK_DIR="${WORK_DIR_WSL}"
echo "==> Dossier de travail : \$WORK_DIR"
echo "==> Mise à jour des miroirs et installation de archiso..."
pacman -Syu --noconfirm reflector || true
pacman -Sy --noconfirm reflector || true
reflector --verbose --latest 10 --sort rate --save /etc/pacman.d/mirrorlist || true
pacman -Syu --noconfirm archiso
pacman -Sy --noconfirm archiso
echo "==> Préparation de l'environnement de build..."
rm -rf /tmp/fws-build