Skip to content

Commit

Permalink
Fixing eclipse Recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
fusion809 committed Sep 6, 2016
1 parent 8fa0174 commit b0134a0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
8 changes: 7 additions & 1 deletion recipes/eclipse/Recipe
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
APP="eclipse-cpp"
LAPP=${APP//-cpp/}
VERSION=4.6.0
echo $VERSION

mkdir -p $APP/$APP.AppDir/usr/bin

Expand All @@ -16,6 +15,9 @@ cd $APP/

wget -c "http://mirror.internode.on.net/pub/$LAPP/technology/epp/downloads/release/neon/R/$LAPP-cpp-neon-R-linux-gtk-x86_64.tar.gz"

# Get Java
wget -c --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u66-b17/jre-8u66-linux-x64.tar.gz

cd $APP.AppDir/

wget -c "https://github.com/probonopd/AppImageKit/releases/download/5/AppRun" # (64-bit)
Expand All @@ -27,6 +29,10 @@ rm -rf usr/$LAPP

mv usr/bin/eclipse usr/bin/eclipse-cpp

# Install java
tar xf ../jre*
( cd ./eclipse-* ; mkdir -p jre ; cd jre ; mv ../../jre* ./jre )

cat > $APP.desktop <<EOF
[Desktop Entry]
Version=1.0
Expand Down
18 changes: 9 additions & 9 deletions recipes/netbeans/Recipe
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
APP="netbeans"
VERSION=8.1
LVER=201510222201
echo $VERSION

rm -rf $APP/$APP.AppDir
mkdir -p $APP/$APP.AppDir/usr/bin

cd $APP/
Expand All @@ -31,17 +31,17 @@ Type=Application
Name=$APP
Icon=$APP
Exec=$APP.wrapper
Categories=Development;IDE;Java;C++;C;PHP
Categories=Development;IDE;
Terminal=false
EOF

find usr \
-name "docs" -exec rm -rf '{}' \; \
-or -name "*.exe" -exec rm '{}' \; \
-or -name "*.pdf" -exec rm '{}' \; \
-or -name "*.png" -exec rm '{}' \; \
-or -name "locale" -exec rm -rf '{}' \; \
-or -name "*.zip" -exec rm '{}' +
#find usr \
# -name "docs" -exec rm -rf '{}' \; \
# -or -name "*.exe" -exec rm '{}' \; \
# -or -name "*.pdf" -exec rm '{}' \; \
# -or -name "*.png" -exec rm '{}' \; \
# -or -name "locale" -exec rm -rf '{}' \; \
# -or -name "*.zip" -exec rm '{}' +

# Move out of $APPDIR
wget -O ./usr/bin/$APP.wrapper https://raw.githubusercontent.com/probonopd/AppImageKit/master/desktopintegration
Expand Down

0 comments on commit b0134a0

Please sign in to comment.