From 11825481f5efb6dc86dbf1b912452641ab962bc7 Mon Sep 17 00:00:00 2001 From: Hayden Stith Date: Sun, 10 Nov 2024 14:56:48 -0500 Subject: [PATCH 1/3] Add RustRover --- recipes/RustRover.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 recipes/RustRover.yml diff --git a/recipes/RustRover.yml b/recipes/RustRover.yml new file mode 100644 index 00000000..9b9e3f7c --- /dev/null +++ b/recipes/RustRover.yml @@ -0,0 +1,32 @@ +app: RustRover + +ingredients: + script: + - DLD=$(curl -LIs -o /dev/null -w %{url_effective} 'https://data.services.jetbrains.com/products/download?code=RR&platform=linux') + - wget --trust-server-names -c $DLD + - echo $DLD | cut -d/ -f5 | cut -d- -f2 | sed -e "s/.tar.gz//" > VERSION + +script: + - SHORTNAME=rustrover + - FULLNAME=RustRover + - VERSION=$(cat ../VERSION || true) + - mkdir -p opt/$SHORTNAME + - tar zxvf ../$FULLNAME-$VERSION.tar.gz --directory opt/$SHORTNAME --strip-components=1 + - ln -s ../../opt/$SHORTNAME/bin/$SHORTNAME usr/bin/$SHORTNAME + - cp opt/$SHORTNAME/bin/$SHORTNAME.png . + - cp opt/$SHORTNAME/bin/$SHORTNAME.svg . + - cat > $FULLNAME.desktop << EOF + - [Desktop Entry] + - Version=1.0 + - Type=Application + - Name=RustRover + - Icon=$SHORTNAME + - Exec=$SHORTNAME %f + - Comment=A powerhouse IDE for Rust developers + - Categories=Development;IDE; + - Terminal=false + - StartupWMClass=jetbrains-rustrover + - EOF + - rm -r opt/$SHORTNAME/jbr/legal/java.desktop + - rm -r opt/$SHORTNAME/jbr/legal/jdk.unsupported.desktop + - rm opt/$SHORTNAME/bin/fsnotifier* || true From c1c523787e0c54674113e95987580da26b89984d Mon Sep 17 00:00:00 2001 From: Hayden Stith Date: Sun, 10 Nov 2024 15:03:50 -0500 Subject: [PATCH 2/3] Stop Removing fsnotifier --- recipes/RustRover.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/recipes/RustRover.yml b/recipes/RustRover.yml index 9b9e3f7c..57408a0f 100644 --- a/recipes/RustRover.yml +++ b/recipes/RustRover.yml @@ -29,4 +29,3 @@ script: - EOF - rm -r opt/$SHORTNAME/jbr/legal/java.desktop - rm -r opt/$SHORTNAME/jbr/legal/jdk.unsupported.desktop - - rm opt/$SHORTNAME/bin/fsnotifier* || true From d6227f30fe9c8a1b0e8aa3028e7b03cf323675af Mon Sep 17 00:00:00 2001 From: Hayden Stith Date: Mon, 11 Nov 2024 12:23:12 -0500 Subject: [PATCH 3/3] Add CLion Recipe --- recipes/CLion.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 recipes/CLion.yml diff --git a/recipes/CLion.yml b/recipes/CLion.yml new file mode 100644 index 00000000..f0d2b9e2 --- /dev/null +++ b/recipes/CLion.yml @@ -0,0 +1,31 @@ +app: CLion + +ingredients: + script: + - DLD=$(curl -LIs -o /dev/null -w %{url_effective} 'https://data.services.jetbrains.com/products/download?code=CL&platform=linux') + - wget --trust-server-names -c $DLD + - echo $DLD | cut -d/ -f5 | cut -d- -f2 | sed -e "s/.tar.gz//" > VERSION + +script: + - SHORTNAME=clion + - FULLNAME=CLion + - VERSION=$(cat ../VERSION || true) + - mkdir -p opt/$SHORTNAME + - tar zxvf ../$FULLNAME-$VERSION.tar.gz --directory opt/$SHORTNAME --strip-components=1 + - ln -s ../../opt/$SHORTNAME/bin/$SHORTNAME usr/bin/$SHORTNAME + - cp opt/$SHORTNAME/bin/$SHORTNAME.png . + - cp opt/$SHORTNAME/bin/$SHORTNAME.svg . + - cat > $FULLNAME.desktop << EOF + - [Desktop Entry] + - Version=1.0 + - Type=Application + - Name=CLion + - Icon=$SHORTNAME + - Exec=$SHORTNAME %f + - Comment=A cross-platform IDE for C and C++ + - Categories=Development;IDE; + - Terminal=false + - StartupWMClass=jetbrains-clion + - EOF + - rm -r opt/$SHORTNAME/jbr/legal/java.desktop + - rm -r opt/$SHORTNAME/jbr/legal/jdk.unsupported.desktop