6 lines
918 B
Bash
6 lines
918 B
Bash
#!/bin/bash
|
|
|
|
webVer=$(curl 'https://data.services.jetbrains.com/products/releases?code=IIU%2CIIC&latest=true&type=release' -H 'authority: data.services.jetbrains.com' -H 'sec-ch-ua: "Chromium";v="95", ";Not A Brand";v="99"' -H 'accept: application/json, text/javascript, */*; q=0.01' -H 'sec-ch-ua-mobile: ?0' -H 'user-agent: Mozilla/5.0 (X11; CrOS armv7l 13597.84.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.78 Safari/537.36' -H 'sec-ch-ua-platform: "Linux"' -H 'origin: https://www.jetbrains.com' -H 'sec-fetch-site: same-site' -H 'sec-fetch-mode: cors' -H 'sec-fetch-dest: empty' -H 'referer: https://www.jetbrains.com/' -H 'accept-language: en-US,en;q=0.9' --compressed -s | jq | grep -m 1 version | sed 's/.*: //g; s/,//g; s/"//g')
|
|
arm64_url="https://download.jetbrains.com/idea/ideaIC-${webVer}.tar.gz"
|
|
|
|
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh |