geninfo.sh 308 B

1234567891011
  1. LATEST=$(curl 'https://gajim.org/download/' | grep -o 'downloads/[0-9.]*/[Gg]ajim-[0-9.]*-64bit.*\.exe')
  2. LINK="https://gajim.org/$LATEST"
  3. wget "$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) /S" > install.bat