From 67b51d1866cbe0c5717450ef34f3b33e857d35db Mon Sep 17 00:00:00 2001 From: gmpinder Date: Fri, 9 Jun 2023 23:50:36 -0400 Subject: [PATCH] Install rubymine --- recipe-framework.yml | 1 + scripts/install-intellij.sh | 2 +- scripts/install-rubymine.sh | 30 ++++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 scripts/install-rubymine.sh diff --git a/recipe-framework.yml b/recipe-framework.yml index 6fca2f8..4c4bef7 100644 --- a/recipe-framework.yml +++ b/recipe-framework.yml @@ -8,6 +8,7 @@ scripts: post: - autorun.sh - enable-fingerprintd.sh + - install-rubymine.sh rpm: # 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. diff --git a/scripts/install-intellij.sh b/scripts/install-intellij.sh index 52d128b..0579f93 100644 --- a/scripts/install-intellij.sh +++ b/scripts/install-intellij.sh @@ -2,7 +2,7 @@ set -eou pipefail # 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 curl -L -o /tmp/ideaIC-${VERSION}.tar.gz https://download.jetbrains.com/idea/ideaIC-${VERSION}.tar.gz diff --git a/scripts/install-rubymine.sh b/scripts/install-rubymine.sh new file mode 100644 index 0000000..9454a63 --- /dev/null +++ b/scripts/install-rubymine.sh @@ -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 <