diff --git a/action b/action
new file mode 100755
index 0000000..b6929a4
--- /dev/null
+++ b/action
@@ -0,0 +1,530 @@
+#!/usr/bin/env bash
+#shellcheck disable=SC1090
+#
+function write_output() {
+ . "actions/${OS}"
+ RELEASES=$(cut -d: -f1 < "public/tmp_${OS}" | cut -d' ' -f2 | sort -ur | paste -sd ' ')
+ if grep -q 'function edition' "actions/${OS}"; then
+ . "actions/${OS}"
+ EDITIONS=$(printf 'EDITIONS="%s"\n' "$(cut -d: -f1 < "public/tmp_${OS}" | cut -d' ' -f3 | sort -ur | paste -sd ' ')")
+ else
+ EDITIONS=$(echo -e "\n")
+ fi
+ echo
+ printf '# Template file for '\''%s'\''
+OSNAME="%s"
+PRETTY="%s"
+BASEDOF="%s"
+DESCRIPTION="%s"
+HOMEPAGE="%s"
+CREDENTIALS="%s"
+RELEASES="%s"
+%s
+' "$OS" "$OSNAME" "$PRETTY" "$BASEDOF" "$DESCRIPTION" "$HOMEPAGE" "$CREDENTIALS" "$RELEASES" "$EDITIONS" | tee -a "public/${OS}"
+ cat "public/tmp_${OS}" >> TODO/all
+ echo
+}
+
+function test_result() {
+ local OS="${1}"
+ local RELEASE="${2}"
+ local EDITION="${3:-}"
+ local URL="${4:-}"
+ local RESULT="${5:-}"
+
+ if [ -n "${EDITION}" ]; then
+ OS="${OS} ${RELEASE} ${EDITION}"
+ else
+ OS="${OS} ${RELEASE}"
+ fi
+
+ if [ -n "${RESULT}" ]; then
+ # Pad the OS string for consistent output
+ OS=$(printf "%-35s" "${OS}")
+ echo -e "${OS} ${URL}"
+ else
+ OS=$(printf "%-36s" "${OS}:")
+ echo -e "${OS} ${URL}"
+ fi
+}
+
+function test_all() {
+ OS="${1}"
+ mkdir -p public
+ rm -f "public/${OS}"
+ touch "public/${OS}"
+ rm -f "public/tmp_${OS}"
+ touch "public/tmp_${OS}"
+ . "actions/${OS}"
+ if [[ "${OS}" == *ubuntu* && "${OS}" != "ubuntu-server" ]]; then
+ FUNC="ubuntu"
+ fi
+ echo "${OS}
+"
+ for RELEASE in $("releases_"); do
+ . "actions/${OS}"
+ if [[ $(type -t "editions_") == function ]]; then
+ for EDITION in $(editions_""); do
+ . "actions/${OS}"
+ URL=$(get_ | cut -d' ' -f1 | head -n 1)
+ if [ "${OPERATION}" == "show" ]; then
+ test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" | tee -a "public/tmp_${OS}"
+ elif [ "${OPERATION}" == "test" ]; then
+ CHECK=$(web_check "${URL}" && echo "PASS" || echo "FAIL")
+ test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "${CHECK}" | tee -a "public/tmp_${OS}"
+ fi
+ done
+ elif [[ "${OS}" == "windows"* ]]; then
+ languages_
+ for I18N in "${I18N[@]}"; do
+ if [ "${OPERATION}" == "show" ]; then
+ test_result "${OS}" "${RELEASE}" "${I18N}" "" | tee -a "public/tmp_${OS}"
+ elif [ "${OPERATION}" == "test" ]; then
+ test_result "${OS}" "${RELEASE}" "${I18N}" "${URL}" "SKIP" | tee -a "public/tmp_${OS}"
+ fi
+ done
+ elif [[ "${OS}" == "macos" ]]; then
+ (get_)
+ elif [ "${OS}" == "ubuntu-server" ]; then
+ (get_)
+ elif [[ "${OS}" == *ubuntu* ]]; then
+ (get_)
+ else
+ URL=$(get_ | cut -d' ' -f1 | head -n 1)
+ if [ "${OPERATION}" == "show" ]; then
+ test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" | tee -a "public/tmp_${OS}"
+ elif [ "${OPERATION}" == "test" ]; then
+ CHECK=$(web_check "${URL}" && echo "PASS" || echo "FAIL")
+ test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "${CHECK}" | tee -a "public/tmp_${OS}"
+ fi
+ fi
+ done
+}
+
+function get_releases() {
+ OS="${1}"
+ mkdir -p public
+ rm -f "public/${OS}"
+ touch "public/${OS}"
+ rm -f "public/tmp_${OS}"
+ touch "public/tmp_${OS}"
+ . "actions/${OS}"
+ if [[ "${OS}" == *ubuntu* && "${OS}" != "ubuntu-server" ]]; then
+ FUNC="ubuntu"
+ fi
+ echo "${OS}
+"
+ for RELEASE in $("releases_"); do
+ . "actions/${OS}"
+ if [[ $(type -t "editions_") == function ]]; then
+ for EDITION in $(editions_""); do
+ . "actions/${OS}"
+ URL=$(get_ | cut -d' ' -f1 | head -n 1)
+ echo "${OS} ${RELEASE} ${EDITION}" >> "public/tmp_${OS}"
+ done
+ elif [[ "${OS}" == "windows"* ]]; then
+ languages_
+ for I18N in "${I18N[@]}"; do
+ echo "${OS} ${RELEASE} ${I18N}" >> "public/tmp_${OS}"
+ done
+ elif [[ "${OS}" == "macos" ]]; then
+ (get_)
+ elif [ "${OS}" == "ubuntu-server" ]; then
+ (get_)
+ elif [[ "${OS}" == *ubuntu* ]]; then
+ (get_ubuntu)
+ else
+ #validate_release releases_"${OS}"
+ URL=$(get_"${OS}" | cut -d' ' -f1 | head -n 1)
+ echo "${OS} ${RELEASE} ${EDITION}" >> "public/tmp_${OS}"
+ fi
+ done
+}
+
+function check_hash() {
+ local iso=""
+ local hash=""
+ local hash_algo=""
+ if [ "${OPERATION}" == "download" ]; then
+ iso="${1}"
+ else
+ iso="${VM_PATH}/${1}"
+ fi
+ hash="${2}"
+ # Guess the hash algorithm by the hash length
+ case ${#hash} in
+ 32) hash_algo=md5sum;;
+ 40) hash_algo=sha1sum;;
+ 64) hash_algo=sha256sum;;
+ 128) hash_algo=sha512sum;;
+ *) echo "WARNING! Can't guess hash algorithm, not checking ${iso} hash."
+ return;;
+ esac
+ echo -n "Checking ${iso} with ${hash_algo}... "
+ if ! echo "${hash} ${iso}" | ${hash_algo} --check --status; then
+ echo "ERROR!"
+ echo "${iso} doesn't match ${hash}. Try running 'quickget' again."
+ exit 1
+ else
+ echo "Good!"
+ fi
+}
+
+# Download a file from the web and pipe it to stdout
+function web_pipe() {
+ curl --silent --location "${1}"
+}
+
+# Download a JSON file from the web and pipe it to stdout
+function web_pipe_json() {
+ curl --silent --location --header "Accept: application/json" "${1}"
+}
+
+# checks if a URL is reachable
+function web_check() {
+ local HEADERS=()
+ local URL="${1}"
+ # Process any headers
+ while (( "$#" )); do
+ if [ "${1}" == "--header" ]; then
+ HEADERS+=("${1}" "${2}")
+ shift 2
+ else
+ shift
+ fi
+ done
+ curl --silent --location --head --output /dev/null --fail --connect-timeout 30 --max-time 30 --retry 3 "${HEADERS[@]}" "${URL}"
+}
+
+# checks if a URL needs to be redirected and returns the final URL
+function web_redirect() {
+ local REDIRECT_URL=""
+ local URL="${1}"
+ # Check for URL redirections
+ # Output to nonexistent directory so the download fails fast
+ REDIRECT_URL=$(curl --silent --location --fail --write-out '%{url_effective}' --output /var/cache/${RANDOM}/${RANDOM} "${URL}" )
+ if [ "${REDIRECT_URL}" != "${URL}" ]; then
+ echo "${REDIRECT_URL}"
+ else
+ echo "${URL}"
+ fi
+}
+
+# Download a file from the web
+function web_get() {
+ local CHECK=""
+ local HEADERS=()
+ local URL="${1}"
+ local DIR="${2}"
+ local FILE=""
+ local USER_AGENT="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
+
+ if [ -n "${3}" ]; then
+ FILE="${3}"
+ else
+ FILE="${URL##*/}"
+ fi
+
+ # Process any URL redirections after the file name has been extracted
+ URL=$(web_redirect "${URL}")
+
+ # Process any headers
+ while (( "$#" )); do
+ if [ "${1}" == "--header" ]; then
+ HEADERS+=("${1}" "${2}")
+ shift 2
+ else
+ shift
+ fi
+ done
+
+ # Test mode for ISO
+ if [ "${OPERATION}" == "show" ]; then
+ test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}"
+ exit 0
+ elif [ "${OPERATION}" == "test" ]; then
+ CHECK=$(web_check "${URL}" && echo "PASS" || echo "FAIL")
+ test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "${CHECK}"
+ exit 0
+ elif [ "${OPERATION}" == "download" ]; then
+ DIR="$(pwd)"
+ fi
+
+ if [ "${DIR}" != "$(pwd)" ] && ! mkdir -p "${DIR}" 2>/dev/null; then
+ echo "ERROR! Unable to create directory ${DIR}"
+ exit 1
+ fi
+
+ if [[ ${OS} != windows && ${OS} != macos && ${OS} != windows-server ]]; then
+ echo "Downloading ${PRETTY} ${RELEASE} ${EDITION}"
+ echo "- URL: ${URL}"
+ fi
+
+ if ! curl --progress-bar --location --output "${DIR}/${FILE}" --continue-at - --user-agent "${USER_AGENT}" "${HEADERS[@]}" -- "${URL}"; then
+ echo "ERROR! Failed to download ${URL} with curl."
+ rm -f "${DIR}/${FILE}"
+ fi
+}
+
+function zsync_get() {
+ local CHECK=""
+ local DIR="${2}"
+ local FILE="${1##*/}"
+ local OUT=""
+ local URL="${1}"
+ # Test mode for ISO
+ if [ "${OPERATION}" == "show" ]; then
+ test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}"
+ exit 0
+ elif [ "${OPERATION}" == "test" ]; then
+ CHECK=$(web_check "${URL}" && echo "PASS" || echo "FAIL")
+ test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "${CHECK}"
+ exit 0
+ elif command -v zsync &>/dev/null; then
+ if [ -n "${3}" ]; then
+ OUT="${3}"
+ else
+ OUT="${FILE}"
+ fi
+
+ if ! mkdir -p "${DIR}" 2>/dev/null; then
+ echo "ERROR! Unable to create directory ${DIR}"
+ exit 1
+ fi
+ echo "Downloading ${PRETTY} ${RELEASE} ${EDITION} from ${URL}"
+ # Only force http for zsync - not earlier because we might fall through here
+ if ! zsync "${URL/https/http}.zsync" -i "${DIR}/${OUT}" -o "${DIR}/${OUT}" 2>/dev/null; then
+ echo "ERROR! Failed to download ${URL/https/http}.zsync"
+ exit 1
+ fi
+
+ if [ -e "${DIR}/${OUT}.zs-old" ]; then
+ rm "${DIR}/${OUT}.zs-old"
+ fi
+ else
+ echo "INFO: zsync not found, falling back to curl"
+ if [ -n "${3}" ]; then
+ web_get "${1}" "${2}" "${3}"
+ else
+ web_get "${1}" "${2}"
+ fi
+ fi
+}
+
+function make_vm_config() {
+ local CONF_FILE=""
+ local IMAGE_FILE=""
+ local ISO_FILE=""
+ local IMAGE_TYPE=""
+ local GUEST=""
+ if [ "${OPERATION}" == "download" ]; then
+ exit 0
+ fi
+ IMAGE_FILE="${1}"
+ ISO_FILE="${2}"
+ case "${OS}" in
+ batocera)
+ GUEST="batocera"
+ IMAGE_TYPE="img";;
+ custom)
+ GUEST="${CUSTOM_OS}"
+ IMAGE_TYPE="${CUSTOM_IMAGE_TYPE}";;
+ dragonflybsd)
+ GUEST="dragonflybsd"
+ IMAGE_TYPE="iso";;
+ easyos)
+ GUEST="linux"
+ IMAGE_TYPE="img";;
+ freebsd|ghostbsd)
+ GUEST="freebsd"
+ IMAGE_TYPE="iso";;
+ haiku)
+ GUEST="haiku"
+ IMAGE_TYPE="iso";;
+ freedos)
+ GUEST="freedos"
+ IMAGE_TYPE="iso";;
+ kolibrios)
+ GUEST="kolibrios"
+ IMAGE_TYPE="iso";;
+ macos)
+ GUEST="macos"
+ IMAGE_TYPE="img";;
+ netbsd)
+ GUEST="netbsd"
+ IMAGE_TYPE="iso";;
+ openbsd)
+ GUEST="openbsd"
+ IMAGE_TYPE="iso";;
+ openindiana)
+ GUEST="solaris"
+ IMAGE_TYPE="iso";;
+ reactos)
+ GUEST="reactos"
+ IMAGE_TYPE="iso";;
+ truenas*)
+ GUEST="truenas"
+ IMAGE_TYPE="iso";;
+ ubuntu*)
+ GUEST="linux"
+ IMAGE_TYPE="iso"
+ # If there is a point in the release, check if it is less than 16.04
+ if [[ "${RELEASE}" != *"daily"* ]]; then
+ if [ "${RELEASE//./}" -lt 1604 ]; then
+ GUEST="linux_old"
+ fi
+ fi
+ ;;
+ windows)
+ GUEST="windows"
+ IMAGE_TYPE="iso";;
+ windows-server)
+ GUEST="windows-server"
+ IMAGE_TYPE="iso";;
+ *)
+ GUEST="linux"
+ IMAGE_TYPE="iso";;
+ esac
+
+ CONF_FILE="${VM_PATH}.conf"
+
+ if [ ! -e "${CONF_FILE}" ]; then
+ echo "Making ${CONF_FILE}"
+ cat << EOF > "${CONF_FILE}"
+#!${QUICKEMU} --vm
+guest_os="${GUEST}"
+disk_img="${VM_PATH}/disk.qcow2"
+${IMAGE_TYPE}="${VM_PATH}/${IMAGE_FILE}"
+EOF
+ echo " - Setting ${CONF_FILE} executable"
+ chmod u+x "${CONF_FILE}"
+ if [ -n "${ISO_FILE}" ]; then
+ echo "fixed_iso=\"${VM_PATH}/${ISO_FILE}\"" >> "${CONF_FILE}"
+ fi
+
+ # OS specific tweaks
+ case ${OS} in
+ alma|athenaos|centos-stream|endless|garuda|gentoo|kali|nixos|oraclelinux|popos|rockylinux)
+ echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
+ openindiana)
+ echo "boot=\"legacy\"" >> "${CONF_FILE}"
+ echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
+ batocera)
+ echo "disk_size=\"8G\"" >> "${CONF_FILE}";;
+ bazzite)
+ echo "disk_size=\"64G\"" >> "${CONF_FILE}";;
+ dragonflybsd|haiku|openbsd|netbsd|slackware|slax|tails|tinycore)
+ echo "boot=\"legacy\"" >> "${CONF_FILE}";;
+ deepin)
+ echo "disk_size=\"64G\"" >> "${CONF_FILE}"
+ echo "ram=\"4G\"" >> "${CONF_FILE}"
+ ;;
+ freedos)
+ echo "boot=\"legacy\"" >> "${CONF_FILE}"
+ echo "disk_size=\"4G\"" >> "${CONF_FILE}"
+ echo "ram=\"256M\"" >> "${CONF_FILE}"
+ ;;
+ kolibrios)
+ echo "boot=\"legacy\"" >> "${CONF_FILE}"
+ echo "disk_size=\"2G\"" >> "${CONF_FILE}"
+ echo "ram=\"128M\"" >> "${CONF_FILE}"
+ ;;
+ slint)
+ echo "disk_size=\"50G\"" >> "${CONF_FILE}"
+ ;;
+ slitaz)
+ echo "boot=\"legacy\"" >> "${CONF_FILE}"
+ echo "disk_size=\"4G\"" >> "${CONF_FILE}"
+ echo "ram=\"512M\"" >> "${CONF_FILE}"
+ ;;
+ truenas-scale|truenas-core)
+ echo "boot=\"legacy\"" >> "${CONF_FILE}"
+ # the rest is non-functional
+ # echo "bootdrive_size=\"5G\"" >> "${CONF_FILE}" # boot drive
+ # echo "1stdrive_size=\"20G\"" >> "${CONF_FILE}" # for testing
+ # echo "2nddrive_size=\"20G\"" >> "${CONF_FILE}" # again, for testing
+ ;;
+ ubuntu-server)
+ # 22.04+ fails on LVM build if disk size is < 10G
+ # 22.04.1 fails on auto-install if TPM is disabled
+ echo "disk_size=\"10G\"" >> "${CONF_FILE}"
+ echo "ram=\"4G\"" >> "${CONF_FILE}"
+ if [[ "${RELEASE}" == *"22.04"* ]]; then
+ echo "tpm=\"on\"" >> "${CONF_FILE}"
+ fi
+ ;;
+ vanillaos)
+ ## Minimum is 50G for abroot, but a 64GB is allocated to give some headroom
+ echo "disk_size=\"64G\"" >> "${CONF_FILE}"
+ ;;
+ zorin)
+ 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}"
+ # https://github.com/quickemu-project/quickemu/issues/438
+ if [ "${RELEASE}" == "monterey" ]; then
+ echo "cpu_cores=2" >> "${CONF_FILE}"
+ fi
+ ;;
+ proxmox-ve)
+ echo "disk_size=\"20G\"" >> "${CONF_FILE}"
+ echo "ram=\"4G\"" >> "${CONF_FILE}"
+ ;;
+ esac
+
+ if [ "${OS}" == "ubuntu" ] && [[ ${RELEASE} == *"daily"* ]]; then
+ # Minimum to install lobster testing is 18GB but 32GB are allocated for headroom
+ echo "disk_size=\"32G\"" >> "${CONF_FILE}"
+ fi
+
+ if [[ "${OS}" == "windows"* ]]; then
+ echo "disk_size=\"64G\"" >> "${CONF_FILE}"
+ fi
+
+ # Enable TPM for Windows 11 and Windows Server 2022
+ if [[ "${OS}" == "windows" && "${RELEASE}" == "11" || "${OS}" == "windows-server" && "${RELEASE}" == "2022" ]]; then
+ echo "tpm=\"on\"" >> "${CONF_FILE}"
+ echo "secureboot=\"off\"" >> "${CONF_FILE}"
+ fi
+ if [ "${OPERATION}" == ui ]; then
+ echo
+ gum confirm "Run new ${OS} VM?" && quickemu --vm "${CONF_FILE}"
+ fi
+ fi
+ echo -e "\nTo start your ${PRETTY} virtual machine run:"
+ if [ "${OS}" == "slint" ]; then
+ echo -e " quickemu --vm ${CONF_FILE}\nTo start Slint with braille support run:\n quickemu --vm --braille --display sdl ${CONF_FILE}"
+ else
+ echo " quickemu --vm ${CONF_FILE}"
+ fi
+ echo
+ exit 0
+}
+
+if [ "${1}" == -t ] || [ "${1}" == --test ]; then
+ OPERATION='test'
+ shift
+else
+ OPERATION='show'
+fi
+
+if [ -z "${1}" ]; then
+ rm TODO/all ; touch TODO/all
+ for file in actions/*; do
+ OS="${file##*/}"
+ get_releases "${OS}"
+ #test_all "${OS}"
+ write_output "${OS}"
+ done
+elif [ -n "${1}" ]; then
+ test_all "${1}"
+ write_output "${1}"
+fi
diff --git a/actions/alma b/actions/alma
new file mode 100644
index 0000000..ff00b03
--- /dev/null
+++ b/actions/alma
@@ -0,0 +1,23 @@
+# Template file for 'alma'
+OSNAME=alma
+PRETTY=AlmaLinux
+BASEDOF="Fedora RedHat"
+DESCRIPTION="Community distribution, focused on long-term stability, providing a robust production-grade platform. Binary compatible with RHEL®"
+HOMEPAGE="https://almalinux.org/"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 9 8
+}
+
+function editions_() {
+ echo boot minimal dvd
+}
+
+function get_() {
+ local HASH=""
+ local ISO="AlmaLinux-${RELEASE}-latest-x86_64-${EDITION}.iso"
+ local URL="https://repo.almalinux.org/almalinux/${RELEASE}/isos/x86_64"
+ HASH="$(web_pipe "${URL}/CHECKSUM" | grep "(${ISO}" | cut -d' ' -f4)"
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/alpine b/actions/alpine
new file mode 100644
index 0000000..9ccddae
--- /dev/null
+++ b/actions/alpine
@@ -0,0 +1,29 @@
+# Template file for 'alpine'
+OSNAME=alpine
+PRETTY="Alpine Linux"
+BASEDOF="-"
+DESCRIPTION="Security-oriented, lightweight Linux distribution based on musl libc and busybox"
+HOMEPAGE="https://alpinelinux.org/"
+CREDENTIALS="-"
+
+function releases_() {
+ local REL=""
+ local RELS=""
+ RELS=$(web_pipe "https://dl-cdn.alpinelinux.org/alpine/" | grep '"v' | cut -d'"' -f2 | tr -d / | sort -Vr | head -n 10)
+ for REL in ${RELS}; do
+ if web_check "https://dl-cdn.alpinelinux.org/alpine/${REL}/releases/x86_64/"; then
+ echo -n "${REL} "
+ fi
+ done
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://dl-cdn.alpinelinux.org/alpine/${RELEASE}/releases/x86_64"
+ local VERSION=""
+ VERSION=$(web_pipe "${URL}/latest-releases.yaml" | awk '/"Xen"/{found=0} {if(found) print} /"Virtual"/{found=1}' | grep 'version:' | awk '{print $2}')
+ ISO="alpine-virt-${VERSION}-x86_64.iso"
+ HASH=$(web_pipe "${URL}/latest-releases.yaml" | awk '/"Xen"/{found=0} {if(found) print} /"Virtual"/{found=1}' | grep 'sha256:' | awk '{print $2}')
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/android b/actions/android
new file mode 100644
index 0000000..3323184
--- /dev/null
+++ b/actions/android
@@ -0,0 +1,35 @@
+# Template file for 'android'
+OSNAME="android"
+PRETTY="Android x86"
+BASEDOF="-"
+DESCRIPTION="Port Android Open Source Project to x86 platform"
+HOMEPAGE="https://www.android-x86.org"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 9.0 8.1 7.1
+}
+
+function editions_() {
+ echo x86_64 x86
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local JSON_ALL=""
+ local JSON_REL=""
+ local URL="https://mirrors.gigenet.com/OSDN/android-x86"
+ JSON_ALL=$(web_pipe "https://www.fosshub.com/Android-x86-old.html" | grep "var settings =" | cut -d'=' -f2-)
+ JSON_REL=$(echo "${JSON_ALL}" | jq --arg ver "${OS}-${EDITION}-${RELEASE}" 'first(.pool.f[] | select((.n | startswith($ver)) and (.n | endswith(".iso"))))')
+ ISO=$(echo "${JSON_REL}" | jq -r .n)
+ HASH=$(echo "${JSON_REL}" | jq -r .hash.sha256)
+ # Traverse the directories to find the .iso location
+ for DIR in $(web_pipe "${URL}" | grep -o -E '[0-9]{5}' | sort -ur); do
+ if web_pipe "${URL}/${DIR}" | grep "${ISO}" &>/dev/null; then
+ URL="${URL}/${DIR}"
+ break
+ fi
+ done
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/antix b/actions/antix
new file mode 100644
index 0000000..44c9337
--- /dev/null
+++ b/actions/antix
@@ -0,0 +1,34 @@
+# Template file for 'antix'
+OSNAME="antix"
+PRETTY="Antix"
+BASEDOF="Debian"
+DESCRIPTION="Fast, lightweight and easy to install systemd-free linux live CD distribution based on Debian Stable for Intel-AMD x86 compatible systems"
+HOMEPAGE="https://antixlinux.com"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 23.1 23 22 21
+}
+
+function editions_() {
+ echo net-sysv core-sysv base-sysv full-sysv net-runit core-runit base-runit full-runit
+}
+
+function get_() {
+ # antiX uses a different URL and ISO naming for runit editions
+ if [[ "${EDITION}" == *"runit"* ]];then
+ ISO+="-runit"
+ README="README2"
+ case ${RELEASE} in
+ 21) URL+="/runit-bullseye";;
+ *) URL+="/runit-antiX-${RELEASE}";;
+ esac
+ fi
+ case ${EDITION} in
+ base-*) ISO+="_x64-base.iso";;
+ core-*) ISO+="_x64-core.iso";;
+ full-*) ISO+="_x64-full.iso";;
+ net-*) ISO+="-net_x64-net.iso";;
+ esac
+ echo "${URL}/${ISO} ${HASH}"
+}
\ No newline at end of file
diff --git a/actions/archcraft b/actions/archcraft
new file mode 100644
index 0000000..8bf8414
--- /dev/null
+++ b/actions/archcraft
@@ -0,0 +1,19 @@
+# Template file for 'archcraft'
+OSNAME="archcraft"
+PRETTY="Archcraft"
+BASEDOF="Arch"
+HOMEPAGE="https://archcraft.io"
+DESCRIPTION="Yet another minimal Linux distribution, based on Arch Linux"
+CREDENTIALS="-"
+
+function releases_() {
+ echo latest
+}
+
+function get_() {
+ local HASH=""
+ local URL=""
+ URL="https://sourceforge.net/projects/archcraft/files/${RELEASE}/download"
+ URL="$(web_redirect "${URL}" | cut -d? -f1)"
+ echo "${URL} ${HASH}"
+}
diff --git a/actions/archlinux b/actions/archlinux
new file mode 100644
index 0000000..bfbecfd
--- /dev/null
+++ b/actions/archlinux
@@ -0,0 +1,20 @@
+# Template file for ''
+OSNAME="archlinux"
+PRETTY="Arch Linux"
+BASEDOF="-"
+HOMEPAGE="https://archlinux.org"
+DESCRIPTION="Lightweight and flexible Linux® distribution that tries to Keep It Simple"
+CREDENTIALS="-"
+
+function releases_() {
+ echo latest
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://mirror.rackspace.com/archlinux"
+ ISO=$(web_pipe "https://archlinux.org/releng/releases/json/" | jq -r '.releases[0].iso_url')
+ HASH=$(web_pipe "https://archlinux.org/releng/releases/json/" | jq -r '.releases[0].sha256_sum')
+ echo "${URL}${ISO} ${HASH}"
+}
diff --git a/actions/arco b/actions/arco
new file mode 100644
index 0000000..962e3ea
--- /dev/null
+++ b/actions/arco
@@ -0,0 +1,28 @@
+# Template file for 'arcolinux'
+OSNAME="arcolinux"
+PRETTY="Arco Linux"
+BASEDOF="Arch"
+HOMEPAGE="https://arcolinux.com"
+DESCRIPTION="Is all about becoming an expert in linux"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ # breaking change in v24.05
+ # v24.05.1 is the first release with the new naming scheme and too complex to parse old and new so just show the new
+ echo $(web_pipe "https://mirror.accum.se/mirror/arcolinux.info/iso/" | grep -o -E -e "v24.0[5-9].[[:digit:]]{2}" -e "v24.1[0-2].[[:digit:]]{2}" | sort -ru | head -n 5)
+}
+
+function editions_() {
+ echo net plasma pro
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL=""
+ URL="https://mirror.accum.se/mirror/arcolinux.info/iso/${RELEASE}"
+ ISO="arco${EDITION}-${RELEASE}-x86_64.iso"
+ HASH=$(web_pipe "${URL}/${ISO}.sha256" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/artixlinux b/actions/artixlinux
new file mode 100644
index 0000000..3c50570
--- /dev/null
+++ b/actions/artixlinux
@@ -0,0 +1,26 @@
+# Template file for 'artixlinux'
+OSNAME="artixlinux"
+PRETTY="Artix Linux"
+BASEDOF="Arch"
+HOMEPAGE="https://artixlinux.org"
+DESCRIPTION="The Art of Linux. Simple. Fast. Systemd-free"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://mirror1.artixlinux.org/iso/" | grep "artix-" | cut -d'"' -f2 | grep -v sig | cut -d'-' -f 4 | sort -ru | tail -n 1)
+}
+
+function editions_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://mirror1.artixlinux.org/iso/" | grep "artix-" | cut -d'"' -f2 | grep -v sig | cut -d'-' -f2-3 | sort -u)
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://iso.artixlinux.org/iso"
+ ISO="artix-${EDITION}-${RELEASE}-x86_64.iso"
+ HASH=$(web_pipe "${URL}/sha256sums" | grep "${ISO}")
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/athenaos b/actions/athenaos
new file mode 100644
index 0000000..05572c7
--- /dev/null
+++ b/actions/athenaos
@@ -0,0 +1,20 @@
+# Template file for 'athenaos'
+OSNAME="athenaos"
+PRETTY="Athena OS"
+BASEDOF="Arch"
+HOMEPAGE="https://athenaos.org"
+DESCRIPTION="Offer a different experience than the most used pentesting distributions by providing only tools that fit with the user needs and improving the access to hacking resources and learning materials"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://api.github.com/repos/Athena-OS/athena/releases" | grep 'download_url' | grep rolling | cut -d'/' -f8 | sort -u)
+}
+
+function get_() {
+ local HASH=""
+ local URL="https://github.com/Athena-OS/athena/releases/download/${RELEASE}"
+ local ISO="athena-rolling-x86_64.iso"
+ HASH=$(web_pipe "${URL}/${ISO}.sha256" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/batocera b/actions/batocera
new file mode 100644
index 0000000..e578f6f
--- /dev/null
+++ b/actions/batocera
@@ -0,0 +1,20 @@
+# Template file for 'batocera'
+OSNAME="batocera"
+PRETTY="Batocera"
+BASEDOF="-"
+HOMEPAGE="https://batocera.org"
+DESCRIPTION="Retro-gaming distribution with the aim of turning any computer/nano computer into a gaming console during a game or permanently"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://mirrors.o2switch.fr/batocera/x86_64/stable/" | grep ^\' -f 9 | cut -d'/' -f 1)
+ echo -n "${NEW}"
+ MAJ=$(echo "${NEW}" | cut -d'.' -f 1)
+ ARCHIVE="$(web_pipe "https://cdimage.debian.org/cdimage/archive/" | grep folder | grep -v NEVER | cut -d'"' -f 6)"
+ for i in {1..2}; do
+ CUR=$((MAJ - i))
+ OLD=$(grep ^"${CUR}" <<< "${ARCHIVE}" | tail -n 1 | tr -d '/')
+ echo -n " ${OLD}"
+ done
+ echo
+}
+
+function editions_() {
+ echo standard cinnamon gnome kde lxde lxqt mate xfce netinst
+}
+
+function get_() {
+ local DEBCURRENT=""
+ local HASH=""
+ local ISO="debian-live-${RELEASE}-amd64-${EDITION}.iso"
+ local URL="https://cdimage.debian.org/cdimage/archive/${RELEASE}-live/amd64/iso-hybrid"
+ DEBCURRENT=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1)
+ case "${RELEASE}" in
+ "${DEBCURRENT}") URL="https://cdimage.debian.org/debian-cd/${RELEASE}-live/amd64/iso-hybrid";;
+ esac
+ if [ "${EDITION}" == "netinst" ]; then
+ URL="${URL/-live/}"
+ URL="${URL/hybrid/cd}"
+ ISO="${ISO/-live/}"
+ fi
+ HASH=$(web_pipe "${URL}/SHA512SUMS" | grep "${ISO}" | cut -d' ' -f1 | head -n 1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/deepin b/actions/deepin
new file mode 100644
index 0000000..43c065c
--- /dev/null
+++ b/actions/deepin
@@ -0,0 +1,26 @@
+# Template file for 'deepin'
+OSNAME="deepin"
+PRETTY="Deepin"
+BASEDOF="Debian"
+HOMEPAGE="https://www.deepin.org"
+DESCRIPTION="Beautiful UI design, intimate human-computer interaction, and friendly community environment make you feel at home"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://mirrors.kernel.org/deepin-cd/" | grep "href=" | cut -d'"' -f2 | grep -v "\.\." | grep -v nightly | grep -v preview | sed 's|/||g' | tail -n 10 | sort -r)
+}
+
+function get_() {
+ local HASH=""
+ local REV=${RELEASE}
+ # deepin-desktop-community-20.3-amd64.iso
+ local URL="https://cdimage.deepin.com/releases/"${RELEASE}
+ # Correct URL for 23-RC onwards which has architecture directories
+ if [ "${RELEASE}" != "20.9" ]; then
+ URL+="/amd64"
+ fi
+ local ISO="deepin-desktop-community-${REV}-amd64.iso"
+ HASH=$(web_pipe "${URL}/SHA256SUMS" | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/devuan b/actions/devuan
new file mode 100644
index 0000000..572b6ce
--- /dev/null
+++ b/actions/devuan
@@ -0,0 +1,26 @@
+# Template file for 'devuan'
+OSNAME="devuan"
+PRETTY="Devuan"
+BASEDOF="Debian"
+HOMEPAGE="https://www.devuan.org"
+DESCRIPTION="Fork of Debian without systemd that allows users to reclaim control over their system by avoiding unnecessary entanglements and ensuring Init Freedom"
+CREDENTIALS="-"
+
+function releases_() {
+ echo daedalus chimaera beowulf
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://files.devuan.org/devuan_${RELEASE}/desktop-live"
+ local VER=""
+ case ${RELEASE} in
+ beowulf) VER="3.1.1";;
+ chimaera) VER="4.0.3";;
+ daedalus) VER="5.0.0";;
+ esac
+ ISO="devuan_${RELEASE}_${VER}_amd64_desktop-live.iso"
+ HASH=$(web_pipe "${URL}/SHASUMS.txt" | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/dragonflybsd b/actions/dragonflybsd
new file mode 100644
index 0000000..f3102b6
--- /dev/null
+++ b/actions/dragonflybsd
@@ -0,0 +1,22 @@
+# Template file for 'dragonflybsd'
+OSNAME="dragonflybsd"
+PRETTY="DragonFlyBSD"
+BASEDOF="FreeBSD"
+HOMEPAGE="https://www.dragonflybsd.org"
+DESCRIPTION="Provides an opportunity for the BSD base to grow in an entirely different direction from the one taken in the FreeBSD, NetBSD, and OpenBSD series"
+CREDENTIALS="-"
+
+function releases_() {
+ # If you remove "".bz2" from the end of the searched URL, you will get only the current release - currently 6.4.0
+ # We could add a variable so this behaviour is optional/switchable (maybe from option or env)
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://mirror-master.dragonflybsd.org/iso-images/" | grep -E -o '"dfly-x86_64-.*_REL.iso.bz2"' | grep -o -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+')
+}
+
+function get_() {
+ local HASH=""
+ local ISO="dfly-x86_64-${RELEASE}_REL.iso.bz2"
+ local URL="http://mirror-master.dragonflybsd.org/iso-images"
+ HASH=$(web_pipe "${URL}/md5.txt" | grep "(${ISO})" | cut -d' ' -f4)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/dsl b/actions/dsl
new file mode 100644
index 0000000..1525323
--- /dev/null
+++ b/actions/dsl
@@ -0,0 +1,27 @@
+# Template file for 'dsl'
+OSNAME="dsl"
+PRETTY="Damn Small Linux"
+BASEDOF="Antix"
+HOMEPAGE="https://www.damnsmalllinux.org/"
+DESCRIPTION="Goal of DSL is to pack as much usable desktop distribution into an image small enough to fit on a single CD"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 2024.rc7
+}
+
+function editions_() {
+ echo lz4 cdrom
+}
+
+function get_() {
+ local ISO=""
+ local HASH=""
+ local URL="https://www.damnsmalllinux.org/download"
+ case "$EDITION" in
+ lz4) ISO="dsl-${RELEASE}.lz4.iso";;
+ cdrom) ISO="dsl-${RELEASE}.iso";;
+ esac
+ HASH=$(web_pipe "${URL}/${ISO}.md5.txt" | cut -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/easyos b/actions/easyos
new file mode 100644
index 0000000..9e52fd4
--- /dev/null
+++ b/actions/easyos
@@ -0,0 +1,35 @@
+# Template file for 'easyos'
+OSNAME="easyos"
+PRETTY="EasyOS"
+BASEDOF="-"
+HOMEPAGE="https://easyos.org"
+DESCRIPTION="Experimental distribution designed from scratch to support containers"
+CREDENTIALS="-"
+
+function releases_() {
+ local ALL_RELEASES=""
+ local YEAR=""
+ # get the latest 2 years of releases so that when we hit next year we still have the latest 2 years
+ TWO_YEARS=$(web_pipe https://distro.ibiblio.org/easyos/amd64/releases/kirkstone/ | grep -o -E '[[:digit:]]{4}/' | sort -nr | tr -d / | head -n 2 )
+ for YEAR in ${TWO_YEARS} ; do
+ ALL_RELEASES="${ALL_RELEASES} $(web_pipe https://distro.ibiblio.org/easyos/amd64/releases/kirkstone/${YEAR}/ | grep -o -E '[[:digit:]]+(\.[[:digit:]])+/' | tr -d / | sort -nr)"
+ done
+ echo ${ALL_RELEASES}
+}
+
+function get_() {
+ local HASH=""
+ local URL=""
+ local ISO=""
+ local YEAR=""
+ ISO="easy-${RELEASE}-amd64.img"
+ TWO_YEARS=$(web_pipe https://distro.ibiblio.org/easyos/amd64/releases/kirkstone/ | grep -o -E '[[:digit:]]{4}/' | sort -nr | tr -d / | head -n 2 )
+ for YEAR in ${TWO_YEARS} ; do
+ if web_check "https://distro.ibiblio.org/easyos/amd64/releases/kirkstone/${YEAR}/${RELEASE}/" ; then
+ URL="https://distro.ibiblio.org/easyos/amd64/releases/kirkstone/${YEAR}/${RELEASE}"
+ HASH=$(web_pipe "${URL}/md5.sum.txt" | cut -d' ' -f1)
+ break
+ fi
+ done
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/elementary b/actions/elementary
new file mode 100644
index 0000000..c828880
--- /dev/null
+++ b/actions/elementary
@@ -0,0 +1,23 @@
+# Template file for 'elementary'
+OSNAME="elementary"
+PRETTY="elementary OS"
+BASEDOF="Debian Ubuntu"
+HOMEPAGE="https://elementary.io"
+DESCRIPTION="Thoughtful, capable, and ethical replacement for Windows and macOS"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 8.0 7.1 7.0
+}
+
+function get_() {
+ local HASH=""
+ case ${RELEASE} in
+ 7.0) STAMP="20230129rc";;
+ 7.1) STAMP="20230926rc";;
+ 8.0) STAMP="20241122rc";;
+ esac
+ local ISO="elementaryos-${RELEASE}-stable.${STAMP}.iso"
+ local URL="https://ams3.dl.elementary.io/download"
+ echo "${URL}/$(date +%s | base64)/${ISO} ${HASH}"
+}
diff --git a/actions/endeavouros b/actions/endeavouros
new file mode 100644
index 0000000..95780b6
--- /dev/null
+++ b/actions/endeavouros
@@ -0,0 +1,25 @@
+# Template file for 'endeavouros'
+OSNAME="endeavouros"
+PRETTY="EndeavourOS"
+BASEDOF="Arch"
+HOMEPAGE="https://endeavouros.com"
+DESCRIPTION="Provides an Arch experience without the hassle of installing it manually for both x86_64 and ARM systems"
+CREDENTIALS="-"
+
+function releases_() {
+ local ENDEAVOUR_RELEASES=""
+ ENDEAVOUR_RELEASES="$(web_pipe "https://mirror.alpix.eu/endeavouros/iso/" | grep -o '' | sed 's/^.*//' | grep -v 'x86_64' | LC_ALL="en_US.UTF-8" sort -Mr | cut -c 13- | head -n 5 | tr '\n' ' ')"
+ echo "${ENDEAVOUR_RELEASES,,}"
+}
+
+function get_() {
+ local ENDEAVOUR_RELEASES=""
+ local HASH=""
+ local ISO=""
+ local URL="https://mirror.alpix.eu/endeavouros/iso"
+ # Find EndeavourOS releases from mirror, pick one matching release
+ ENDEAVOUR_RELEASES="$(web_pipe "${URL}/" | grep -o '' | sed 's/^.*//' | grep -v 'x86_64')"
+ ISO="$(echo "${ENDEAVOUR_RELEASES}" | grep -i "${RELEASE}").iso"
+ HASH=$(web_pipe "${URL}/${ISO}.sha512sum" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/endless b/actions/endless
new file mode 100644
index 0000000..af1c869
--- /dev/null
+++ b/actions/endless
@@ -0,0 +1,36 @@
+# Template file for 'endless'
+OSNAME="endless"
+PRETTY="Endless OS"
+BASEDOF="Debian"
+HOMEPAGE="https://www.endlessos.org/os"
+DESCRIPTION="Completely Free, User-Friendly Operating System Packed with Educational Tools, Games, and More"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 6.0.4
+}
+
+function editions_() {
+ echo base en fr pt_BR es
+}
+
+function get_() {
+ local HASH="" # No hash - there is a signature in .asc signed by
+ #https://d1anzknqnc1kmb.cloudfront.net/eos-image-keyring.gpg
+ # (4096R: CB50 0F7B C923 3FAD 32B4 E720 9E0C 1250 587A 279C)
+ local FILE_TS=""
+ # https://support.endlessos.org/en/installation/direct-download gives the info but computes the URLS in js
+ # so parsing out the useful info is not happening tonight
+ # Endless edition names are "base" for the small minimal one or the Language for the large full release
+ # The isos are stamped as they are finished so ....
+ case ${EDITION} in
+ base) FILE_TS="241023-183516";;
+ en) FILE_TS="241023-200926";;
+ es) FILE_TS="241023-184649";;
+ fr) FILE_TS="241023-191212";;
+ pt_BR) FILE_TS="241023-191427";;
+ esac
+ URL="https://images-dl.endlessm.com/release/${RELEASE}/eos-amd64-amd64/${EDITION}"
+ ISO="eos-eos${RELEASE:0:3}-amd64-amd64.${FILE_TS}.${EDITION}.iso"
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/fedora b/actions/fedora
new file mode 100644
index 0000000..1718219
--- /dev/null
+++ b/actions/fedora
@@ -0,0 +1,46 @@
+# Template file for 'fedora'
+OSNAME="fedora"
+PRETTY="Fedora"
+BASEDOF="-"
+HOMEPAGE="https://www.fedoraproject.org"
+DESCRIPTION="Innovative platform for hardware, clouds, and containers, built with love by you"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://getfedora.org/releases.json" | jq -r 'map(.version) | unique | .[]' | sed 's/ /_/g' | sort -r)
+}
+
+function editions_() {
+ #shellcheck disable=SC2046,SC2005
+ if [[ -z ${RELEASE} ]]; then
+ echo $(web_pipe "https://getfedora.org/releases.json" | jq -r "map(select(.arch==\"x86_64\" and .variant!=\"Labs\" and .variant!=\"IoT\" and .variant!=\"Container\" and .variant!=\"Cloud\" and .variant!=\"Everything\" and .subvariant!=\"Security\" and .subvariant!=\"Server_KVM\" and .subvariant!=\"SoaS\")) | map(.subvariant) | unique | .[]")
+ else
+ echo $(web_pipe "https://getfedora.org/releases.json" | jq -r "map(select(.arch==\"x86_64\" and .version==\"${RELEASE/_/ }\" and .variant!=\"Labs\" and .variant!=\"IoT\" and .variant!=\"Container\" and .variant!=\"Cloud\" and .variant!=\"Everything\" and .subvariant!=\"Security\" and .subvariant!=\"Server_KVM\" and .subvariant!=\"SoaS\")) | map(.subvariant) | unique | .[]")
+ fi
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local JSON=""
+ local URL=""
+ local VARIANT=""
+ case ${EDITION} in
+ Server|Kinoite|Onyx|Silverblue|Sericea|Workstation) VARIANT="${EDITION}";;
+ *) VARIANT="Spins";;
+ esac
+ # The naming of 41 Beta with a space is problematic so we replaced it with an underscore
+ # but we need to convert it back to a space for the URL search in the JSON
+ #shellcheck disable=SC2086
+ # if RELEASE contains an underscore, replace it with a space
+ if [[ "${RELEASE}" == *"_"* ]]; then
+ RELEASE="${RELEASE/_/ }"
+ fi
+
+ # shellcheck disable=SC2086
+ JSON=$(web_pipe "https://getfedora.org/releases.json" | jq '.[] | select(.variant=="'${VARIANT}'" and .subvariant=="'"${EDITION}"'" and .arch=="x86_64" and .version=="'"${RELEASE}"'" and (.link | endswith(".iso")))')
+ URL=$(echo "${JSON}" | jq -r '.link' | head -n1)
+ HASH=$(echo "${JSON}" | jq -r '.sha256' | head -n1)
+ echo "${URL} ${HASH}"
+}
diff --git a/actions/freebsd b/actions/freebsd
new file mode 100644
index 0000000..672d890
--- /dev/null
+++ b/actions/freebsd
@@ -0,0 +1,24 @@
+# Template file for 'freebsd'
+OSNAME="freebsd"
+PRETTY="FreeBSD"
+BASEDOF="-"
+HOMEPAGE="https://www.freebsd.org"
+DESCRIPTION="Operating system used to power modern servers, desktops, and embedded platforms"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://download.freebsd.org/ftp/releases/amd64/amd64/" | grep -Eo "href=\"[0-9\.]+-RELEASE" | grep -oE '[0-9\.]+' | sort -r)
+}
+
+function editions_() {
+ echo disc1 dvd1
+}
+
+function get_() {
+ local HASH=""
+ local ISO="FreeBSD-${RELEASE}-RELEASE-amd64-${EDITION}.iso"
+ local URL="https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/${RELEASE}"
+ HASH=$(web_pipe "${URL}/CHECKSUM.SHA256-FreeBSD-${RELEASE}-RELEASE-amd64" | grep "${ISO}" | grep -v ".xz" | cut -d' ' -f4)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/freedos b/actions/freedos
new file mode 100644
index 0000000..9508209
--- /dev/null
+++ b/actions/freedos
@@ -0,0 +1,24 @@
+# Template file for 'freedos'
+OSNAME="freedos"
+PRETTY="FreeDOS"
+BASEDOF="-"
+HOMEPAGE="https://freedos.org"
+DESCRIPTION="DOS-compatible operating system that you can use to play classic DOS games, run legacy business software, or develop embedded systems"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 1.3 1.2
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/${RELEASE}/official"
+ case ${RELEASE} in
+ 1.2) ISO="FD12CD.iso"
+ HASH=$(web_pipe "${URL}/FD12.sha" | grep "${ISO}" | cut -d' ' -f1);;
+ 1.3) ISO="FD13-LiveCD.zip"
+ HASH=$(web_pipe "${URL}/verify.txt" | grep -A 8 "sha256sum" | grep "${ISO}" | cut -d' ' -f1);;
+ esac
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/garuda b/actions/garuda
new file mode 100644
index 0000000..17f5e0a
--- /dev/null
+++ b/actions/garuda
@@ -0,0 +1,24 @@
+# Template file for 'garuda'
+OSNAME="garuda"
+PRETTY="Garuda Linux"
+BASEDOF="Arch"
+HOMEPAGE="https://garudalinux.org"
+DESCRIPTION="Feature rich and easy to use Linux distribution"
+CREDENTIALS="-"
+
+function releases_() {
+ echo latest
+}
+
+function editions_() {
+ echo cinnamon dr460nized dr460nized-gaming gnome i3 kde-git kde-lite lxqt-kwin mate qtile sway wayfire xfce
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://iso.builds.garudalinux.org/iso/latest/garuda"
+ ISO=${EDITION}/latest.iso
+ HASH="$(web_pipe "${URL}/${ISO}.sha256" | cut -d' ' -f1)"
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/gentoo b/actions/gentoo
new file mode 100644
index 0000000..aa53736
--- /dev/null
+++ b/actions/gentoo
@@ -0,0 +1,27 @@
+# Template file for 'gentoo'
+OSNAME="gentoo"
+PRETTY="Gentoo"
+BASEDOF="-"
+HOMEPAGE="https://www.gentoo.org"
+DESCRIPTION="Highly flexible, source-based Linux distribution"
+CREDENTIALS="-"
+
+function releases_() {
+ echo latest
+}
+
+function editions_() {
+ echo minimal livegui
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://mirror.bytemark.co.uk/gentoo/releases/amd64/autobuilds"
+ case ${EDITION} in
+ minimal) ISO=$(web_pipe "${URL}/${RELEASE}-iso.txt" | grep install | cut -d' ' -f1);;
+ livegui) ISO=$(web_pipe "${URL}/${RELEASE}-iso.txt" | grep livegui | cut -d' ' -f1);;
+ esac
+ HASH=$(web_pipe "${URL}/${ISO}.DIGESTS" | grep -A 1 SHA512 | grep iso | grep -v CONTENTS | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/ghostbsd b/actions/ghostbsd
new file mode 100644
index 0000000..d31e434
--- /dev/null
+++ b/actions/ghostbsd
@@ -0,0 +1,28 @@
+# Template file for 'ghostbsd'
+OSNAME="ghostbsd"
+PRETTY="GhostBSD"
+BASEDOF="FreeBSD"
+HOMEPAGE="https://www.ghostbsd.org"
+DESCRIPTION="Simple, elegant desktop BSD Operating System"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://download.ghostbsd.org/releases/amd64/" | grep "href" | cut -d'"' -f2 | cut -d'/' -f1 | sort -r | tail -n +3 | head -n 3)
+}
+
+function editions_() {
+ echo mate xfce
+}
+
+function get_() {
+ local ISO=""
+ local URL="https://download.ghostbsd.org/releases/amd64/${RELEASE}"
+ local HASH=""
+ case ${EDITION} in
+ mate) ISO="GhostBSD-${RELEASE}.iso";;
+ xfce) ISO="GhostBSD-${RELEASE}-XFCE.iso";;
+ esac
+ HASH=$(web_pipe "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/gnomeos b/actions/gnomeos
new file mode 100644
index 0000000..c6d31bd
--- /dev/null
+++ b/actions/gnomeos
@@ -0,0 +1,28 @@
+# Template file for 'gnomeos'
+OSNAME="gnomeos"
+PRETTY="GNOME OS"
+BASEDOF="-"
+HOMEPAGE="https://os.gnome.org"
+DESCRIPTION="Alpha nightly bleeding edge distro of GNOME"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo "nightly" $(web_pipe "https://download.gnome.org/gnomeos/" | grep "title=" | awk -F'"' '{print $4}' | tr -d '/' | sort -nr)
+}
+
+function get_() {
+ local HASH=""
+ local ISO="gnome_os_installer_${RELEASE}.iso"
+ local URL="https://download.gnome.org/gnomeos/${RELEASE}"
+ case ${RELEASE} in
+ nightly)
+ ISO="gnome_os_installer.iso"
+ URL="https://os.gnome.org/download/latest";;
+ 46.0) ISO="gnome_os_installer_46.iso";;
+ 3*) ISO="gnome_os_installer.iso";;
+ esac
+ # Process the URL redirections; required for GNOME
+ ISO=$(web_redirect "${URL}/${ISO}")
+ echo "${ISO} ${HASH}"
+}
diff --git a/actions/guix b/actions/guix
new file mode 100644
index 0000000..b962831
--- /dev/null
+++ b/actions/guix
@@ -0,0 +1,18 @@
+# Template file for 'guix'
+OSNAME="guix"
+PRETTY="Guix"
+BASEDOF="-"
+HOMEPAGE="https://guix.gnu.org"
+DESCRIPTION="Distribution of the GNU operating system developed by the GNU Project—which respects the freedom of computer users"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 1.4.0 1.3.0
+}
+
+function get_() {
+ local HASH=""
+ local ISO="guix-system-install-${RELEASE}.x86_64-linux.iso"
+ local URL="https://ftpmirror.gnu.org/gnu/guix/"
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/haiku b/actions/haiku
new file mode 100644
index 0000000..424a422
--- /dev/null
+++ b/actions/haiku
@@ -0,0 +1,22 @@
+# Template file for 'haiku'
+OSNAME="haiku"
+PRETTY="Haiku"
+BASEDOF="-"
+HOMEPAGE="https://www.haiku-os.org"
+DESCRIPTION="Specifically targets personal computing. Inspired by the BeOS, Haiku is fast, simple to use, easy to learn and yet very powerful"
+CREDENTIALS="-"
+
+function releases_() {
+ echo r1beta5 r1beta4 r1beta3
+}
+
+function editions_() {
+ echo x86_64 x86_gcc2h
+}
+
+function get_() {
+ local ISO="haiku-${RELEASE}-${EDITION}-anyboot.iso"
+ local URL="http://mirror.rit.edu/haiku/${RELEASE}"
+ HASH=$(web_pipe "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/kali b/actions/kali
new file mode 100644
index 0000000..0b4203a
--- /dev/null
+++ b/actions/kali
@@ -0,0 +1,20 @@
+# Template file for 'kali'
+OSNAME="kali"
+PRETTY="Kali Linux"
+BASEDOF="Debian"
+HOMEPAGE="https://www.kali.org"
+DESCRIPTION="The most advanced Penetration Testing Distribution"
+CREDENTIALS="-"
+
+function releases_() {
+ echo current kali-weekly
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://cdimage.kali.org/${RELEASE}"
+ ISO=$(web_pipe "${URL}/?C=M;O=D" | grep -o ">kali-linux-.*-installer-amd64.iso" | head -n 1 | cut -c 2-)
+ HASH=$(web_pipe "${URL}/SHA256SUMS" | grep -v torrent | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/kdeneon b/actions/kdeneon
new file mode 100644
index 0000000..4d4d52a
--- /dev/null
+++ b/actions/kdeneon
@@ -0,0 +1,20 @@
+# Template file for 'kdeneon'
+OSNAME="kdeneon"
+PRETTY="KDE Neon"
+BASEDOF="Debian Ubuntu"
+HOMEPAGE="https://neon.kde.org"
+DESCRIPTION="Latest and greatest of KDE community software packaged on a rock-solid base"
+CREDENTIALS="-"
+
+function releases_() {
+ echo user testing unstable developer
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://files.kde.org/neon/images/${RELEASE}/current"
+ ISO=$(web_pipe "${URL}/neon-${RELEASE}-current.sha256sum" | cut -d' ' -f3-)
+ HASH=$(web_pipe "${URL}/neon-${RELEASE}-current.sha256sum" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/kolibrios b/actions/kolibrios
new file mode 100644
index 0000000..80656a4
--- /dev/null
+++ b/actions/kolibrios
@@ -0,0 +1,22 @@
+# Template file for 'kolibrios'
+OSNAME="kolibrios"
+PRETTY="KolibriOS"
+BASEDOF="-"
+HOMEPAGE="http://kolibrios.org"
+DESCRIPTION="Tiny yet incredibly powerful and fast operating system"
+CREDENTIALS="-"
+
+function releases_() {
+ echo latest
+}
+
+function editions_() {
+ echo en_US ru_RU it_IT es_ES
+}
+
+function get_() {
+ local HASH=""
+ local ISO="latest-iso.7z"
+ local URL="http://builds.kolibrios.org/${EDITION}"
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/linuxlite b/actions/linuxlite
new file mode 100644
index 0000000..41b04c4
--- /dev/null
+++ b/actions/linuxlite
@@ -0,0 +1,19 @@
+# Template file for 'linuxlite'
+OSNAME="linuxlite"
+PRETTY="Linux Lite"
+BASEDOF="Debian Ubuntu"
+HOMEPAGE="https://www.linuxliteos.com"
+DESCRIPTION="Your first simple, fast and free stop in the world of Linux"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 6.6 6.4 6.2 6.0
+}
+
+function get_() {
+ local HASH=""
+ local ISO="linux-lite-${RELEASE}-64bit.iso"
+ local URL="https://sourceforge.net/projects/linux-lite/files/${RELEASE}"
+ HASH=$(web_pipe "${URL}/${ISO}.sha256" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/linuxmint b/actions/linuxmint
new file mode 100644
index 0000000..c9c4219
--- /dev/null
+++ b/actions/linuxmint
@@ -0,0 +1,23 @@
+# Template file for 'linuxmint'
+OSNAME="linuxmint"
+PRETTY="Linux Mint"
+BASEDOF="Ubuntu"
+HOMEPAGE="https://linuxmint.com"
+DESCRIPTION="Designed to work out of the box and comes fully equipped with the apps most people need"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 22 21.3 21.2 21.1 21 20.3 20.2
+}
+
+function editions_() {
+ echo cinnamon mate xfce
+}
+
+function get_() {
+ local HASH=""
+ local ISO="linuxmint-${RELEASE}-${EDITION}-64bit.iso"
+ local URL="https://mirror.bytemark.co.uk/linuxmint/stable/${RELEASE}"
+ HASH=$(web_pipe "${URL}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/lmde b/actions/lmde
new file mode 100644
index 0000000..7480a91
--- /dev/null
+++ b/actions/lmde
@@ -0,0 +1,23 @@
+# Template file for 'lmde'
+OSNAME="lmde"
+PRETTY="Linux Mint Debian Edition"
+BASEDOF="Debian"
+HOMEPAGE="https://www.linuxmint.com/download_lmde.php"
+DESCRIPTION="Aims to be as similar as possible to Linux Mint, but without using Ubuntu. The package base is provided by Debian instead"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 6
+}
+
+function editions_() {
+ echo cinnamon
+}
+
+function get_() {
+ local HASH=""
+ local ISO="lmde-${RELEASE}-${EDITION}-64bit.iso"
+ local URL="https://mirror.bytemark.co.uk/linuxmint/debian"
+ HASH=$(web_pipe "${URL}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/maboxlinux b/actions/maboxlinux
new file mode 100644
index 0000000..553ec65
--- /dev/null
+++ b/actions/maboxlinux
@@ -0,0 +1,19 @@
+# Template file for 'maboxlinux'
+OSNAME="maboxlinux"
+PRETTY="Mabox Linux"
+BASEDOF="Manjaro"
+HOMEPAGE="https://maboxlinux.org"
+DESCRIPTION="Lightweight, functional and easy to customize Openbox desktop"
+CREDENTIALS="-"
+
+function releases_() {
+ echo latest
+}
+
+function get_() {
+ local HASH=""
+ local URL=""
+ URL="https://sourceforge.net/projects/mabox-linux/files/${RELEASE}/download"
+ URL="$(web_redirect "${URL}" | cut -d? -f1)"
+ echo "${URL} ${HASH}"
+}
diff --git a/actions/macos b/actions/macos
new file mode 100644
index 0000000..fda4c08
--- /dev/null
+++ b/actions/macos
@@ -0,0 +1,140 @@
+# Template file for 'macos'
+OSNAME="macos"
+PRETTY="MacOS"
+BASEDOF="-"
+HOMEPAGE="https://www.apple.com/macos"
+DESCRIPTION="Work and play on your Mac are even more powerful. Elevate your presence on video calls. Access information in all-new ways. Boost gaming performance."
+CREDENTIALS="-"
+RELEASES="mojave catalina big-sur monterey ventura sonoma"
+
+function releases_() {
+ echo mojave catalina big-sur monterey ventura sonoma
+}
+
+function generate_id() {
+ local macRecoveryID=""
+ local TYPE="${1}"
+ local valid_chars=("0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "A" "B" "C" "D" "E" "F")
+ for ((i=0; i&1 | tr ';' '\n' | awk -F'session=|;' '{print $2}' | grep 1)
+ info=$(curl -s -X POST -H "Host: osrecovery.apple.com" \
+ -H "Connection: close" \
+ -A "InternetRecovery/1.0" \
+ -b "session=\"${appleSession}\"" \
+ -H "Content-Type: text/plain" \
+ -d $'cid='"$(generate_id 16)"$'\nsn='${MLB}$'\nbid='${BOARD_ID}$'\nk='"$(generate_id 64)"$'\nfg='"$(generate_id 64)"$'\nos='${OS_TYPE} \
+ https://osrecovery.apple.com/InstallationPayload/RecoveryImage | tr ' ' '\n')
+ downloadLink=$(echo "$info" | grep 'oscdn' | grep 'dmg')
+ downloadSession=$(echo "$info" | grep 'expires' | grep 'dmg')
+ chunkListLink=$(echo "$info" | grep 'oscdn' | grep 'chunklist')
+ chunkListSession=$(echo "$info" | grep 'expires' | grep 'chunklist')
+
+ if [ "${OPERATION}" == "show" ]; then
+ test_result "${OS}" "${RELEASE}" "" "${downloadLink}" | tee -a "public/tmp_${OS}"
+ exit 0
+ elif [ "${OPERATION}" == "test" ]; then
+ CHECK=$(web_check "${downloadLink}" --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${downloadSession}" && echo "PASS" || echo "FAIL")
+ test_result "${OS}" "${RELEASE}" "" "${downloadLink}" "${CHECK}" | tee -a "public/tmp_${OS}"
+ exit 0
+ elif [ "${OPERATION}" == "download" ]; then
+ echo "Downloading macOS (${RELEASE^}) RecoveryImage"
+ echo " - URL: ${downloadLink}"
+ web_get "${downloadLink}" "${VM_PATH}" RecoveryImage.dmg --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${downloadSession}"
+ web_get "${chunkListLink}" "${VM_PATH}" RecoveryImage.chunklist --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${chunkListSession}"
+ VM_PATH="$(pwd)"
+ else
+ if [ ! -e "${VM_PATH}/RecoveryImage.chunklist" ]; then
+ echo "Downloading macOS (${RELEASE^}) RecoveryImage"
+ echo " - URL: ${downloadLink}"
+ web_get "${downloadLink}" "${VM_PATH}" RecoveryImage.dmg --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${downloadSession}"
+ web_get "${chunkListLink}" "${VM_PATH}" RecoveryImage.chunklist --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${chunkListSession}"
+ if ! "${CHUNKCHECK}" "${VM_PATH}" 2> /dev/null; then
+ echo " - WARNING! Verification failed, continuing anyway"
+ else
+ echo " - Verification passed"
+ fi
+
+ if [ -e "${VM_PATH}/RecoveryImage.dmg" ] && [ ! -e "${VM_PATH}/RecoveryImage.img" ]; then
+ echo " - Converting RecoveryImage.dmg"
+ ${QEMU_IMG} convert "${VM_PATH}/RecoveryImage.dmg" -O raw "${VM_PATH}/RecoveryImage.img" 2>/dev/null
+ fi
+ rm "${VM_PATH}/RecoveryImage.dmg" "${VM_PATH}/RecoveryImage.chunklist"
+ echo " - RecoveryImage.img is ready."
+ fi
+ echo "Downloading OpenCore & UEFI firmware"
+ web_get "https://github.com/kholia/OSX-KVM/raw/master/OpenCore/OpenCore.qcow2" "${VM_PATH}"
+ web_get "https://github.com/kholia/OSX-KVM/raw/master/OVMF_CODE.fd" "${VM_PATH}"
+ if [ ! -e "${VM_PATH}/OVMF_VARS-1920x1080.fd" ]; then
+ web_get "https://github.com/kholia/OSX-KVM/raw/master/OVMF_VARS-1920x1080.fd" "${VM_PATH}"
+ fi
+ fi
+ make_vm_config RecoveryImage.img
+}
diff --git a/actions/mageia b/actions/mageia
new file mode 100644
index 0000000..904940c
--- /dev/null
+++ b/actions/mageia
@@ -0,0 +1,23 @@
+# Template file for 'mageia'
+OSNAME="mageia"
+PRETTY="Mageia"
+BASEDOF="-"
+HOMEPAGE="https://www.mageia.org"
+DESCRIPTION="Stable, secure operating system for desktop & server"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 9 8
+}
+
+function editions_() {
+ echo Plasma GNOME Xfce
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ ISO=$(web_pipe https://www.mageia.org/en/downloads/get/?q="Mageia-${RELEASE}-Live-${EDITION}-x86_64.iso" | grep 'click here'| grep -o 'href=.*\.iso'|cut -d\" -f2)
+ HASH=$(web_pipe "${ISO}.sha512" | cut -d' ' -f1)
+ echo "${ISO} ${HASH}"
+}
diff --git a/actions/manjaro b/actions/manjaro
new file mode 100644
index 0000000..ea857eb
--- /dev/null
+++ b/actions/manjaro
@@ -0,0 +1,45 @@
+# Template file for 'manjaro'
+OSNAME="manjaro"
+PRETTY="Manjaro"
+BASEDOF="Arch"
+HOMEPAGE="https://manjaro.org"
+DESCRIPTION="Versatile, free, and open-source Linux operating system designed with a strong focus on safeguarding user privacy and offering extensive control over hardware"
+CREDENTIALS="-"
+
+function releases_() {
+ echo xfce gnome plasma cinnamon i3 sway
+}
+
+function editions_() {
+ echo full minimal
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local MANIFEST=""
+ local URL=""
+ local TYPE="official"
+ MANIFEST="$(web_pipe https://gitlab.manjaro.org/web/iso-info/-/raw/master/file-info.json)"
+ case "${RELEASE}" in
+ sway)
+ MANIFEST="$(web_pipe https://mirror.manjaro-sway.download/manjaro-sway/release.json)"
+ TYPE="sway"
+ ;;
+ cinnamon|i3) TYPE="community";;
+ esac
+
+ if [ "${EDITION}" == "minimal" ] && [ "${TYPE}" != "sway" ]; then
+ EDITION=".minimal"
+ else
+ EDITION=""
+ fi
+
+ if [ "${RELEASE}" == "sway" ]; then
+ URL=$(echo "${MANIFEST}" | jq -r '.[] | select(.name|test("^manjaro-sway-.*[.]iso$")) | .url')
+ else
+ URL="$(echo "${MANIFEST}" | jq -r ."${TYPE}.${RELEASE}${EDITION}".image)"
+ fi
+ HASH=$(web_pipe "${URL}.sha512" | cut -d' ' -f1)
+ echo "${URL} ${HASH}"
+}
diff --git a/actions/mxlinux b/actions/mxlinux
new file mode 100644
index 0000000..1a02952
--- /dev/null
+++ b/actions/mxlinux
@@ -0,0 +1,29 @@
+# Template file for 'mxlinux'
+OSNAME="mxlinux"
+PRETTY="MX Linux"
+BASEDOF="Debian Antix"
+HOMEPAGE="https://mxlinux.org"
+DESCRIPTION="Designed to combine elegant and efficient desktops with high stability and solid performance"
+CREDENTIALS="-"
+
+function releases_() {
+ # needs header, so not web_pipe:
+ curl -Ils "https://sourceforge.net/projects/mx-linux/files/latest/download" | grep -i 'location:' | cut -d? -f1 | cut -d_ -f1 | cut -d- -f3
+}
+
+function editions_() {
+ echo Xfce KDE Fluxbox
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://sourceforge.net/projects/mx-linux/files/Final/${EDITION}"
+ case ${EDITION} in
+ Xfce) ISO="MX-${RELEASE}_x64.iso";;
+ KDE) ISO="MX-${RELEASE}_KDE_x64.iso";;
+ Fluxbox) ISO="MX-${RELEASE}_fluxbox_x64.iso";;
+ esac
+ HASH=$(web_pipe "${URL}/${ISO}.sha256" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/netboot b/actions/netboot
new file mode 100644
index 0000000..49e119d
--- /dev/null
+++ b/actions/netboot
@@ -0,0 +1,19 @@
+# Template file for 'netboot'
+OSNAME="netboot"
+PRETTY="netboot.xyz"
+BASEDOF="iPXE"
+HOMEPAGE="https://netboot.xyz"
+DESCRIPTION="Your favorite operating systems in one place"
+CREDENTIALS="-"
+
+function releases_() {
+ echo latest
+}
+
+function get_() {
+ local HASH=""
+ local ISO="netboot.xyz.iso"
+ local URL="https://boot.netboot.xyz/ipxe"
+ HASH=$(web_pipe "${URL}/netboot.xyz-sha256-checksums.txt" | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/netbsd b/actions/netbsd
new file mode 100644
index 0000000..5b67d88
--- /dev/null
+++ b/actions/netbsd
@@ -0,0 +1,21 @@
+# Template file for 'netbsd'
+OSNAME="netbsd"
+PRETTY="NetBSD"
+BASEDOF="-"
+HOMEPAGE="https://www.netbsd.org"
+DESCRIPTION="Free, fast, secure, and highly portable Unix-like Open Source operating system. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices"
+CREDENTIALS="-"
+
+function releases_() {
+ # V8 is EOL so filter it out
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://cdn.netbsd.org/pub/NetBSD/iso/" | grep -o -E '"[[:digit:]]+\.[[:digit:]]+/"' | tr -d '"/' | grep -v ^8 | sort -nr | head -n 4)
+}
+
+function get_() {
+ local HASH=""
+ local ISO="NetBSD-${RELEASE}-amd64.iso"
+ local URL="https://cdn.netbsd.org/pub/NetBSD/NetBSD-${RELEASE}/images"
+ HASH=$(web_pipe "${URL}/MD5" | grep "${ISO}" | cut -d' ' -f4)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/nitrux b/actions/nitrux
new file mode 100644
index 0000000..9688909
--- /dev/null
+++ b/actions/nitrux
@@ -0,0 +1,23 @@
+# Template file for 'nitrux'
+OSNAME="nitrux"
+PRETTY="Nitrux"
+BASEDOF="Debian Ubuntu"
+HOMEPAGE="https://nxos.org"
+DESCRIPTION="Powered by Debian, KDE Plasma and Frameworks, and AppImages"
+CREDENTIALS="-"
+
+function releases_() {
+ echo latest
+}
+
+function get_() {
+ local HASH=""
+ local URLBASE=""
+ local URL=""
+ local ISO=""
+ URLBASE="https://sourceforge.net/projects/nitruxos/files/Release"
+ URL="${URLBASE}/ISO"
+ ISO=$(web_pipe 'https://sourceforge.net/projects/nitruxos/rss?path=/Release/ISO' | grep '.iso' | head -n 1 | cut -d']' -f1 | cut -d '/' -f4)
+ HASH=$(web_pipe "${URLBASE}/MD5/${ISONAME}.md5sum" | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/nixos b/actions/nixos
new file mode 100644
index 0000000..2f93c5a
--- /dev/null
+++ b/actions/nixos
@@ -0,0 +1,35 @@
+# Template file for 'nixos'
+OSNAME="nixos"
+PRETTY="NixOS"
+BASEDOF="-"
+HOMEPAGE="https://nixos.org"
+DESCRIPTION="Linux distribution based on Nix package manager, tool that takes a unique approach to package management and system configuration"
+CREDENTIALS="-"
+
+function releases_() {
+ # Lists unstable plus the two most recent releases
+ #shellcheck disable=SC2046
+ echo unstable $(web_pipe "https://nix-channels.s3.amazonaws.com/?delimiter=/" | grep -o -E 'nixos-[[:digit:]]+\.[[:digit:]]+' | cut -d- -f2 | sort -nru | head -n +2)
+}
+
+function editions_() {
+ echo minimal plasma gnome
+}
+
+function get_() {
+ local HASH=""
+ # Adapt the plasma edition according to the NixOS release
+ case "${EDITION}" in
+ plasma)
+ if [ "${RELEASE}" == "23.11" ]; then
+ EDITION+="5"
+ else
+ EDITION+="6"
+ fi
+ ;;
+ esac
+ local ISO="latest-nixos-${EDITION}-x86_64-linux.iso"
+ local URL="https://channels.nixos.org/nixos-${RELEASE}"
+ HASH=$(web_pipe "${URL}/${ISO}.sha256" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/nwg-shell b/actions/nwg-shell
new file mode 100644
index 0000000..81f4f8c
--- /dev/null
+++ b/actions/nwg-shell
@@ -0,0 +1,20 @@
+# Template file for 'nwg-shell'
+OSNAME="nwg-shell"
+PRETTY="nwg-shell"
+BASEDOF="Arch"
+HOMEPAGE="https://nwg-piotr.github.io/nwg-shell"
+DESCRIPTION="Arch Linux ISO with nwg-shell for sway and Hyprland"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://sourceforge.net/projects/nwg-iso/rss?path=/" | grep 'url=' | grep '64.iso' | cut -d'/' -f12 | cut -d'-' -f3)
+}
+
+function get_() {
+ local HASH=""
+ local ISO="nwg-live-${RELEASE}-x86_64.iso"
+ local URL="https://sourceforge.net/projects/nwg-iso/files"
+ HASH="$(web_pipe "https://sourceforge.net/projects/nwg-iso/rss?path=/" | grep "${ISO}" | cut -d'>' -f3 | cut -d'<' -f1 | tail -n 1)"
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/openbsd b/actions/openbsd
new file mode 100644
index 0000000..ac60346
--- /dev/null
+++ b/actions/openbsd
@@ -0,0 +1,20 @@
+# Template file for 'openbsd'
+OSNAME="openbsd"
+PRETTY="OpenBSD"
+BASEDOF="-"
+HOMEPAGE="https://www.openbsd.org"
+DESCRIPTION="Free, multi-platform 4.4BSD-based UNIX-like operating system. Our efforts emphasize portability, standardization, correctness, proactive security and integrated cryptography"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://mirror.leaseweb.com/pub/OpenBSD/" | grep -e '6\.[8-9]/' -e '[7-9]\.' | cut -d\" -f4 | tr -d '/' | sort -r)
+}
+
+function get_() {
+ local HASH=""
+ local ISO="install${RELEASE//\./}.iso"
+ local URL="https://mirror.leaseweb.com/pub/OpenBSD/${RELEASE}/amd64"
+ HASH=$(web_pipe "${URL}/SHA256" | grep "${ISO}" | cut -d' ' -f4)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/openindiana b/actions/openindiana
new file mode 100644
index 0000000..85a4a3e
--- /dev/null
+++ b/actions/openindiana
@@ -0,0 +1,26 @@
+# Template file for 'openindiana'
+OSNAME="openindiana"
+PRETTY="OpenIndiana"
+BASEDOF="Solaris OPenSolaris"
+HOMEPAGE="https://www.openindiana.org"
+DESCRIPTION="Community supported illumos-based operating system"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://dlc.openindiana.org/isos/hipster/" | grep link | cut -d'/' -f 1 | cut -d '"' -f4 | sort -r | tail -n +2 | head -n 5)
+}
+
+function editions_() {
+ echo gui text minimal
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL=""
+ URL="https://dlc.openindiana.org/isos/hipster/${RELEASE}"
+ ISO="OI-hipster-${EDITION}-${RELEASE}.iso"
+ HASH=$(web_pipe "${URL}/${ISO}.sha256" |cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/opensuse b/actions/opensuse
new file mode 100644
index 0000000..6152328
--- /dev/null
+++ b/actions/opensuse
@@ -0,0 +1,36 @@
+# Template file for 'opensuse'
+OSNAME="opensuse"
+PRETTY="openSUSE"
+BASEDOF="-"
+HOMEPAGE="https://www.opensuse.org"
+DESCRIPTION="The makers choice for sysadmins, developers and desktop users"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://download.opensuse.org/distribution/leap/" | grep 'class="name"' | cut -d '/' -f2 | grep -v 42 | sort -r) aeon microos tumbleweed
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL=""
+ if [ "${RELEASE}" == "tumbleweed" ]; then
+ ISO="openSUSE-Tumbleweed-DVD-x86_64-Current.iso"
+ URL="https://download.opensuse.org/tumbleweed/iso"
+ elif [ "${RELEASE}" == "microos" ]; then
+ ISO="openSUSE-MicroOS-DVD-x86_64-Current.iso"
+ URL="https://download.opensuse.org/tumbleweed/iso"
+ elif [ "${RELEASE}" == "aeon" ]; then
+ ISO="opensuse-aeon.x86_64.iso"
+ URL="https://mirrorcache.opensuse.org/tumbleweed/appliances/iso"
+ elif [ "${RELEASE}" == 15.0 ] || [ "${RELEASE}" == 15.1 ]; then
+ ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64.iso"
+ URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso"
+ else
+ ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64-Current.iso"
+ URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso"
+ fi
+ HASH=$(web_pipe "${URL}/${ISO}.sha256" | awk '{if(NR==4) print $0}' | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/oraclelinux b/actions/oraclelinux
new file mode 100644
index 0000000..a26e531
--- /dev/null
+++ b/actions/oraclelinux
@@ -0,0 +1,25 @@
+# Template file for 'oraclelinux'
+OSNAME="oraclelinux"
+PRETTY="Oracle Linux"
+BASEDOF="RedHar"
+HOMEPAGE="https://www.oracle.com/linux"
+DESCRIPTION="Linux with everything required to deploy, optimize, and manage applications on-premises, in the cloud, and at the edge"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 9.3 9.2 9.1 9.0 8.9 8.8 8.7 8.6 8.5 8.4 7.9 7.8 7.7
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local VER_MAJ=${RELEASE::1}
+ local VER_MIN=${RELEASE:2:1}
+ local URL="https://yum.oracle.com/ISOS/OracleLinux/OL${VER_MAJ}/u${VER_MIN}/x86_64"
+ case ${VER_MAJ} in
+ 7) ISO="OracleLinux-R${VER_MAJ}-U${VER_MIN}-Server-x86_64-dvd.iso";;
+ *) ISO="OracleLinux-R${VER_MAJ}-U${VER_MIN}-x86_64-dvd.iso";;
+ esac
+ HASH=$(web_pipe "https://linux.oracle.com/security/gpg/checksum/OracleLinux-R${VER_MAJ}-U${VER_MIN}-Server-x86_64.checksum" | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/parrotsec b/actions/parrotsec
new file mode 100644
index 0000000..07a7ef2
--- /dev/null
+++ b/actions/parrotsec
@@ -0,0 +1,26 @@
+# Template file for 'parrotsec'
+OSNAME="parrotsec"
+PRETTY="Parrot Security"
+BASEDOF="Debian"
+HOMEPAGE="https://www.parrotsec.org"
+DESCRIPTION="Provides a huge arsenal of tools, utilities and libraries that IT and security professionals can use to test and assess the security of their assets in a reliable, compliant and reproducible way"
+CREDENTIALS="parrot:parrot"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://download.parrot.sh/parrot/iso/" | grep -o -E 'href="[[:digit:]]\.[[:digit:]]+' | sort -nr | head -n 3 | cut -d\" -f 2 )
+}
+
+function editions_() {
+ echo home htb security
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL=""
+ ISO="Parrot-${EDITION}-${RELEASE}_amd64.iso"
+ URL="https://download.parrot.sh/parrot/iso/${RELEASE}"
+ HASH="$(web_pipe "${URL}/signed-hashes.txt" | grep "${ISO}" | cut -d' ' -f1)"
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/peppermint b/actions/peppermint
new file mode 100644
index 0000000..3a6d497
--- /dev/null
+++ b/actions/peppermint
@@ -0,0 +1,37 @@
+# Template file for 'peppermint'
+OSNAME="peppermint"
+PRETTY="PeppermintOS"
+BASEDOF="Devuan"
+HOMEPAGE="https://peppermintos.com"
+DESCRIPTION="Provides a user with the opportunity to build the system that best fits their needs. While at the same time providing a functioning OS with minimum hassle out of the box"
+CREDENTIALS="-"
+
+function releases_() {
+ echo latest
+}
+
+function editions_() {
+ echo devuan-xfce devuan-gnome debian-xfce debian-gnome
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://sourceforge.net/projects/peppermintos/files/isos"
+ case ${EDITION} in
+ devuan-xfce)
+ ISO="PeppermintOS-devuan_64_xfce.iso"
+ URL="${URL}/XFCE";;
+ debian-xfce)
+ ISO="PeppermintOS-Debian-64.iso"
+ URL="${URL}/XFCE";;
+ devuan-gnome)
+ ISO="PeppermintOS-devuan_64_gfb.iso"
+ URL="${URL}/Gnome_FlashBack";;
+ debian-gnome)
+ ISO="PeppermintOS-Debian_64_gfb.iso"
+ URL="${URL}/Gnome_FlashBack";;
+ esac
+ HASH=$(web_pipe "${URL}/${ISO}-sha512.checksum" | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/popos b/actions/popos
new file mode 100644
index 0000000..1fe71f9
--- /dev/null
+++ b/actions/popos
@@ -0,0 +1,24 @@
+# Template file for 'popos'
+OSNAME="popos"
+PRETTY="Pop!_OS"
+BASEDOF="Ubuntu"
+HOMEPAGE="https://pop.system76.com"
+DESCRIPTION="Operating system for STEM and creative professionals who use their computer as a tool to discover and create"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 22.04 20.04
+}
+
+function editions_() {
+ echo intel nvidia
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL=""
+ URL=$(web_pipe "https://api.pop-os.org/builds/${RELEASE}/${EDITION}" | jq -r .url)
+ HASH=$(web_pipe "https://api.pop-os.org/builds/${RELEASE}/${EDITION}" | jq -r .sha_sum)
+ echo "${URL} ${HASH}"
+}
diff --git a/actions/porteus b/actions/porteus
new file mode 100644
index 0000000..ea12f33
--- /dev/null
+++ b/actions/porteus
@@ -0,0 +1,26 @@
+# Template file for 'porteus'
+OSNAME="porteus"
+PRETTY="Porteus"
+BASEDOF="Slackware"
+HOMEPAGE="http://www.porteus.org"
+DESCRIPTION="Complete linux operating system that is optimized to run from CD, USB flash drive, hard drive, or other bootable storage media"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 5.01
+}
+
+function editions_() {
+ echo cinnamon gnome kde lxde lxqt mate openbox xfce
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL=""
+ edition="${EDITION~~}"
+ ISO="Porteus-${edition}-v${RELEASE}-x86_64.iso"
+ URL="https://mirrors.dotsrc.org/porteus/x86_64/Porteus-v${RELEASE}"
+ HASH=$(web_pipe "${URL}/sha256sums.txt" | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/primtux b/actions/primtux
new file mode 100644
index 0000000..ddf830c
--- /dev/null
+++ b/actions/primtux
@@ -0,0 +1,25 @@
+# Template file for 'primtux'
+OSNAME="primtux"
+PRETTY="PrimTux"
+BASEDOF="Ubuntu"
+HOMEPAGE="https://primtux.fr"
+DESCRIPTION="Complete and customizable GNU/Linux operating system intended for primary school students and suitable even for older hardware"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 7
+}
+
+function editions_() {
+ echo 2022-10
+}
+
+function get_() {
+ local HASH=""
+ local URL=""
+ local ISO=""
+ ISO="PrimTux${RELEASE}-amd64-${EDITION}.iso"
+ URL="https://sourceforge.net/projects/primtux/files/Distribution"
+ HASH=$(web_pipe "${URL}/${ISO}.md5" | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/proxmox-ve b/actions/proxmox-ve
new file mode 100644
index 0000000..6e9acf2
--- /dev/null
+++ b/actions/proxmox-ve
@@ -0,0 +1,22 @@
+# Template file for 'proxmox-ve'
+OSNAME="proxmox-ve"
+PRETTY="Proxmox VE"
+BASEDOF="Debian"
+HOMEPAGE="https://proxmox.com/en/proxmox-virtual-environment"
+DESCRIPTION="Proxmox Virtual Environment is a complete, open-source server management platform for enterprise virtualization"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe https://enterprise.proxmox.com/iso/ | grep proxmox-ve | grep -E -o '[0-9]+\.[0-9]+-[0-9]\.iso' | uniq | sort -ru | cut -d'.' -f 1-2)
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL=""
+ ISO="proxmox-ve_${RELEASE}.iso"
+ URL="https://enterprise.proxmox.com/iso"
+ HASH=$(web_pipe "${URL}/SHA256SUMS" | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/pureos b/actions/pureos
new file mode 100644
index 0000000..9712608
--- /dev/null
+++ b/actions/pureos
@@ -0,0 +1,33 @@
+# Template file for 'pureos'
+OSNAME="pureos"
+PRETTY="PureOS"
+BASEDOF="Debian"
+HOMEPAGE="https://www.pureos.net"
+DESCRIPTION="Fully free/libre and open source GNU/Linux operating system, endorsed by the Free Software Foundation"
+CREDENTIALS="-"
+
+function releases_() {
+ web_pipe "https://www.pureos.net/download/" | grep -m 1 "downloads.puri" | cut -d '"' -f 2 | cut -d '-' -f 4
+}
+
+function editions_() {
+ echo gnome plasma
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL=""
+ local PureName=
+ PureName="$(web_pipe "https://www.pureos.net/download/" | grep -m 1 "downloads.puri" | cut -d '/' -f 4)"
+ local PureDate=
+ PureDate="$(web_pipe "https://www.pureos.net/download/" | grep -m 1 "downloads.puri" | cut -d '/' -f 6)"
+ local PureDateSquashed="${PureDate//'-'/}"
+ edition="${EDITION,,}"
+ URL="https://downloads.puri.sm/${PureName}/${edition}/${PureDate}"
+ ISO="pureos-${RELEASE}-${edition}-live-${PureDateSquashed}_amd64.iso"
+ local IsoTrimmed=
+ IsoTrimmed="${ISO%.*}"
+ HASH="$(web_pipe "${URL}/${IsoTrimmed}.checksums_sha256.txt" | grep -m 1 '.iso' | cut -d '.' -f 1)"
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/reactos b/actions/reactos
new file mode 100644
index 0000000..f860b9d
--- /dev/null
+++ b/actions/reactos
@@ -0,0 +1,18 @@
+# Template file for 'reactos'
+OSNAME="reactos"
+PRETTY="ReactOS"
+BASEDOF="-"
+HOMEPAGE="https://reactos.org"
+DESCRIPTION="Imagine running your favorite Windows applications and drivers in an open-source environment you can trust"
+CREDENTIALS="-"
+
+function releases_() {
+ echo latest
+}
+
+function get_() {
+ local HASH=""
+ local URL=""
+ URL="$(web_redirect "https://sourceforge.net/projects/reactos/files/latest/download")"
+ echo "${URL} ${HASH}"
+}
diff --git a/actions/rebornos b/actions/rebornos
new file mode 100644
index 0000000..ddc8c0d
--- /dev/null
+++ b/actions/rebornos
@@ -0,0 +1,19 @@
+# Template file for 'rebornos'
+OSNAME="rebornos"
+PRETTY="RebornOS"
+BASEDOF="Arch"
+HOMEPAGE="https://rebornos.org"
+DESCRIPTION="Aiming to make Arch Linux as user friendly as possible by providing interface solutions to things you normally have to do in a terminal"
+CREDENTIALS="-"
+
+function releases_() {
+ echo latest
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ ISO=$(web_pipe "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json" | jq -r ".url")
+ HASH=$(web_pipe "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json" | jq -r ".md5")
+ echo "${ISO} ${HASH}"
+}
diff --git a/actions/rockulinux b/actions/rockulinux
new file mode 100644
index 0000000..6f703b6
--- /dev/null
+++ b/actions/rockulinux
@@ -0,0 +1,28 @@
+# Template file for 'rockylinux'
+OSNAME="rockylinux"
+PRETTY="Rocky Linux"
+BASEDOF="RedHat"
+HOMEPAGE="https://rockylinux.org"
+DESCRIPTION="Open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "http://dl.rockylinux.org/vault/rocky/" | grep "^.*)-Release-.*"; "\(.e)")' | sort -u)
+}
+
+function get_() {
+ local HASH=""
+ local ISO="Solus-${EDITION}-Release-${RELEASE}.iso"
+ local URL="https://downloads.getsol.us/isos/${RELEASE}"
+ HASH=$(web_pipe "${URL}/${ISO}.sha256sum" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/sparkylinux b/actions/sparkylinux
new file mode 100644
index 0000000..16d020e
--- /dev/null
+++ b/actions/sparkylinux
@@ -0,0 +1,35 @@
+# Template file for 'sparkylinux'
+OSNAME="sparkylinux"
+PRETTY="SparkyLinux"
+BASEDOF="Debian"
+HOMEPAGE="https://sparkylinux.org"
+DESCRIPTION="Fast, lightweight and fully customizable operating system which offers several versions for different use cases"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://sparkylinux.org/download/stable/" | grep -E -o "sparkylinux-.*\.iso\"" | cut -d'-' -f2 | sort -ru)
+}
+
+function editions_() {
+ #shellcheck disable=SC2046,SC2005
+ if [ -z "${RELEASE}" ]; then
+ echo $(web_pipe "https://sparkylinux.org/download/stable/" | grep -E -o "sparkylinux-.*\.iso\"" | cut -d'-' -f4 | cut -d'.' -f1 | sort -u)
+ else
+ echo $(web_pipe "https://sparkylinux.org/download/stable/" | grep -E -o "sparkylinux-${RELEASE}-.*\.iso\"" | cut -d'-' -f4 | cut -d'.' -f1 | sort -u)
+ fi
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL=""
+ ISO="sparkylinux-${RELEASE}-x86_64-${EDITION}.iso"
+ case ${EDITION} in
+ minimalcli) URL="https://sourceforge.net/projects/sparkylinux/files/cli";;
+ minimalgui) URL="https://sourceforge.net/projects/sparkylinux/files/base";;
+ *) URL="https://sourceforge.net/projects/sparkylinux/files/${EDITION}";;
+ esac
+ HASH=$(web_pipe "${URL}/${ISO}.allsums.txt" | head -n 2 | grep 'iso' | cut -d' ' -f1)
+ echo "${URL}/${ISO}" "${HASH}"
+}
diff --git a/actions/spirallinux b/actions/spirallinux
new file mode 100644
index 0000000..7adecd2
--- /dev/null
+++ b/actions/spirallinux
@@ -0,0 +1,23 @@
+# Template file for 'spirallinux'
+OSNAME="spirallinux"
+PRETTY="Spiral Linux"
+BASEDOF="Debian"
+HOMEPAGE="https://spirallinux.github.io"
+DESCRIPTION="Selection of Linux spins built from Debian GNU/Linux, with a focus on simplicity and out-of-the-box usability across all the major desktop environments"
+CREDENTIALS="-"
+
+function releases_() {
+ echo latest
+}
+
+function editions_() {
+ echo Plasma XFCE Mate LXQt Gnome Budgie Cinnamon Builder
+}
+
+function get_() {
+ local HASH=""
+ local ISO="SpiralLinux_${EDITION}_12.231005_x86-64.iso"
+ local URL="https://sourceforge.net/projects/spirallinux/files/12.231005"
+ HASH=$(web_pipe 'https://sourceforge.net/projects/spirallinux/rss?path=/' | grep "${ISO}" | grep 'md5' | cut -d'<' -f3 | cut -d'>' -f2)
+ echo "${URL}/${ISO}" "${HASH}"
+}
diff --git a/actions/tails b/actions/tails
new file mode 100644
index 0000000..fc38c68
--- /dev/null
+++ b/actions/tails
@@ -0,0 +1,21 @@
+# Template file for 'tails'
+OSNAME="tails"
+PRETTY="Tails"
+BASEDOF="Debian"
+HOMEPAGE="https://tails.net"
+DESCRIPTION="Portable operating system that protects against surveillance and censorship"
+CREDENTIALS="-"
+
+function releases_() {
+ echo stable
+}
+
+function get_() {
+ local JSON=""
+ local HASH=""
+ local URL=""
+ JSON="$(web_pipe "https://tails.boum.org/install/v2/Tails/amd64/${RELEASE}/latest.json")"
+ URL=$(echo "${JSON}" | jq -r '.installations[0]."installation-paths"[]|select(.type=="iso")|."target-files"[0].url')
+ HASH=$(echo "${JSON}" | jq -r '.installations[0]."installation-paths"[]|select(.type=="iso")|."target-files"[0].sha256')
+ echo "${URL} ${HASH}"
+}
diff --git a/actions/tinycore b/actions/tinycore
new file mode 100644
index 0000000..662a3b5
--- /dev/null
+++ b/actions/tinycore
@@ -0,0 +1,27 @@
+# Template file for 'tinycore'
+OSNAME="tinycore"
+PRETTY="Tiny Core Linux"
+BASEDOF="-"
+HOMEPAGE="http://www.tinycorelinux.net"
+DESCRIPTION="Highly modular based system with community build extensions"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 15 14
+}
+
+function editions_() {
+ echo Core TinyCore CorePlus CorePure64 TinyCorePure64
+}
+
+function get_() {
+ local ARCH="x86"
+ local HASH=""
+ local ISO="${EDITION}-${RELEASE}.0.iso"
+ case "${EDITION}" in
+ *Pure*) ARCH+="_64";;
+ esac
+ local URL="http://www.tinycorelinux.net/${RELEASE}.x/${ARCH}/release"
+ HASH=$(web_pipe "${URL}/${ISO}.md5.txt" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/trisquel b/actions/trisquel
new file mode 100644
index 0000000..8989ee4
--- /dev/null
+++ b/actions/trisquel
@@ -0,0 +1,29 @@
+# Template file for 'trisquel'
+OSNAME="trisquel"
+PRETTY="Trisquel"
+BASEDOF="Ubuntu"
+HOMEPAGE="https://trisquel.info"
+DESCRIPTION="Fully free operating system for home users, small enterprises and educational centers"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 11.0 10.0.1
+}
+
+function editions_() {
+ echo mate lxde kde sugar
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://mirrors.ocf.berkeley.edu/trisquel-images"
+ case ${EDITION} in
+ mate) ISO="trisquel_${RELEASE}_amd64.iso";;
+ lxde) ISO="trisquel-mini_${RELEASE}_amd64.iso";;
+ kde) ISO="triskel_${RELEASE}_amd64.iso";;
+ sugar) ISO="trisquel-sugar_${RELEASE}_amd64.iso";;
+ esac
+ HASH=$(web_pipe "${URL}/${ISO}.sha1" | grep "${ISO}" | cut -d' ' -f1)
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/truenas-core b/actions/truenas-core
new file mode 100644
index 0000000..172bed0
--- /dev/null
+++ b/actions/truenas-core
@@ -0,0 +1,20 @@
+# Template file for 'truenas-core'
+OSNAME="truenas-core"
+PRETTY="TrueNAS Core"
+BASEDOF="FreeBSD"
+HOMEPAGE="https://www.truenas.com/truenas-core"
+DESCRIPTION="World’s most popular storage OS because it gives you the power to build your own professional-grade storage system to use in a variety of data-intensive applications without any software costs"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 13
+}
+
+function get_() {
+ local ISO=""
+ local URL=""
+ local DLINFO="https://www.truenas.com/download-truenas-core/"
+ URL=$(web_pipe "${DLINFO}" | grep -o "\"https://.*${RELEASE}.*\.iso\"" | cut -d'"' -f 2)
+ HASH=$(web_pipe "${URL}".sha256 | cut -d' ' -f1)
+ echo "${URL} ${HASH}"
+}
diff --git a/actions/truenas-scale b/actions/truenas-scale
new file mode 100644
index 0000000..996a248
--- /dev/null
+++ b/actions/truenas-scale
@@ -0,0 +1,21 @@
+# Template file for 'truenas-scale'
+OSNAME="truenas-scale"
+PRETTY="TrueNAS Scale"
+BASEDOF="Debian"
+HOMEPAGE="https://www.truenas.com/truenas-scale"
+DESCRIPTION="Open Source Hyperconverged Infrastructure (HCI) solution. In addition to powerful scale-out storage capabilities, SCALE adds Linux Containers and VMs (KVM) so apps run closer to data"
+CREDENTIALS="-"
+
+function releases_() {
+ echo 24
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL=""
+ local DLINFO="https://www.truenas.com/download-truenas-scale/"
+ URL=$(web_pipe "${DLINFO}" | grep -o "\"https://.*${RELEASE}.*\.iso\"" | cut -d'"' -f 2)
+ HASH=$(web_pipe "${URL}.sha256" | cut -d' ' -f1)
+ echo "${URL} ${HASH}"
+}
diff --git a/actions/tuxedo-os b/actions/tuxedo-os
new file mode 100644
index 0000000..a36aa74
--- /dev/null
+++ b/actions/tuxedo-os
@@ -0,0 +1,20 @@
+# Template file for 'tuxedo-os'
+OSNAME="tuxedo-os"
+PRETTY="Tuxedo OS"
+BASEDOF="Ubuntu"
+HOMEPAGE="https://www.tuxedocomputers.com"
+DESCRIPTION="KDE Ubuntu LTS designed to go with their Linux hardware"
+CREDENTIALS="-"
+
+function releases_() {
+ echo current
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local URL="https://os.tuxedocomputers.com"
+ ISO="$(web_pipe "https://os.tuxedocomputers.com/" | grep -m 1 current.iso | cut -d '=' -f 4 | cut -d '"' -f 2)"
+ HASH="$(web_pipe "https://os.tuxedocomputers.com/checksums/${ISO}.sha256" | cut -d ' ' -f 1)"
+ echo "${URL}/${ISO} ${HASH}"
+}
diff --git a/actions/ubuntu b/actions/ubuntu
new file mode 100644
index 0000000..d03b707
--- /dev/null
+++ b/actions/ubuntu
@@ -0,0 +1,162 @@
+# Template file for 'ubuntu'
+case "${OS}" in
+ ubuntu)
+ OSNAME="ubuntu"
+ PRETTY="Ubuntu"
+ BASEDOF="Debian"
+ HOMEPAGE="https://ubuntu.com"
+ DESCRIPTION="Complete desktop Linux operating system, freely available with both community and professional support"
+ CREDENTIALS="-";;
+ edubuntu)
+ # Template file for 'edubuntu'
+ OSNAME="edubuntu"
+ PRETTY="Edubuntu"
+ BASEDOF="Ubuntu"
+ HOMEPAGE="https://www.edubuntu.org"
+ DESCRIPTION="Stable, secure and privacy concious option for schools"
+ CREDENTIALS="-";;
+ kubuntu)
+ # Template file for 'kubuntu'
+ OSNAME="kubuntu"
+ PRETTY="Kubuntu"
+ BASEDOF="Ubuntu"
+ HOMEPAGE="https://kubuntu.org"
+ DESCRIPTION="Free, complete, and open-source alternative to Microsoft Windows and Mac OS X which contains everything you need to work, play, or share"
+ CREDENTIALS="-";;
+ lubuntu)
+ # Template file for 'lubuntu'
+ OSNAME="lubuntu"
+ PRETTY="Lubuntu"
+ BASEDOF="Ubuntu"
+ HOMEPAGE="https://lubuntu.me"
+ DESCRIPTION="Complete Operating System that ships the essential apps and services for daily use: office applications, PDF reader, image editor, music and video players, etc. Using lightwave lxde/lxqt"
+ CREDENTIALS="-";;
+ xubuntu)
+ # Template file for 'xubuntu'
+ OSNAME="xubuntu"
+ PRETTY="Xubuntu"
+ BASEDOF="Ubuntu"
+ HOMEPAGE="https://xubuntu.org"
+ DESCRIPTION="Elegant and easy to use operating system. Xubuntu comes with Xfce, which is a stable, light and configurable desktop environment"
+ CREDENTIALS="-";;
+ ubuntu-budgie)
+ # Template file for 'ubuntu-budgie'
+ OSNAME="ubuntu-budgie"
+ PRETTY="Ubuntu Budgie"
+ BASEDOF="Ubuntu"
+ HOMEPAGE="https://ubuntubudgie.org"
+ DESCRIPTION="Community developed distribution, integrating the Budgie Desktop Environment with Ubuntu at its core"
+ CREDENTIALS="-";;
+ ubuntu-cinnamon)
+ # Template file for 'ubuntu-cinnamon'
+ OSNAME="ubuntu-cinnamon"
+ PRETTY="Ubuntu Cinnamon"
+ BASEDOF="Ubuntu"
+ HOMEPAGE="https://ubuntucinnamon.org"
+ DESCRIPTION="Community-driven, featuring Linux Mint’s Cinnamon Desktop with Ubuntu at the core, packed fast and full of features, here is the most traditionally modern desktop you will ever love"
+ CREDENTIALS="-";;
+ ubuntu-kylin)
+ # Template file for 'ubuntu-kylin'
+ OSNAME="ubuntu-kylin"
+ PRETTY="Ubuntu Kylin"
+ BASEDOF="Ubuntu"
+ HOMEPAGE="https://ubuntukylin.com"
+ DESCRIPTION="Universal desktop operating system for personal computers, laptops, and embedded devices. It is dedicated to bringing a smarter user experience to users all over the world"
+ CREDENTIALS="-";;
+ ubuntu-mate)
+ # Template file for 'ubuntu-mate'
+ OSNAME="ubuntu-mate"
+ PRETTY="Ubuntu Mate"
+ BASEDOF="Ubuntu"
+ HOMEPAGE="https://ubuntu-mate.org"
+ DESCRIPTION="Stable, easy-to-use operating system with a configurable desktop environment. It is ideal for those who want the most out of their computers and prefer a traditional desktop metaphor. Using Mate desktop"
+ CREDENTIALS="-";;
+ ubuntu-unity)
+ # Template file for 'ubuntu-unity'
+ OSNAME="ubuntu-unity"
+ PRETTY="Ubuntu Unity"
+ BASEDOF="Ubuntu"
+ HOMEPAGE="https://ubuntuunity.org"
+ DESCRIPTION="Flavor of Ubuntu featuring the Unity7 desktop environment (the default desktop environment used by Ubuntu from 2010-2017)"
+ CREDENTIALS="-";;
+ ubuntustudio)
+ # Template file for 'ubuntustudio'
+ OSNAME="ubuntustudio"
+ PRETTY="UbuntuStudio"
+ BASEDOF="Ubuntu"
+ HOMEPAGE="https://ubuntustudio.org"
+ DESCRIPTION="Comes preinstalled with a selection of the most common free multimedia applications available, and is configured for best performance for various purposes: Audio, Graphics, Video, Photography and Publishing"
+ CREDENTIALS="-";;
+esac
+
+function releases_() {
+ local VERSION_DATA=""
+ local SUPPORTED_VERSIONS=()
+ VERSION_DATA="$(IFS=$'\n' web_pipe https://api.launchpad.net/devel/ubuntu/series | jq -r '.entries[]')"
+ # shellcheck disable=SC2207
+ SUPPORTED_VERSIONS=($(IFS=$'\n' jq -r 'select(.status=="Supported" or .status=="Current Stable Release") | .version' <<<"${VERSION_DATA}" | sort))
+ case "${OS}" in
+ ubuntu)
+ echo "${SUPPORTED_VERSIONS[@]}" daily-live;;
+ kubuntu|lubuntu|ubuntukylin|ubuntu-mate|ubuntustudio|xubuntu)
+ # after 16.04
+ echo "${SUPPORTED_VERSIONS[@]:1}" daily-live;;
+ ubuntu-budgie)
+ # after 18.04
+ echo "${SUPPORTED_VERSIONS[@]:2}" daily-live;;
+ edubuntu|ubuntu-unity|ubuntucinnamon)
+ # after 23.10
+ echo "${SUPPORTED_VERSIONS[@]:5}" daily-live;;
+ esac
+}
+
+function get_() {
+ local ISO=""
+ local HASH=""
+ local URL=""
+ local DATA=""
+
+ if [[ "${RELEASE}" == "daily"* ]] && [ "${OS}" == "ubuntustudio" ]; then
+ # Ubuntu Studio daily-live images are in the dvd directory
+ RELEASE="dvd"
+ fi
+ if [[ "${RELEASE}" == "jammy-daily" ]]; then
+ if [[ "${OS}" == "ubuntustudio" ]]; then
+ URL="https://cdimage.ubuntu.com/${OS}/jammy/dvd/current"
+ else
+ URL="https://cdimage.ubuntu.com/${OS}/jammy/daily-live/current"
+ fi
+ VM_PATH="${OS}-jammy-live"
+ elif [[ "${RELEASE}" == "daily"* ]] || [ "${RELEASE}" == "dvd" ]; then
+ URL="https://cdimage.ubuntu.com/${OS}/${RELEASE}/current"
+ VM_PATH="${OS}-${RELEASE}"
+ elif [ "${OS}" == "ubuntu" ]; then
+ URL="https://releases.ubuntu.com/${RELEASE}"
+ else
+ URL="https://cdimage.ubuntu.com/${OS}/releases/${RELEASE}/release"
+ fi
+ if web_check "${URL}/SHA256SUMS"; then
+ DATA=$(web_pipe "${URL}/SHA256SUMS" | grep 'desktop\|dvd\|install' | grep amd64 | grep iso | grep -v "+mac")
+ ISO=$(cut -d'*' -f2 <<<"${DATA}" | sed '1q;d')
+ HASH=$(cut -d' ' -f1 <<<"${DATA}" | sed '1q;d')
+ else
+ DATA=$(web_pipe "${URL}/MD5SUMS" | grep 'desktop\|dvd\|install' | grep amd64 | grep iso | grep -v "+mac")
+ ISO=$(cut -d'*' -f2 <<<"${DATA}")
+ HASH=$(cut -d' ' -f1 <<<"${DATA}")
+ fi
+ if [ -z "${ISO}" ] || [ -z "${HASH}" ]; then
+ echo "${PRETTY} ${RELEASE} is currently unavailable. Please select other OS/Release combination"
+ exit 1
+ fi
+ if [[ "${RELEASE}" == "daily"* ]] || [ "${RELEASE}" == "dvd" ]; then
+ zsync_get "${URL}/${ISO}" "${VM_PATH}" "${OS}-devel.iso"
+ make_vm_config "${OS}-devel.iso"
+ elif [[ "${RELEASE}" == "jammy-daily" ]]; then
+ zsync_get "${URL}/${ISO}" "${VM_PATH}" "${OS}-jammy-live.iso"
+ make_vm_config "${OS}-jammy-live.iso"
+ else
+ web_get "${URL}/${ISO}" "${VM_PATH}"
+ check_hash "${ISO}" "${HASH}"
+ make_vm_config "${ISO}"
+ fi
+}
diff --git a/actions/ubuntu-server b/actions/ubuntu-server
new file mode 100644
index 0000000..a6dfe51
--- /dev/null
+++ b/actions/ubuntu-server
@@ -0,0 +1,49 @@
+# Template file for 'ubuntu-server'
+OSNAME="ubuntu-server"
+PRETTY="Ubuntu Server"
+BASEDOF="Debian"
+HOMEPAGE="https://ubuntu.com/server"
+DESCRIPTION="Brings economic and technical scalability to your datacentre, public or private. Whether you want to deploy an OpenStack cloud, a Kubernetes cluster or a 50,000-node render farm, Ubuntu Server delivers the best value scale-out performance available"
+CREDENTIALS="-"
+
+function releases_() {
+ local ALL_VERSIONS=()
+ # shellcheck disable=SC2207
+ ALL_VERSIONS=($(IFS=$'\n' web_pipe http://releases.ubuntu.com/streams/v1/com.ubuntu.releases:ubuntu-server.json | jq -r '.products[] | select(.arch=="amd64") | .version' | sort -rV))
+ echo daily-live "${ALL_VERSIONS[@]}"
+}
+
+function get_() {
+ local HASH=""
+ local ISO=""
+ local NAME="live-server"
+ local URL=""
+
+ if [[ "${RELEASE}" == "daily"* ]]; then
+ URL="https://cdimage.ubuntu.com/${OS}/${RELEASE}/current"
+ else
+ URL="https://releases.ubuntu.com/${RELEASE}"
+ fi
+
+ case "${RELEASE}" in
+ 14*|16*) NAME="server";;
+ esac
+
+ if web_check "${URL}/SHA256SUMS"; then
+ DATA=$(web_pipe "${URL}/SHA256SUMS" | grep "${NAME}" | grep amd64 | grep iso)
+ ISO=$(cut -d'*' -f2 <<<"${DATA}")
+ HASH=$(cut -d' ' -f1 <<<"${DATA}")
+ else
+ DATA=$(web_pipe "${URL}/MD5SUMS" | grep "${NAME}" | grep amd64 | grep iso)
+ ISO=$(cut -d' ' -f3 <<<"${DATA}")
+ HASH=$(cut -d' ' -f1 <<<"${DATA}")
+ fi
+ if [[ "${RELEASE}" == "daily"* ]] || [ "${RELEASE}" == "dvd" ]; then
+ zsync_get "${URL}/${ISO}" "${VM_PATH}" "${OS}-devel.iso"
+ make_vm_config "${OS}-devel.iso"
+ else
+ web_get "${URL}/${ISO}" "${VM_PATH}"
+ check_hash "${ISO}" "${HASH}"
+ make_vm_config "${ISO}"
+ fi
+}
diff --git a/actions/vanillaos b/actions/vanillaos
new file mode 100644
index 0000000..1f4d385
--- /dev/null
+++ b/actions/vanillaos
@@ -0,0 +1,22 @@
+# Template file for 'vanillaos'
+OSNAME="vanillaos"
+PRETTY="Vanilla OS"
+BASEDOF="Ubuntu"
+HOMEPAGE="https://vanillaos.org"
+DESCRIPTION="Designed to be a reliable and productive operating system for your daily work"
+CREDENTIALS="-"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://api.github.com/repos/Vanilla-OS/live-iso/releases" | grep 'download_url' | cut -d'/' -f8 | sort -ru)
+}
+
+function get_() {
+ local HASH=""
+ local HASH_URL=""
+ local ISO=""
+ ISO=$(web_pipe "https://api.github.com/repos/Vanilla-OS/live-iso/releases" | grep 'download_url' | grep "${RELEASE}" | head -n 1 | cut -d'"' -f4)
+ HASH_URL="${ISO//.iso/.sha256.txt}"
+ HASH=$(web_pipe "${HASH_URL}" | cut -d' ' -f1)
+ echo "${ISO} ${HASH}"
+}
diff --git a/actions/void b/actions/void
new file mode 100644
index 0000000..7d49915
--- /dev/null
+++ b/actions/void
@@ -0,0 +1,31 @@
+# Template file for 'void'
+OSNAME="void"
+PRETTY="Void Linux"
+BASEDOF="-"
+HOMEPAGE="https://voidlinux.org"
+DESCRIPTION="General purpose operating system. Its package system allows you to quickly install, update and remove software; software is provided in binary packages or can be built directly from sources"
+CREDENTIALS="anon:voidlinux root:voidlinux"
+
+function releases_() {
+ #shellcheck disable=SC2046,SC2005
+ echo $(web_pipe "https://repo-default.voidlinux.org/live/" | grep "^/dev/null
+
+ cat << 'EOF' > "${1}/unattended/autounattend.xml"
+
+
+
+
+
+ false
+
+
+ *
+
+
+
+
+
+ true
+
+
+ 1
+
+
+
+
+
+ true
+
+
+ *
+
+ Quickemu Project
+ Quickemu
+ 24/7
+
+ Quickemu Project
+ https://github.com/quickemu-project/quickemu/issues
+
+ Quickemu Project
+ W269N-WFGWX-YVC9B-4J6C9-T83GX
+
+
+ 0
+
+
+
+
+
+
+ false
+
+
+
+ 0
+ true
+
+
+
+ 1
+ Primary
+ 256
+
+
+
+ 2
+ EFI
+ 128
+
+
+
+ 3
+ MSR
+ 128
+
+
+
+ 4
+ Primary
+ true
+
+
+
+
+
+ 1
+ 1
+
+ NTFS
+ DE94BBA4-06D1-4D40-A16A-BFD50179D6AC
+
+
+
+ 2
+ 2
+
+ FAT32
+
+
+
+ 3
+ 3
+
+
+
+ 4
+ 4
+
+ C
+ NTFS
+
+
+
+
+
+ true
+ Never
+
+
+
+
+ 0
+ 4
+
+ false
+
+
+
+
+ 1
+ reg add HKLM\System\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 0x00000001 /f
+
+
+ 2
+ reg add HKLM\System\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 0x00000001 /f
+
+
+ 3
+ reg add HKLM\System\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 0x00000001 /f
+
+
+ 4
+ reg add HKLM\System\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 0x00000001 /f
+
+
+
+ false
+ Never
+
+
+ true
+ Quickemu
+ Quickemu Project
+
+
+ W269N-WFGWX-YVC9B-4J6C9-T83GX
+ Never
+
+
+
+
+
+
+
+
+ E:\qemufwcfg\w10\amd64
+
+
+ E:\vioinput\w10\amd64
+
+
+ E:\vioscsi\w10\amd64
+
+
+ E:\viostor\w10\amd64
+
+
+ E:\vioserial\w10\amd64
+
+
+ E:\qxldod\w10\amd64
+
+
+ E:\amd64\w10
+
+
+ E:\viogpudo\w10\amd64
+
+
+ E:\viorng\w10\amd64
+
+
+ E:\NetKVM\w10\amd64
+
+
+ E:\viofs\w10\amd64
+
+
+ E:\Balloon\w10\amd64
+
+
+
+
+
+
+
+
+
+ quickemu
+ true
+
+ true
+ Quickemu
+
+ false
+
+ true
+ true
+ true
+ true
+ true
+ Home
+ 3
+ true
+ true
+
+ true
+
+
+
+
+
+
+ quickemu
+ true
+
+ Quickemu
+ Quickemu
+ Administrators
+ Quickemu
+
+
+
+ Quickemu Project
+ Quickemu
+
+
+ msiexec /i E:\guest-agent\qemu-ga-x86_64.msi /quiet /passive /qn
+ Install Virtio Guest Agent
+ 1
+
+
+ msiexec /i F:\spice-webdavd-x64-latest.msi /quiet /passive /qn
+ Install spice-webdavd file sharing agent
+ 2
+
+
+ msiexec /i F:\UsbDk_1.0.22_x64.msi /quiet /passive /qn
+ Install usbdk USB sharing agent
+ 3
+
+
+ msiexec /i F:\spice-vdagent-x64-0.10.0.msi /quiet /passive /qn
+ Install spice-vdagent SPICE agent
+ 4
+
+
+ Cmd /c POWERCFG -H OFF
+ Disable Hibernation
+ 5
+
+
+
+
+
+EOF
+
+
+echo "Downloading Spice drivers..."
+web_get https://www.spice-space.org/download/windows/spice-webdavd/spice-webdavd-x64-latest.msi "${VM_PATH}/unattended"
+web_get https://www.spice-space.org/download/windows/vdagent/vdagent-win-0.10.0/spice-vdagent-x64-0.10.0.msi "${VM_PATH}/unattended"
+web_get https://www.spice-space.org/download/windows/usbdk/UsbDk_1.0.22_x64.msi "${VM_PATH}/unattended"
+
+echo "Making unattended.iso"
+mkisofs -quiet -l -o "${VM_PATH}/unattended.iso" "${VM_PATH}/unattended/"
+}
+
+function handle_curl_error() {
+ local error_code="$1"
+ local fatal_error_action=2
+ case "$error_code" in
+ 6)
+ echo "Failed to resolve Microsoft servers! Is there an Internet connection? Exiting..."
+ return "$fatal_error_action"
+ ;;
+ 7)
+ echo "Failed to contact Microsoft servers! Is there an Internet connection or is the server down?"
+ ;;
+ 8)
+ echo "Microsoft servers returned a malformed HTTP response!"
+ ;;
+ 22)
+ echo "Microsoft servers returned a failing HTTP status code!"
+ ;;
+ 23)
+ echo "Failed at writing Windows media to disk! Out of disk space or permission error? Exiting..."
+ return "$fatal_error_action"
+ ;;
+ 26)
+ echo "Ran out of memory during download! Exiting..."
+ return "$fatal_error_action"
+ ;;
+ 36)
+ echo "Failed to continue earlier download!"
+ ;;
+ 63)
+ echo "Microsoft servers returned an unexpectedly large response!"
+ ;;
+ # POSIX defines exit statuses 1-125 as usable by us
+ # https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_08_02
+ $((error_code <= 125)))
+ # Must be some other server or network error (possibly with this specific request/file)
+ # This is when accounting for all possible errors in the curl manual assuming a correctly formed curl command and an HTTP(S) request, using only the curl features we're using, and a sane build
+ echo "Miscellaneous server or network error!"
+ ;;
+ 126 | 127 )
+ echo "Curl command not found! Please install curl and try again. Exiting..."
+ return "$fatal_error_action"
+ ;;
+ # Exit statuses are undefined by POSIX beyond this point
+ *)
+ case "$(kill -l "$error_code")" in
+ # Signals defined to exist by POSIX:
+ # https://pubs.opengroup.org/onlinepubs/009695399/basedefs/signal.h.html
+ INT)
+ echo "Curl was interrupted!"
+ ;;
+ # There could be other signals but these are most common
+ SEGV | ABRT )
+ echo "Curl crashed! Failed exploitation attempt? Please report any core dumps to curl developers. Exiting..."
+ return "$fatal_error_action"
+ ;;
+ *)
+ echo "Curl terminated due to a fatal signal!"
+ ;;
+ esac
+ esac
+ return 1
+}
+
+function download_windows_server() {
+ local iso_download_page_html=""
+ # Copyright (C) 2024 Elliot Killick
+ # This function is adapted from the Mido project:
+ # https://github.com/ElliotKillick/Mido
+
+ # Download enterprise evaluation Windows versions
+ local windows_version="$1"
+ local enterprise_type="$2"
+ local PRETTY_RELEASE=""
+
+ case "${RELEASE}" in
+ *) PRETTY_RELEASE="${RELEASE}";;
+ esac
+
+ echo "Downloading $(pretty_name "${OS}") ${PRETTY_RELEASE} (${I18N})"
+
+ local url="https://www.microsoft.com/en-us/evalcenter/download-$windows_version"
+
+ echo " - Parsing download page: ${url}"
+ iso_download_page_html="$(curl --silent --location --max-filesize 1M --fail --proto =https --tlsv1.2 --http1.1 -- "$url")" || {
+ handle_curl_error $?
+ return $?
+ }
+
+ if ! [ "$iso_download_page_html" ]; then
+ # This should only happen if there's been some change to where this download page is located
+ echo " - Windows server download page gave us an empty response"
+ return 1
+ fi
+
+ local CULTURE=""
+ local COUNTRY=""
+ case "${I18N}" in
+ "English (Great Britain)")
+ CULTURE="en-gb"
+ COUNTRY="GB";;
+ "Chinese (Simplified)")
+ CULTURE="zh-cn"
+ COUNTRY="CN";;
+ "Chinese (Traditional)")
+ CULTURE="zh-tw"
+ COUNTRY="TW";;
+ "French")
+ CULTURE="fr-fr"
+ COUNTRY="FR";;
+ "German")
+ CULTURE="de-de"
+ COUNTRY="DE";;
+ "Italian")
+ CULTURE="it-it"
+ COUNTRY="IT";;
+ "Japanese")
+ CULTURE="ja-jp"
+ COUNTRY="JP";;
+ "Korean")
+ CULTURE="ko-kr"
+ COUNTRY="KR";;
+ "Portuguese (Brazil)")
+ CULTURE="pt-br"
+ COUNTRY="BR";;
+ "Spanish")
+ CULTURE="es-es"
+ COUNTRY="ES";;
+ "Russian")
+ CULTURE="ru-ru"
+ COUNTRY="RU";;
+ *)
+ CULTURE="en-us"
+ COUNTRY="US";;
+ esac
+
+ echo " - Getting download link.."
+ iso_download_links="$(echo "$iso_download_page_html" | grep -o "https://go.microsoft.com/fwlink/p/?LinkID=[0-9]\+&clcid=0x[0-9a-z]\+&culture=${CULTURE}&country=${COUNTRY}")" || {
+ # This should only happen if there's been some change to the download endpoint web address
+ echo " - Windows server download page gave us no download link"
+ return 1
+ }
+
+ # Limit untrusted size for input validation
+ iso_download_links="$(echo "$iso_download_links" | head -c 1024)"
+
+ case "$enterprise_type" in
+ # Select x64 download link
+ "enterprise") iso_download_link=$(echo "$iso_download_links" | head -n 2 | tail -n 1) ;;
+ # Select x64 LTSC download link
+ "ltsc") iso_download_link=$(echo "$iso_download_links" | head -n 4 | tail -n 1) ;;
+ *) iso_download_link="$iso_download_links" ;;
+ esac
+
+ # Follow redirect so proceeding log message is useful
+ # This is a request we make this Fido doesn't
+ # We don't need to set "--max-filesize" here because this is a HEAD request and the output is to /dev/null anyway
+ iso_download_link="$(curl --silent --location --output /dev/null --silent --write-out "%{url_effective}" --head --fail --proto =https --tlsv1.2 --http1.1 -- "$iso_download_link")" || {
+ # This should only happen if the Microsoft servers are down
+ handle_curl_error $?
+ return $?
+ }
+
+ # Limit untrusted size for input validation
+ iso_download_link="$(echo "$iso_download_link" | head -c 1024)"
+
+ echo " - URL: $iso_download_link"
+
+ # Download ISO
+ FILE_NAME="${iso_download_link##*/}"
+ web_get "${iso_download_link}" "${VM_PATH}" "${FILE_NAME}"
+ OS="windows-server"
+}
+
+function download_windows_workstation() {
+ local HASH=""
+ local session_id=""
+ local iso_download_page_html=""
+ local product_edition_id=""
+ local language_skuid_table_json=""
+ local sku_id=""
+ local iso_download_link_json=""
+ local iso_download_link=""
+
+ echo "Downloading Windows ${RELEASE} (${I18N})"
+ # This function is adapted from the Mido project:
+ # https://github.com/ElliotKillick/Mido
+ # Download newer consumer Windows versions from behind gated Microsoft API
+
+ # Either 10, or 11
+ local windows_version="$1"
+
+ local url="https://www.microsoft.com/en-us/software-download/windows$windows_version"
+ case "$windows_version" in
+ 10) url="${url}ISO";;
+ esac
+
+ local user_agent="Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
+ session_id="$(uuidgen)"
+
+ # Get product edition ID for latest release of given Windows version
+ # Product edition ID: This specifies both the Windows release (e.g. 22H2) and edition ("multi-edition" is default, either Home/Pro/Edu/etc., we select "Pro" in the answer files) in one number
+ # This is the *only* request we make that Fido doesn't. Fido manually maintains a list of all the Windows release/edition product edition IDs in its script (see: $WindowsVersions array). This is helpful for downloading older releases (e.g. Windows 10 1909, 21H1, etc.) but we always want to get the newest release which is why we get this value dynamically
+ # Also, keeping a "$WindowsVersions" array like Fido does would be way too much of a maintenance burden
+ # Remove "Accept" header that curl sends by default
+ echo " - Parsing download page: ${url}"
+ iso_download_page_html="$(curl --silent --user-agent "$user_agent" --header "Accept:" --max-filesize 1M --fail --proto =https --tlsv1.2 --http1.1 -- "$url")" || {
+ handle_curl_error $?
+ return $?
+ }
+
+ echo -n " - Getting Product edition ID: "
+ # tr: Filter for only numerics to prevent HTTP parameter injection
+ # head -c was recently added to POSIX: https://austingroupbugs.net/view.php?id=407
+ product_edition_id="$(echo "$iso_download_page_html" | grep -Eo '