geninfo.sh 391 B

1234567891011
  1. LATEST=$(curl https://www.gimp.org/downloads/ | grep -o 'mirror/pub/gimp/v[0-9.]*/windows/gimp-[0-9.]*-setup-*[0-9]*.exe' | sed '/torrent/d' | head -n1)
  2. LINK="https://download.gimp.org/$LATEST"
  3. wget -c "$LINK"
  4. SHA256=$(sha256sum $(basename $LATEST) | cut -d ' ' -f 1)
  5. cat > info << EOF
  6. url=${LINK}
  7. sha256sum=${SHA256}
  8. EOF
  9. echo "$(basename $LATEST) /silent /tasks=desktopicon" > install.bat