mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-12-06 04:43:46 +00:00
52 lines
1.6 KiB
Text
52 lines
1.6 KiB
Text
# Template file for 'blendos'
|
|
OSNAME="blendos"
|
|
PRETTY="BlendOS"
|
|
LOGO=""
|
|
ICON="blendos.svg"
|
|
CATEGORY="Beginner"
|
|
BASEDOF="Arch"
|
|
HOMEPAGE="https://blendos.co"
|
|
DESCRIPTION="A seamless blend of all Linux distributions. Allows you to have an immutable, atomic and declarative Arch Linux system, with application support from several Linux distributions & Android"
|
|
CREDENTIALS="-"
|
|
GPG=""
|
|
RSS=""
|
|
DW=""
|
|
|
|
# German master build server linked at https://blendos.co/download/.
|
|
BLENDOS_BUILD_URL="https://git.blendos.co/api/v4/projects/32/jobs/artifacts/main/raw"
|
|
|
|
function releases_() {
|
|
# The master server publishes a rolling build, not the obsolete GitHub tags.
|
|
echo latest
|
|
}
|
|
|
|
function arch_() {
|
|
echo amd64
|
|
}
|
|
|
|
function get_() {
|
|
[ "${RELEASE:-latest}" = latest ] || return 1
|
|
[ "${ARCH:-amd64}" = amd64 ] || return 1
|
|
local SUMS HASH
|
|
# The build job hashes blendOS.iso before publishing both artifacts. Do not
|
|
# mix this ISO with mirror/torrent checksums: their compression may differ.
|
|
if ! SUMS=$(web_pipe "${BLENDOS_BUILD_URL}/checksum?job=build-job" \
|
|
--fail --show-error --retry 3 --connect-timeout 15 --max-time 60); then
|
|
echo 'ERROR: Could not fetch the blendOS master build checksum.' >&2
|
|
return 1
|
|
fi
|
|
HASH=$(printf '%s\n' "${SUMS}" | awk '
|
|
{
|
|
file = $2
|
|
sub(/^\*/, "", file)
|
|
if (file == "blendOS.iso" && length($1) == 64 && $1 !~ /[^[:xdigit:]]/) {
|
|
print $1
|
|
exit
|
|
}
|
|
}')
|
|
if [ -z "${HASH}" ]; then
|
|
echo 'ERROR: No valid SHA256 checksum for the blendOS master ISO.' >&2
|
|
return 1
|
|
fi
|
|
printf '%s %s\n' "${BLENDOS_BUILD_URL}/blendOS.iso?job=build-job" "${HASH}"
|
|
}
|