diff --git a/build.sh b/build.sh index 93a9ca3..90907a7 100755 --- a/build.sh +++ b/build.sh @@ -114,8 +114,12 @@ rm -rf offline_cache # Copier les scripts personnalisés dans la racine du live system si nécessaire mkdir -p airootfs/usr/local/bin -cp custom-pkgs/hello-custom/hello-custom.sh airootfs/usr/local/bin/hello-custom 2>/dev/null || true -chmod +x airootfs/usr/local/bin/hello-custom 2>/dev/null || true +for script in custom-pkgs/*/*.sh; do + [ -f "$script" ] || continue + script_name="$(basename "$script")" + target_name="${script_name%.sh}" + install -Dm0755 "$script" "airootfs/usr/local/bin/$target_name" +done # --- CRÉATION DE L'ISO --- echo "[6/6] Building ISO (this will take a while)..." diff --git a/packages.x86_64 b/packages.x86_64 index 1530fb3..b519f73 100644 --- a/packages.x86_64 +++ b/packages.x86_64 @@ -126,4 +126,3 @@ xdg-utils xfsprogs xl2tpd zsh -hello-custom