geninfo.sh 285 B

1234567891011
  1. LATEST=$(curl https://www.7-zip.org/ | grep -o 'a/7z.*x64.exe' | head -n1)
  2. LINK="https://www.7-zip.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) /S" > install.bat