mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	fix blendOS downloads again (#729)
* fix blendOS downloads again * WIP tidy release/edition naming and consider showing YYMMDD date
This commit is contained in:
		
							parent
							
								
									1ccfd8246c
								
							
						
					
					
						commit
						8f8a6a60b4
					
				
					 1 changed files with 21 additions and 27 deletions
				
			
		
							
								
								
									
										48
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										48
									
								
								quickget
									
										
									
									
									
								
							|  | @ -283,15 +283,16 @@ function editions_arcolinux() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function releases_blendos() { | function releases_blendos() { | ||||||
|  | 
 | ||||||
|  | # Pull the rss feed | ||||||
|  | wget -q https://sourceforge.net/projects/blendos/rss?path=/ISOs/ -O- | grep -E -o 'https://.*blendOS\.iso.*</media:hash' >/tmp/blendos-isos.rss | ||||||
|  | 
 | ||||||
|     local RLIST |     local RLIST | ||||||
|     RLIST=$(curl -s https://api.github.com/repos/blend-os/blendOS/releases  |grep tag_name | grep -o -E '[[:digit:]]+\.[[:digit:]]+' | tr ' \r\n' ' ') |     RLIST=$(grep -E -o 'https://.*blendOS\.iso.*</media:hash' /tmp/blendos-isos.rss | cut -d/ -f 8-9 | sort -r -t/  --key=2 |grep -e '16878' -e '168[8-9]') | ||||||
|     echo ${RLIST} |     echo ${RLIST} | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function editions_blendos() { |  | ||||||
|     echo gnome kde |  | ||||||
| } |  | ||||||
| 
 | 
 | ||||||
| function releases_cachyos() { | function releases_cachyos() { | ||||||
|     echo 2300305 |     echo 2300305 | ||||||
|  | @ -1044,31 +1045,24 @@ function get_arcolinux() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_blendos() { | function get_blendos() { | ||||||
|     local EDITION="${1:-}" | 
 | ||||||
|     local HASH="" |     local HASH="" | ||||||
|     local URL="" |     local URL="" | ||||||
|     case ${RELEASE} in | 
 | ||||||
|       23.01) |     # BlendOS has more editions and releases but there's a tracker indirect and other issues | ||||||
|         URL="$(curl -s https://api.github.com/repos/blend-os/blendOS/releases  |grep 'browser_download_url'|grep ${RELEASE} | grep -o '\"http.*\.iso\"'| cut -d\" -f 2| head -1)" |     # so easier to use the rss feed | ||||||
|         HASH=$(curl -s "${URL}.sha256sum" | cut -d' ' -f1) |     # | ||||||
|         ;; |     # We have to provide edition/release as RELEASE or have a major refactor | ||||||
|       23.04) |     # But this works for now ... or does it .... | ||||||
|         case ${EDITION} in |     URL=$(grep ${RELEASE} /tmp/blendos-isos.rss | grep -E -o 'https://.*blendOS\.iso') | ||||||
|           gnome) |     HASH=$(grep ${RELEASE} /tmp/blendos-isos.rss | grep -E -o '[[:alnum:]]{32}') | ||||||
|             TMPURL=$(wget -q -S -O- --max-redirect=0 "https://sourceforge.net/projects/blendos/files/23.04-1/${EDITION^^}/blendOS-2023.04.22-x86_64-${EDITION,,}.iso/download" 2>&1 | grep -i Location | cut -d' ' -f4) |     # ## fix up variables for path naming | ||||||
|             URL=${TMPURL%\?*} |       EDITION=${RELEASE%%/*} | ||||||
|             HASH=$(curl -s https://sourceforge.net/projects/blendos/files/${RELEASE}-1/${EDITION:-GNOME}/|grep  -o -E '\"sha1\":\".*\"'|cut -d\" -f4) |       RELEASE=${RELEASE##*/} | ||||||
|             ;; |       # For UX maybe show the date of the release | ||||||
|           kde|plasma) |       #echo ${RELEASE##*/} "(" $(date -d @${RELEASE##*/}) ")" | ||||||
|             local ED_DE="Plasma" |       # maybe $(date -d @${RELEASE##*/} '+%Y%m%d') | ||||||
|             TMPURL=$(wget -q -S -O- --max-redirect=0 "https://sourceforge.net/projects/blendos/files/23.04-1/${ED_DE^}/blendOS-2023.04.22-x86_64-${ED_DE,,}.iso/download" 2>&1 | grep -i Location | cut -d' ' -f4) |       echo "${URL} ${HASH}" | ||||||
|             URL=${TMPURL%\?*} |  | ||||||
|             HASH=$(curl -s https://sourceforge.net/projects/blendos/files/${RELEASE}-1/Plasma/|grep  -o -E '\"sha1\":\".*\"'|cut -d\" -f4) |  | ||||||
|             ;; |  | ||||||
|         esac |  | ||||||
|         ;; |  | ||||||
|     esac |  | ||||||
|     echo "${URL} ${HASH}" |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_vanillaos() { | function get_vanillaos() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue