Skip to content

Commit

Permalink
feat: install Eclipse Java IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornplusplus committed Feb 17, 2024
1 parent 2ed2888 commit e7371bd
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions scripts/eclipse.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

set -eux

ECLIPSE_VERSION="2023-12"

# download eclipse: https://www.eclipse.org/downloads/packages/
wget -c -O "eclipse.tar.gz" \
"https://mirror.kakao.com/eclipse/technology/epp/downloads/release/${ECLIPSE_VERSION}/R/eclipse-java-${ECLIPSE_VERSION}-R-linux-gtk-x86_64.tar.gz"

# extract and keep the files in /opt
tar -zxvf eclipse.tar.gz
mv "eclipse" /opt

# remove the tarball
rm eclipse.tar.gz

cat >eclipse.desktop <<EOF
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse
Name[en_US]=Eclipse
EOF

# copy the desktop entry to appropriate location
mv eclipse.desktop /usr/share/applications/
1 change: 1 addition & 0 deletions scripts/run_order.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ codeblocks.sh
geany.sh
pycharm_community.sh
intellij_idea_community.sh
eclipse.sh

# --- Additional support packages ---
openssh_server.sh
Expand Down

0 comments on commit e7371bd

Please sign in to comment.