From 54cf6ca9b3906887d2e8e54b1731ede2677f892b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20B=C3=BChler?= <48823479+midni9ht@users.noreply.github.com> Date: Mon, 12 Apr 2021 20:03:11 +0200 Subject: [PATCH 1/3] Added URL for Apple Silicon to PyCharm CE Added URL for Apple Silicon to PyCharm CE. Also added appNewVersion. --- Installomator.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Installomator.sh b/Installomator.sh index 6bec37c..748a41a 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -1628,7 +1628,12 @@ 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" ;; From bd71675961d20b732d3a9507d6784ec90952fca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20B=C3=BChler?= <48823479+midni9ht@users.noreply.github.com> Date: Mon, 12 Apr 2021 20:09:10 +0200 Subject: [PATCH 2/3] Added simplified URLs for jetbrainspycharm There are direct links for Intel and Apple Silicon packages of PyCharm Pro available. Replaced the existing URLs with the simplified ones. Also corrected a doubled 'appNewVersion' line. --- Installomator.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Installomator.sh b/Installomator.sh index 748a41a..d76c77d 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -1617,11 +1617,10 @@ jetbrainspycharm) 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|\ From c3514d247f61c75823122c97ea595f85510212ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20B=C3=BChler?= <48823479+midni9ht@users.noreply.github.com> Date: Mon, 12 Apr 2021 20:12:34 +0200 Subject: [PATCH 3/3] Update Installomator.sh --- Installomator.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Installomator.sh b/Installomator.sh index d76c77d..cbd8839 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -1613,6 +1613,8 @@ 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)