Install rubymine
This commit is contained in:
@@ -8,6 +8,7 @@ scripts:
|
|||||||
post:
|
post:
|
||||||
- autorun.sh
|
- autorun.sh
|
||||||
- enable-fingerprintd.sh
|
- enable-fingerprintd.sh
|
||||||
|
- install-rubymine.sh
|
||||||
rpm:
|
rpm:
|
||||||
# A list of urls of ".repo" files that should be added to your system.
|
# A list of urls of ".repo" files that should be added to your system.
|
||||||
# This is the proper way to add custom COPR repos to your image.
|
# This is the proper way to add custom COPR repos to your image.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
set -eou pipefail
|
set -eou pipefail
|
||||||
|
|
||||||
# Version number
|
# Version number
|
||||||
VERSION=$(curl -s "https://blog.jetbrains.com/idea/" | grep -oP 'IntelliJ IDEA \K[0-9]+\.[0-9]+\.[0-9]*' | head -1)
|
VERSION="2023.1.2"
|
||||||
|
|
||||||
# Download https://download.jetbrains.com/idea/ideaIC-${VERSION}.tar.gz
|
# Download https://download.jetbrains.com/idea/ideaIC-${VERSION}.tar.gz
|
||||||
curl -L -o /tmp/ideaIC-${VERSION}.tar.gz https://download.jetbrains.com/idea/ideaIC-${VERSION}.tar.gz
|
curl -L -o /tmp/ideaIC-${VERSION}.tar.gz https://download.jetbrains.com/idea/ideaIC-${VERSION}.tar.gz
|
||||||
|
|||||||
30
scripts/install-rubymine.sh
Normal file
30
scripts/install-rubymine.sh
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -eou pipefail
|
||||||
|
|
||||||
|
# Version number
|
||||||
|
VERSION="2023.1.2"
|
||||||
|
|
||||||
|
# Download https://download.jetbrains.com/ruby/RubyMine-2023.1.2.tar.gz
|
||||||
|
curl -L -o /tmp/RubyMine-${VERSION}.tar.gz https://download.jetbrains.com/ruby/RubyMine-${VERSION}.tar.gz
|
||||||
|
|
||||||
|
# Extract to /usr/opt
|
||||||
|
mkdir -p /usr/opt
|
||||||
|
tar -xzf /tmp/RubyMine-${VERSION}.tar.gz -C /usr/opt
|
||||||
|
|
||||||
|
# Find the full path to the RubyMine directory
|
||||||
|
RUBYMINE_PATH=$(ls -d /usr/opt/RubyMine-*)
|
||||||
|
|
||||||
|
# Create .desktop file
|
||||||
|
cat > /tmp/rubymine.desktop <<EOL
|
||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Name=RubyMine
|
||||||
|
Icon=$RUBYMINE_PATH/bin/rubymine.png
|
||||||
|
Exec="$RUBYMINE_PATH/bin/rubymine.sh" %f
|
||||||
|
Terminal=false
|
||||||
|
Categories=Development;IDE;
|
||||||
|
EOL
|
||||||
|
|
||||||
|
# Make the application available to all users
|
||||||
|
sudo mv /tmp/rubymine.desktop /usr/share/applications/
|
||||||
Reference in New Issue
Block a user