mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
feat: add deepin support (#475)
add deepin v20 support Log: Co-authored-by: Heysion Y <heysion@deepin.com>
This commit is contained in:
parent
790c626993
commit
f061991b67
1 changed files with 37 additions and 0 deletions
37
quickget
37
quickget
|
@ -166,6 +166,7 @@ function os_support() {
|
||||||
cachyos \
|
cachyos \
|
||||||
centos-stream \
|
centos-stream \
|
||||||
debian \
|
debian \
|
||||||
|
deepin \
|
||||||
devuan \
|
devuan \
|
||||||
dragonflybsd \
|
dragonflybsd \
|
||||||
elementary \
|
elementary \
|
||||||
|
@ -261,6 +262,10 @@ function editions_debian() {
|
||||||
echo standard cinnamon gnome kde lxde lxqt mate xfce netinst
|
echo standard cinnamon gnome kde lxde lxqt mate xfce netinst
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function releases_deepin() {
|
||||||
|
echo 20 20.1 20.2 20.2.1 20.2.2 20.2.3 20.2.4 20.3 20.4 20.5
|
||||||
|
}
|
||||||
|
|
||||||
function releases_devuan() {
|
function releases_devuan() {
|
||||||
echo beowulf chimaera
|
echo beowulf chimaera
|
||||||
}
|
}
|
||||||
|
@ -733,6 +738,10 @@ EOF
|
||||||
case ${OS} in
|
case ${OS} in
|
||||||
alma|centos-stream|oraclelinux|rockylinux) echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
|
alma|centos-stream|oraclelinux|rockylinux) echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
|
||||||
dragonflybsd|haiku|openbsd|netbsd|slackware|tails) echo "boot=\"legacy\"" >> "${CONF_FILE}";;
|
dragonflybsd|haiku|openbsd|netbsd|slackware|tails) echo "boot=\"legacy\"" >> "${CONF_FILE}";;
|
||||||
|
deepin)
|
||||||
|
echo "disk_size=\"64G\"" >> "${CONF_FILE}"
|
||||||
|
echo "ram=\"4G\"" >> "${CONF_FILE}"
|
||||||
|
;;
|
||||||
freedos)
|
freedos)
|
||||||
echo "boot=\"legacy\"" >> "${CONF_FILE}"
|
echo "boot=\"legacy\"" >> "${CONF_FILE}"
|
||||||
echo "disk_size=\"4G\"" >> "${CONF_FILE}"
|
echo "disk_size=\"4G\"" >> "${CONF_FILE}"
|
||||||
|
@ -884,6 +893,30 @@ function get_debian() {
|
||||||
echo "${URL}/${ISO} ${HASH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_deepin() {
|
||||||
|
local HASH=""
|
||||||
|
local EDITION=""
|
||||||
|
local ISO="deepin-desktop-community-${RELEASE}-amd64.iso"
|
||||||
|
# deepin-desktop-community-20.3-amd64.iso
|
||||||
|
local URL="https://cdimage.deepin.com/releases/"${RELEASE}
|
||||||
|
|
||||||
|
# fix iso name
|
||||||
|
if [[ "${RELEASE}" == *"20" ]] ; then
|
||||||
|
EDITION="1003"
|
||||||
|
ISO="deepin-desktop-community-${EDITION}-amd64.iso"
|
||||||
|
elif [[ "${RELEASE}" == *"20.1" ]]; then
|
||||||
|
EDITION="1010"
|
||||||
|
ISO="deepin-desktop-community-${EDITION}-amd64.iso"
|
||||||
|
fi
|
||||||
|
|
||||||
|
HASH=$(wget -q -O- "${URL}/SHA256SUMS" | grep "${ISO}" | cut -d' ' -f1)
|
||||||
|
|
||||||
|
#echo "${URL}/${ISO} ${HASH}"
|
||||||
|
web_get "${URL}/${ISO}" "${VM_PATH}"
|
||||||
|
check_hash "${ISO}" "${HASH}"
|
||||||
|
make_vm_config "${ISO}"
|
||||||
|
}
|
||||||
|
|
||||||
function get_devuan() {
|
function get_devuan() {
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO=""
|
local ISO=""
|
||||||
|
@ -1867,6 +1900,10 @@ if [ -n "${2}" ]; then
|
||||||
# Ubuntu doesn't use create_vm()
|
# Ubuntu doesn't use create_vm()
|
||||||
validate_release releases_ubuntu
|
validate_release releases_ubuntu
|
||||||
get_ubuntu
|
get_ubuntu
|
||||||
|
elif [[ "${OS}" == *"deepin"* ]]; then
|
||||||
|
# deepin doesn't use create_vm()
|
||||||
|
validate_release releases_deepin
|
||||||
|
get_deepin
|
||||||
elif [ "${OS}" == "windows" ]; then
|
elif [ "${OS}" == "windows" ]; then
|
||||||
LANG="English International"
|
LANG="English International"
|
||||||
if [ -n "${3}" ]; then
|
if [ -n "${3}" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue