mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-12-06 04:43:46 +00:00
71 lines
1.5 KiB
Text
71 lines
1.5 KiB
Text
# Template file for 'templeos'
|
|
OSNAME="templeos"
|
|
PRETTY="TempleOS"
|
|
LOGO=""
|
|
ICON="templeos.svg"
|
|
ICON_ONLINE=""
|
|
CATEGORY="Desktop, Live Medium"
|
|
BASEDOF="-"
|
|
DESCRIPTION="A 64-bit PC operating system designed by Terry A. Davis; ring-0, single-address-space, no networking"
|
|
HOMEPAGE="https://www.templeos.org"
|
|
CREDENTIALS="-"
|
|
GPG=""
|
|
RSS=""
|
|
DW=""
|
|
MAGNET=""
|
|
MAGNET_PREFERRED=""
|
|
TORRENT=""
|
|
CHAT=""
|
|
|
|
RELEASES="V5.03"
|
|
EDITIONS="lite standard"
|
|
EDITIONS_LIST="lite
|
|
standard"
|
|
QEMU_ARCH="amd64"
|
|
|
|
releases_() {
|
|
echo V5.03
|
|
}
|
|
|
|
editions_() {
|
|
echo standard lite
|
|
}
|
|
|
|
get_() {
|
|
local ISO HASH
|
|
case "${EDITION}" in
|
|
standard) ISO="TempleOS.ISO"; HASH="2facf5d7cfa08de4c47aede4a64cfb44" ;;
|
|
lite) ISO="TempleOSLite.ISO"; HASH="470093c848f4086ffafd5d7967bd9c8a" ;;
|
|
*) return 1 ;;
|
|
esac
|
|
local URL="https://www.templeos.org/Downloads"
|
|
echo "${URL}/${ISO} ${HASH}"
|
|
}
|
|
|
|
config_() {
|
|
echo "boot=\"legacy\"" >> "${CONF_FILE}"
|
|
echo "disk_size=\"2G\"" >> "${CONF_FILE}"
|
|
echo "ram=\"512M\"" >> "${CONF_FILE}"
|
|
}
|
|
|
|
releases_() {
|
|
# Releases parsed at generation time — no network access needed.
|
|
echo "${RELEASES}"
|
|
}
|
|
editions_() {
|
|
# Editions parsed at generation time — no network access needed.
|
|
local _scoped=""
|
|
if [ -n "${RELEASE:-}" ] && declare -F _release_editions_ >/dev/null; then
|
|
_scoped=$(_release_editions_ "${ARCH:-}|${RELEASE}")
|
|
fi
|
|
if [ -n "${_scoped}" ]; then
|
|
echo "${_scoped}"
|
|
return 0
|
|
fi
|
|
local _per_arch="EDITIONS_${ARCH:-}"
|
|
if [ -n "${!_per_arch:-}" ]; then
|
|
echo "${!_per_arch}"
|
|
return 0
|
|
fi
|
|
echo "${EDITIONS:-}"
|
|
}
|