mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Add KDE Neon to quickget (#207)
* WIP - Add KDE Neon to quickget * Get the KDE Neon ISO from a local mirror Co-authored-by: Phil Clifford <philip.clifford@gmail.com> Co-authored-by: Phil Clifford <philip.clifford@gmail.com>
This commit is contained in:
		
							parent
							
								
									9aa4166324
								
							
						
					
					
						commit
						9903bec582
					
				
					 1 changed files with 28 additions and 0 deletions
				
			
		
							
								
								
									
										28
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										28
									
								
								quickget
									
										
									
									
									
								
							|  | @ -38,6 +38,7 @@ function pretty_name() { | |||
|     archlinux)          PRETTY_NAME="Arch Linux";; | ||||
|     elementary)         PRETTY_NAME="elementary OS";; | ||||
|     freebsd)            PRETTY_NAME="FreeBSD";; | ||||
|     kdeneon)           PRETTY_NAME="KDE Neon";; | ||||
|     linuxmint-cinnamon) PRETTY_NAME="Linux Mint Cinnamon";; | ||||
|     linuxmint-mate)     PRETTY_NAME="Linux Mint MATE";; | ||||
|     linuxmint-xfce)     PRETTY_NAME="Linux Mint XFCE";; | ||||
|  | @ -133,6 +134,7 @@ function os_support() { | |||
|     freebsd \ | ||||
|     fedora \ | ||||
|     kali \ | ||||
|     kdeneon \ | ||||
|     kubuntu \ | ||||
|     linuxmint-cinnamon \ | ||||
|     linuxmint-mate \ | ||||
|  | @ -191,6 +193,13 @@ function releases_kali() { | |||
|     weekly | ||||
| } | ||||
| 
 | ||||
| function releases_kdeneon() { | ||||
|     echo user \ | ||||
|     testing \ | ||||
|     unstable \ | ||||
|     developer | ||||
| } | ||||
| 
 | ||||
| function releases_linuxmint(){ | ||||
|     echo 20.2 | ||||
| } | ||||
|  | @ -599,6 +608,9 @@ function make_vm_config() { | |||
|     elif [ "${OS}" == "kali" ]; then | ||||
|         GUEST="linux" | ||||
|         IMAGE_TYPE="iso" | ||||
|     elif [ "${OS}" == "kdeneon" ]; then | ||||
|         GUEST="linux" | ||||
|         IMAGE_TYPE="iso" | ||||
|     elif [[ "${OS}" == *"linuxmint"* ]]; then | ||||
|         GUEST="linux" | ||||
|         IMAGE_TYPE="iso" | ||||
|  | @ -792,6 +804,20 @@ function get_kali() { | |||
|     make_vm_config "${ISO}" | ||||
| } | ||||
| 
 | ||||
| function get_kdeneon() { | ||||
|     local ISO="" | ||||
|     local URL="" | ||||
| 
 | ||||
|     validate_release "releases_kdeneon" | ||||
|     ISO="neon-${RELEASE}-current.iso" | ||||
|     # Get the URL of the mirror closest to the user's location | ||||
|     URL=$(wget -q -O- "https://files.kde.org/neon/images/${RELEASE}/current/neon-${RELEASE}-current.iso.zsync.mirrorlist" | \ | ||||
|           grep "neon-${RELEASE}-current.iso.zsync" | grep '>1.<' | cut -d\" -f 6 | sed 's/https/http/g' | xargs dirname) | ||||
|     zsync_get "${URL}/${ISO}" "${VM_PATH}" | ||||
|     check_hash "${ISO}" "$(wget -q -O- "https://files.kde.org/neon/images/${RELEASE}/current/neon-${RELEASE}-current.sha256sum" | cut -d' ' -f1)" | ||||
|     make_vm_config "${ISO}" | ||||
| } | ||||
| 
 | ||||
| function get_linuxmint() { | ||||
|     local FLAVOR="" | ||||
|     local HASH="" | ||||
|  | @ -1146,6 +1172,8 @@ if [ -n "${2}" ]; then | |||
|         get_fedora | ||||
|     elif [ "${OS}" == "kali" ]; then | ||||
|         get_kali | ||||
|     elif [ "${OS}" == "kdeneon" ]; then | ||||
|         get_kdeneon | ||||
|     elif [[ "${OS}" == *"linuxmint-"* ]]; then | ||||
|         get_linuxmint | ||||
|     elif [[ "${OS}" == *"nixos-"* ]]; then | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue