Update Pycharm to 2020.3.3

pull/931/head
Botspot 4 years ago
parent 0c93e94d04
commit 064eb8a773

@ -1,2 +1 @@
Thanks to gam3t3chelectronicshobbyhouse a.k.a 'Gam3t3ch' for "Installing PyCharm on Raspberry Pi 4" from element14. Also, fabianmendes for introducing it into pi-apps.
Pycharm Community EDITION (product, created and published by JetBrains. Developed with drive and IntelliJ IDEA) Copyright © 2000-2020 JetBrains s.r.o.

@ -1,5 +1,6 @@
Python Community Edition IDE for Professional and Educational Developers.
To run this app just go to Menu > Programming. Or just run on terminal: "./opt/pycharm-community/bin/pycharm.sh"
To run: Menu -> Programming -> Pycharm Community Edition
To run in a terminal: /opt/pycharm-community/bin/pycharm.sh
You must configurate the IDE to run each script ("py" file), or create a new environment.
For Educational purposes, you must to install the "EDUtools" plugin. Go to the right below corner from the Pycharm start up portal: Configurate > Plugins > Search for: EDUtools > Install it and restart the IDE. Then you will able to select "Learn and Teach" for courses.
You must configure the IDE to run each script ("py" file), or create a new environment.
For Educational purposes, the "EDUtools" plugin can be installed. Go to the right corner from the Pycharm start up portal: Configurate > Plugins > Search for: EDUtools > Install it and restart the IDE. Then you will able to select "Learn and Teach" for courses.

@ -12,45 +12,41 @@ downloadlink=https://download-cf.jetbrains.com/python/pycharm-community-2020.3.3
name=pycharm-community
# Get dependencies
"${DIRECTORY}/pkg-install" "python-pip openjdk-11-jdk" "$(dirname "$0")" || exit 1
"${DIRECTORY}/pkg-install" "python3-pip openjdk-11-jdk" "$(dirname "$0")" || exit 1
#Removing if pycharm-community-2020.3.3.tar.gz already downloaded
rm $name.tar.gz
echo "Downloading pycharm-community-2020.3.3.tar.gz"
rm -f $name.tar.gz
wget $downloadlink -O $name.tar.gz || error "Failed to download $(basename "$downloadlink")"
#Removing pycharm-community-2020.3.3 if already extracted
sudo rm -r /opt/$name
#Downloading pycharm-community-2020.3.3.tar.gz
wget $downloadlink -O $name.tar.gz
#Extracting pycharm-community-2020.3.3.tar.gz to /opt
sudo mkdir /opt/$name
sudo tar xvzf $name.tar.gz -C /opt/$name
echo "Extracting pycharm-community-2020.3.3.tar.gz to /opt"
sudo rm -rf /opt/$name
sudo mkdir -p /opt/$name
sudo tar xvzf $name.tar.gz -C /opt/$name || error "Failed to extract $name.tar.gz"
rm -f $name.tar.gz
sudo mv /opt/$name/*/* /opt/$name/
#Deleting pycharm-community-2020.3.3.tar.gz
rm $name.tar.gz
#Making file executable
echo "Making file executable"
sudo chmod +x /opt/$name/bin/pycharm.sh
#Implementing terminal fix
git clone https://github.com/JetBrains/pty4j.git ~/pty4j
echo "Implementing terminal fix"
rm -rf ~/pty4j
git clone https://github.com/JetBrains/pty4j.git ~/pty4j || error "Failed to download pty4j repository"
cd ~/pty4j/native
gcc -fPIC -c *.c
gcc -shared -o libpty.so *.o
sudo mkdir /opt/$name/lib/pty4j-native/linux/arm
sudo cp libpty.so /opt/$name/lib/pty4j-native/linux/arm
sudo rm -r ~/pty4j
#Creating desktop shortcut
gcc -fPIC -c *.c || error "command failed: gcc -fPIC -c *.c"
gcc -shared -o libpty.so *.o || error "command failed: gcc -shared -o libpty.so *.o"
sudo mkdir /opt/$name/lib/pty4j-native/linux/arm || error "Failed to make directory /opt/$name/lib/pty4j-native/linux/arm"
sudo cp libpty.so /opt/$name/lib/pty4j-native/linux/arm || error "Failed to copy $(pwd)/libpty.so to /opt/$name/lib/pty4j-native/linux/arm"
rm -rf ~/pty4j
cd ~/
echo "Creating desktop shortcut"
echo "[Desktop Entry]
Type=Application
Name=PyCharm Community Edition
Icon=/opt/$name/bin/pycharm.svg
Exec=/opt/$name/bin/pycharm.sh %f
Exec=bash -c "\""JAVA_HOME=/usr/lib/jvm/java-11-openjdk-armhf PATH=/usr/lib/jvm/java-11-openjdk-armhf/bin/:$PATH /opt/$name/bin/pycharm.sh"\""
Comment=Python IDE for Professional Developers
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-pycharm-ce" > ~/.local/share/applications/jetbrains-pycharm-ce.desktop
StartupWMClass=jetbrains-pycharm-ce
StartupNotify=true" > ~/.local/share/applications/jetbrains-pycharm-ce.desktop

@ -7,11 +7,12 @@ function error {
exit 1
}
#if your app installs any packages, keep this command here so those packages will be removed.
#Defining Variables
name=pycharm-community
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
#deleting /opt/pycharm-community directory
sudo rm -rf /opt/pycharm-community || error "Failed to delete /opt/pycharm-community directory"
echo "Deleting /opt/$name directory"
sudo rm -rf /opt/$name || error "Failed to delete /opt/$name directory"
#deleting desktop entry
rm ~/.local/share/applications/jetbrains-pycharm-ce.desktop || error "Failed to delete desktop entry"
rm -f ~/.local/share/applications/jetbrains-pycharm-ce.desktop

Loading…
Cancel
Save