build-distro: replace --gnome/--kde/--hyprland with --de=

parent 3041dd10
...@@ -142,7 +142,7 @@ deploy() { ...@@ -142,7 +142,7 @@ deploy() {
mv -vf "$TMP"/out/ximper-*.iso "$VMDIR"/"$DFILENAME" mv -vf "$TMP"/out/ximper-*.iso "$VMDIR"/"$DFILENAME"
} }
OPTS=$(getopt -o h --long help,nvidia,debug,clean,all,gnome,kde,hyprland,net,network,repos: -- "$@") || { OPTS=$(getopt -o h --long help,nvidia,debug,clean,all,de:,net,network,repos: -- "$@") || {
print_error "Ошибка обработки опций." print_error "Ошибка обработки опций."
} }
...@@ -157,10 +157,8 @@ while true; do ...@@ -157,10 +157,8 @@ while true; do
printf "Использование: %s [версия дистрибутива] [опции]\n\n" "$0" printf "Использование: %s [версия дистрибутива] [опции]\n\n" "$0"
printf "Опции:\n" printf "Опции:\n"
printf " -h | --help Вывод этой справки\n" printf " -h | --help Вывод этой справки\n"
printf " Окружения:\n" printf " --de=ОКРУЖЕНИЯ Рабочие окружения через запятую (по умолчанию: gnome)\n"
printf " --gnome Собрать дистрибутив с GNOME (по умолчанию)\n" printf " Пример: --de=gnome,kde\n"
printf " --kde Собрать дистрибутив с KDE\n"
printf " --hyprland Собрать дистрибутив с Hyprland\n"
printf "\n" printf "\n"
printf " Настройки образа:\n" printf " Настройки образа:\n"
printf " --nvidia Собрать дистрибутив с драйверами NVIDIA\n" printf " --nvidia Собрать дистрибутив с драйверами NVIDIA\n"
...@@ -197,17 +195,10 @@ while true; do ...@@ -197,17 +195,10 @@ while true; do
ALLDISTROS=true ALLDISTROS=true
shift shift
;; ;;
--gnome) --de)
DESKTOP_ENVS+=("gnome") IFS=',' read -ra _de <<< "$2"
shift DESKTOP_ENVS+=("${_de[@]}")
;; shift 2
--kde)
DESKTOP_ENVS+=("kde")
shift
;;
--hyprland)
DESKTOP_ENVS+=("hyprland")
shift
;; ;;
--net|--network) --net|--network)
NETWORK="--network" NETWORK="--network"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment