mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Added Pop!_OS support (#131)
* Added Pop!_OS support * Updated README.md * Added pretty name for Pop!_OS
This commit is contained in:
parent
b7493cee10
commit
9eb455c295
2 changed files with 46 additions and 0 deletions
36
quickget
36
quickget
|
@ -18,6 +18,7 @@ function list_all() {
|
|||
linuxmint) DISPLAY_NAME="Linux Mint";;
|
||||
macos) DISPLAY_NAME="macOS";;
|
||||
opensuse) DISPLAY_NAME="OpenSUSE";;
|
||||
popos) DISPLAY_NAME="Pop!_OS";;
|
||||
ubuntu-budgie) DISPLAY_NAME="Ubuntu Budgie";;
|
||||
ubuntu-kylin) DISPLAY_NAME="Ubuntu Kylin";;
|
||||
ubuntu-mate) DISPLAY_NAME="Ubuntu MATE";;
|
||||
|
@ -45,6 +46,7 @@ function os_support() {
|
|||
lubuntu \
|
||||
macos \
|
||||
opensuse \
|
||||
popos \
|
||||
ubuntu \
|
||||
ubuntu-budgie \
|
||||
ubuntu-kylin \
|
||||
|
@ -87,6 +89,10 @@ function releases_macos() {
|
|||
big-sur
|
||||
}
|
||||
|
||||
function releases_popos() {
|
||||
echo 21_04
|
||||
}
|
||||
|
||||
function releases_ubuntu() {
|
||||
echo bionic \
|
||||
focal \
|
||||
|
@ -401,6 +407,9 @@ function make_vm_config() {
|
|||
elif [[ "${OS}" == "opensuse" ]]; then
|
||||
GUEST="linux"
|
||||
IMAGE_TYPE="iso"
|
||||
elif [[ "${OS}" == "popos" ]]; then
|
||||
GUEST="linux"
|
||||
IMAGE_TYPE="iso"
|
||||
elif [[ "${OS}" == *"ubuntu"* ]]; then
|
||||
GUEST="linux"
|
||||
IMAGE_TYPE="iso"
|
||||
|
@ -637,6 +646,29 @@ function get_macos() {
|
|||
start_vm_info
|
||||
}
|
||||
|
||||
function get_popos() {
|
||||
# For future releases, use dvd1 iso files.
|
||||
local URL=""
|
||||
local DL_BASE="https://pop-iso.sfo2.cdn.digitaloceanspaces.com"
|
||||
local VERSION=""
|
||||
|
||||
case ${RELEASE} in
|
||||
21_04) VERSION=${RELEASE//_/.};;
|
||||
*)
|
||||
echo "ERROR! Pop!_OS ${RELEASE} is not a supported release."
|
||||
releases_popos
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
ISO="pop-os_21.04_amd64_intel_9.iso"
|
||||
URL="${DL_BASE}/21.04/amd64/intel/9/${ISO}"
|
||||
make_vm_dir
|
||||
web_get ${URL} ${VM_PATH}
|
||||
make_vm_config ${ISO}
|
||||
start_vm_info
|
||||
}
|
||||
|
||||
function get_ubuntu() {
|
||||
local DEVEL="daily-live"
|
||||
local ISO=""
|
||||
|
@ -813,6 +845,8 @@ else
|
|||
releases_opensuse
|
||||
elif [ "${OS}" == "macos" ]; then
|
||||
releases_macos
|
||||
elif [ "${OS}" == "popos" ]; then
|
||||
releases_popos
|
||||
elif [[ "${OS}" == *"ubuntu"* ]]; then
|
||||
releases_ubuntu
|
||||
elif [ "${OS}" == "windows" ]; then
|
||||
|
@ -833,6 +867,8 @@ elif [[ "${OS}" == "linuxmint" ]]; then
|
|||
get_linuxmint
|
||||
elif [[ "${OS}" == "opensuse" ]]; then
|
||||
get_opensuse
|
||||
elif [[ "${OS}" == "popos" ]]; then
|
||||
get_popos
|
||||
elif [[ "${OS}" == *"ubuntu"* ]]; then
|
||||
get_ubuntu
|
||||
elif [ "${OS}" == "windows" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue