diff --git a/Installomator.sh b/Installomator.sh index 83defc4..ff83a9f 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -1634,22 +1634,28 @@ jetbrainsphpstorm) ;; jetbrainspycharm) # credit: Adrian Bühler (@midni9ht) + # This is the Pro version of PyCharm. + # Do not confuse with PyCharm CE. name="PyCharm" type="dmg" appNewVersion=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release" | grep -o 'version*.*,' | cut -d '"' -f3) if [[ $(arch) == i386 ]]; then - downloadURL=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release" | grep -o "mac*.*.dmg" | cut -d '"' -f5) + downloadURL="https://download.jetbrains.com/product?code=PCP&latest&distribution=mac" elif [[ $(arch) == arm64 ]]; then - downloadURL=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release" | grep -o "macM1*.*.dmg" | cut -d '"' -f5) + downloadURL="https://download.jetbrains.com/product?code=PCP&latest&distribution=macM1" fi - appNewVersion=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release" | grep -o 'version*.*,' | cut -d '"' -f3) expectedTeamID="2ZEFAR8TH3" ;; jetbrainspycharmce|\ pycharmce) name="PyCharm CE" type="dmg" - downloadURL="https://download.jetbrains.com/product?code=PCC&latest&distribution=mac" + appNewVersion=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=PCC&latest=true&type=release" | grep -o 'version*.*,' | cut -d '"' -f3) + if [[ $(arch) == i386 ]]; then + downloadURL="https://download.jetbrains.com/product?code=PCC&latest&distribution=mac" + elif [[ $(arch) == arm64 ]]; then + downloadURL="https://download.jetbrains.com/product?code=PCC&latest&distribution=macM1" + fi expectedTeamID="2ZEFAR8TH3" #Company="JetBrains" ;;