mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-06-14 09:32:21 +00:00
50 lines
1.4 KiB
Text
50 lines
1.4 KiB
Text
# Template file for 'Artix'
|
|
OSNAME="artix"
|
|
PRETTY="Artix Linux"
|
|
LOGO=" "
|
|
ICON="artix.svg"
|
|
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/artix.png"
|
|
CATEGORY="Desktop, Server"
|
|
BASEDOF="Arch"
|
|
HOMEPAGE="https://artixlinux.org"
|
|
DESCRIPTION="The Art of Linux Simple Fast Systemd-free"
|
|
CREDENTIALS="-"
|
|
GPG=""
|
|
RSS=""
|
|
DW=""
|
|
|
|
function releases_() {
|
|
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_() {
|
|
# Extract edition-init combinations (e.g., base-dinit, plasma-openrc, community-gtk-openrc)
|
|
echo $(web_pipe "https://mirror1.artixlinux.org/iso/" | grep "artix-" | cut -d'"' -f2 | grep -v sig | sed 's/artix-//' | sed 's/-[0-9]\{8\}-x86_64.iso//' | sort -u)
|
|
}
|
|
|
|
|
|
function arch_() {
|
|
echo amd64
|
|
}
|
|
|
|
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}"
|
|
}
|
|
|
|
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}"
|
|
}
|
|
|
|
function config_() {
|
|
echo "disk_size=\"32G\"" >> "${CONF_FILE}"
|
|
}
|