Creating web links for latest ISO

OSDN provides web space for the projects they host. For Manjaro the webservers are

I have been patching the manjaro tools to generate html document which redirects the user to the latest ISO. This is only implemented as a link to latest full release.

So to get the latest available LXDE ISO you would open your browser and type in

https://manjaro-community.osdn.io/lxde/latest

If you know the address you get the most recent ISO and all editions got their own link - please check it.

If you think - hey I can use wget or curl - sorry - you cannot - I have not explored the osdn.io site enough. Maybe I can utilize .htaccess redirect - but for now it is meta tag and script tag and neither curl nor wget can use that info.

Using wget or curl you will have parse the file and grab e.g. url= or window.location.href to make the helpers download the iso.

1 Like

for test ... after test : :+1:

#!/usr/bin/bash

manjaros=("xfce" "kde" "gnome")
for desk in "${manjaros[@]}"; do
  echo -en "\n$desk \t"
  curl -sL https://manjaro.osdn.io/${desk}/latest | sed -e 's/\"/\n/g' | grep -Eo 'http.*iso$' -m1 
done

manjaros=("lxde" "openbox" "mate" "i3" "cinnamon" "budgie" "awesome" "bspwm" "deepin" "lxqt")
for desk in "${manjaros[@]}"; do
  echo -en "\n$desk \t"
  curl -sL https://manjaro-community.osdn.io/${desk}/latest | sed -e 's/\"/\n/g' | grep -Eo 'http.*iso$' -m1 
done
2 Likes

Forum kindly sponsored by