Skip to content

Commit

Permalink
feat(update): bump pycharm version to 2023.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornplusplus committed Feb 17, 2024
1 parent e7371bd commit d28bb5a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/pycharm_community.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

set -eux

PYCHARM_VERSION="2023.1.4"
PYCHARM_VERSION="2023.3.3"
PYCHARM_NAME="pycharm-community-${PYCHARM_VERSION}"

echo "\nInstall Pycharm Community $PYCHARM_VERSION ..\n"

# download pycharm community edition
# wget "data.services.jetbrains.com/products/download?code=PCC&platform=linux" -O pycharm.tar.gz
wget -c "https://download.jetbrains.com/python/pycharm-community-${PYCHARM_VERSION}.tar.gz"
wget -c "https://download.jetbrains.com/python/${PYCHARM_NAME}.tar.gz"

# download sha256sum file and verify the checksum
wget "https://download.jetbrains.com/python/pycharm-community-${PYCHARM_VERSION}.tar.gz.sha256" -O expected_sha256sum.txt
sha256sum pycharm-community-${PYCHARM_VERSION}.tar.gz >> actual_sha256sum.txt
wget "https://download.jetbrains.com/python/${PYCHARM_NAME}.tar.gz.sha256" -O expected_sha256sum.txt
sha256sum ${PYCHARM_NAME}.tar.gz >> actual_sha256sum.txt
cat actual_sha256sum.txt | sha256sum -c expected_sha256sum.txt

# extract and keep the files in /opt
tar -zxvf "pycharm-community-${PYCHARM_VERSION}.tar.gz"
mv "pycharm-community-${PYCHARM_VERSION}" /opt
tar -zxvf "${PYCHARM_NAME}.tar.gz"
mv "${PYCHARM_NAME}" /opt

# remove tar and hash files
rm "pycharm-community-${PYCHARM_VERSION}.tar.gz" actual_sha256sum.txt expected_sha256sum.txt
rm "${PYCHARM_NAME}.tar.gz" actual_sha256sum.txt expected_sha256sum.txt

# populate desktop entry
cat > jetbrains-pycharm-ce.desktop << EOF
Expand Down

0 comments on commit d28bb5a

Please sign in to comment.