Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Making a deb package for JDownloader

  1. #11
    Join Date
    Apr 2006
    Beans
    996
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Making a deb package for JDownloader

    a deb package would help in a regard, usually Java apps start with a very small memory limit, if I remember correctly, jDownloader needs -xms512 to work in its command line arguments, and making a deb package for it so that it calls it with this argument automatically would be a good idea.
    Xye incredibly difficult puzzle game with minimal graphics. Also at playdeb
    Got a blog: Will Stay Free

  2. #12
    Join Date
    Dec 2006
    Beans
    217

    Re: Making a deb package for JDownloader

    Quote Originally Posted by vexorian View Post
    a deb package would help in a regard, usually Java apps start with a very small memory limit, if I remember correctly, jDownloader needs -xms512 to work in its command line arguments, and making a deb package for it so that it calls it with this argument automatically would be a good idea.
    how would you make a deb pacakge do that?
    It'd be easier to just alias it.

    Code:
    echo 'alias jDownloader="jDownloader -xms512"' >> .bashrc

  3. #13
    Join Date
    Apr 2006
    Beans
    996
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Making a deb package for JDownloader

    Easier for you and me. A .deb package would bother setting that stuff up for normal users.
    Xye incredibly difficult puzzle game with minimal graphics. Also at playdeb
    Got a blog: Will Stay Free

  4. #14
    Join Date
    Apr 2009
    Location
    Denmark
    Beans
    221

    Re: Making a deb package for JDownloader

    Quote Originally Posted by Xbehave View Post
    how would you make a deb pacakge do that?
    It'd be easier to just alias it.

    Code:
    echo 'alias jDownloader="jDownloader -xms512"' >> .bashrc
    i checked jd.sh and it seems that it already does -xms512 (or not?):

    Code:
    #!/bin/bash
    #JD Installer/Starter Version 0.2
    #by Jiaz(JD-Team), jiaz@jdownloader.org
    #You need at least:
    #1.) bash (its a bash script ;) )
    #2.) wget 
    #3.) Java Version >= 1.5 (OpenJDK works also in latest Version)
    
    #How to use this?
    #1.) chmod +x jd.sh
    #2.) Place it anywhere you want
    #3.) Running jd.sh for the first time will install and setup JD into JDDIR folder
    #4.) Running jd.sh after the first time will start JDownloader directly
    
    #Parameters
    # update (will perform an update)
    
    #JD Installation folder (adjust to your needs)
    JDDIR=~/.jd
    #default path to our install/update tool (DO NOT Change this)
    JDINSTALLER=http://update0.jdownloader.org/jdupdate.jar
    
    if [ -e $JDDIR ]
    then
    if [ "$1" = "update" ]
    then
    if [ -e $JDDIR/jdupdate.jar ]
    then
    cd $JDDIR
    echo "Start JD-Updater"
    java -Xmx512m -jar jdupdate.jar
    exit
    else
    echo "Cannot start JD-Updater: Download/Start JD-Installer"
    cd $JDDIR
    wget $JDINSTALLER
    java -Xmx512m -jar jdupdate.jar
    exit
    fi
    fi
    if [ -e $JDDIR/JDownloader.jar ]
    then
    echo "JD Installation found: Starting JD now"
    cd $JDDIR
    #java -Xmx512m -jar JDownloader.jar --add-links $1 $2 $3 $4 $5 $6 $7 $8 $9
    java -Xmx512m -jar JDownloader.jar
    exit
    else
    echo "JD Installation found: No valid JDownloader.jar exist!"
    fi
    if [ -e $JDDIR/jdupdate.jar ]
    then
    cd $JDDIR
    echo "Start JD-Updater"
    java -Xmx512m -jar jdupdate.jar
    else
    echo "Cannot start JD-Updater: Download/Start JD-Installer"
    cd $JDDIR
    wget $JDINSTALLER
    java -Xmx512m -jar jdupdate.jar
    exit
    fi
    else
    echo "Download/Start JD-Installer"
    mkdir $JDDIR
    cd $JDDIR
    wget $JDINSTALLER
    java -Xmx512m -jar jdupdate.jar
    exit
    fi
    Last edited by infestor; November 8th, 2009 at 01:51 AM.
    When the seagulls follow the trawler, it is because they think sardines will be thrown into the sea.

  5. #15
    Join Date
    May 2006
    Beans
    180
    Distro
    Xubuntu 8.04 Hardy Heron

    Re: Making a deb package for JDownloader

    hi
    so did anyone try to package it ? any url of tracker or dsc ?
    --
    http://rzr.online.fr/q/itp
    # http://rzr.online.fr/q/apt # test my deb's please
    # http://rzr.online.fr/q/ubuntu # contribs docs etc
    # http://rzr.online.fr/q/unicorn # works for me
    # http://go.cur.lv/files# files to be shared or email me

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •