quickemu/actions/freedos

25 lines
797 B
Plaintext

# 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}"
}