From f13ee6d74ebd979103edd2f3568d31f9b7f52e71 Mon Sep 17 00:00:00 2001 From: zenobit Date: Tue, 18 Feb 2025 03:28:52 +0100 Subject: [PATCH] Move config to.. --- actions/reactos | 16 ++++++++++++++++ quickget | 15 --------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/actions/reactos b/actions/reactos index f860b9d..a744109 100644 --- a/actions/reactos +++ b/actions/reactos @@ -5,6 +5,7 @@ BASEDOF="-" HOMEPAGE="https://reactos.org" DESCRIPTION="Imagine running your favorite Windows applications and drivers in an open-source environment you can trust" CREDENTIALS="-" +GUEST="reactos" function releases_() { echo latest @@ -16,3 +17,18 @@ function get_() { URL="$(web_redirect "https://sourceforge.net/projects/reactos/files/latest/download")" echo "${URL} ${HASH}" } + +function distro_specific() { + if [[ ${ISO} = *".zip"* ]]; then + unzip -qo "${VM_PATH}/${ISO}" -d "${VM_PATH}" + rm -f "${VM_PATH}/${ISO}" + ISO="$(ls -1 "${VM_PATH}/"*.iso)" + ISO="$(basename "${ISO}")" + fi +} + +function specific_tweaks() { + echo "boot=\"legacy\"" >> "${CONF_FILE}" + echo "disk_size=\"12G\"" >> "${CONF_FILE}" + echo "ram=\"2048M\"" >> "${CONF_FILE}" +} diff --git a/quickget b/quickget index be31ac0..1434388 100755 --- a/quickget +++ b/quickget @@ -600,9 +600,6 @@ function make_vm_config() { openindiana) GUEST="solaris" IMAGE_TYPE="iso";; - reactos) - GUEST="reactos" - IMAGE_TYPE="iso";; truenas*) GUEST="truenas" IMAGE_TYPE="iso";; @@ -695,11 +692,6 @@ EOF case ${EDITION} in education64|edulite64) echo "disk_size=\"32G\"" >> "${CONF_FILE}";; esac;; - reactos) - echo "boot=\"legacy\"" >> "${CONF_FILE}" - echo "disk_size=\"12G\"" >> "${CONF_FILE}" - echo "ram=\"2048M\"" >> "${CONF_FILE}" - ;; macos) echo "disk_size=\"128G\"" >> "${CONF_FILE}" echo "macos_release=\"${RELEASE}\"" >> "${CONF_FILE}" @@ -794,13 +786,6 @@ function create_vm() { ISO="$(basename "${ISO}")" fi fi;; - reactos) - if [[ ${ISO} = *".zip"* ]]; then - unzip -qo "${VM_PATH}/${ISO}" -d "${VM_PATH}" - rm -f "${VM_PATH}/${ISO}" - ISO="$(ls -1 "${VM_PATH}/"*.iso)" - ISO="$(basename "${ISO}")" - fi;; #TODO redox-os) if [[ ${ISO} =~ ".zst" ]]; then