Page 1 of 2 12 LastLast
Results 1 to 20 of 25
  1. xorg's Avatar
    Posts
    633 Posts
    Global Posts
    1,010 Global Posts
       #1  
    If you have an application running and are ready to test on a non-rooted stock Pre, see this guide. (Note, this guide still works for packaging an app with a signature, but installing over email no longer applies.)

    pre dev wiki: Installing Homebrew Apps on Stock Pre without Rooting



    If you need help with packaging, see this thread...

    http://forums.precentral.net/web-os-...t-rooting.html



    If you'd like to develop your own webOS apps, see this guide...

    pre dev wiki: Building webOS / Mojo Applications


    Edit: Since OS1.04 update disabled the email link method, we have another consumer friendly method to install apps on this page...

    http://predev.wikidot.com/installing...st-1-04-update
    Last edited by xorg; 07/14/2009 at 11:56 AM.
  2. Drybonz's Avatar
    Posts
    38 Posts
    Global Posts
    89 Global Posts
    #2  
    This should be stickied.
  3. #3  
    Awesome! This is what I was looking for. A nice compilation of everything in one place.

  4. #4  
    Quote Originally Posted by xorg View Post
    If you have an application running and are ready to test on a non-rooted stock Pre, see this guide...

    pre dev wiki: Installing Homebrew Apps on Stock Pre without Rooting



    If you need help with packaging, see this thread...

    http://forums.precentral.net/web-os-...t-rooting.html



    If you'd like to develop your own webOS apps, see this guide...

    pre dev wiki: Building webOS / Mojo Applications
    Great, Thanks
  5. xorg's Avatar
    Posts
    633 Posts
    Global Posts
    1,010 Global Posts
       #5  
    To help kick homebrew into gear a little faster. I'd be willing to do the packaging for the first few developers who PM me. I won't be able to do this long term, but am willing to help the first few in order to pick up the pace. Please don't contact me unless you have a fully functioning app ready to test. - xorg
  6. #6  
    Awesome xorg! thanks for this.!
  7. #7  
    With the leaked SDK, do we still need to follow your guide to package a homebrew app? Or is there a limitation to the ipks the SDK generates?
  8. #8  
    I haven't done anything to generate a key for the ipk packages I've been installing on the emulator and Pre via Usb. So I would doubt these are signed. I haven't tried doing the email ipk link install, because the palm_install -d usb is just too easy. Although that requires a USB connection and being in Dev mode, I believe.
  9. xorg's Avatar
    Posts
    633 Posts
    Global Posts
    1,010 Global Posts
       #9  
    It sounds like the sdk doesn't yet allow sideloading to stock Pre yet. Have to be in dev mode to use sdk method. Not sure though.
  10. #10  
    So, I'm following this guide

    pre dev wiki: Installing Homebrew Apps on Stock Pre without Rooting
    to make sure I have my app packaged up correctly & I'm able to do everything except this step:

    Code:
    tarball your entire app directory into data.tar.gz with the P flag to get absolute paths with a leading /. Not all distros have P flag in tar. You may need to get/use gnutar.
    tar cvPzf data.tar.gz /usr/palm/applications/(your application folder)
    I get this error in Terminal on my mac
    Code:
    tar: Error exit delayed from previous errors


    I'm able to create a package by modifying the data.tar.gz in BetterZip on my mac & just replacing the "com.simplyflipflops" folder with my "com.jackintheboxsoftwareinc.app.googleos" but then the when I enter

    Code:
    tar tzvf data.tar.gz
    the root folder shows up as "usr/", not "/usr/" as it should be. Any other Mac users having this problem? Any help would be greatly appreciated.
  11. xorg's Avatar
    Posts
    633 Posts
    Global Posts
    1,010 Global Posts
       #11  
    You might need 'gnutar' for Mac. It has full support of absolute path and all tar functions.
  12. #12  
    Couldn't think of any other place to put this...

    Copy, paste and save as palm-generate in ./sdk/bin directory. Make it executable.

    #!/bin/sh
    #
    # Script to generate basic Palm Pre Application
    #
    # Absolute path to this script. /home/user/bin/foo.sh
    SCRIPT=$(readlink -f $0)
    # Absolute path this script is in. /home/user/bin
    SCRIPTPATH=`dirname $SCRIPT`
    # SDK Directory
    PalmSDK=`dirname $SCRIPTPATH`
    #echo $SCRIPT
    #echo $SCRIPTPATH
    #echo $PalmSDK

    if [ $# -ne 1 ] # Correct number of arguments passed to script?
    then
    echo "Usage: `basename $0` <application name>"
    exit
    fi


    # the main class
    MAIN_CLASS=com.palm.generator.Generator

    # the jar files
    JARS="Generator.jar ToolsUtil.jar jargs.jar json.jar velocity-1.6.1-dep.jar"

    # the command name
    PALM_COMMAND=`basename $SCRIPT`
    echo $PALMSDK
    if ! [ -d $PalmSDK ]
    then
    echo "$PALM_COMMAND: PalmSDK variable not set"
    exit
    fi

    SDK_DIR=$PalmSDK

    # the jars location
    JARS_DIR=$SDK_DIR/share/jars

    # build the classpath
    CP=""
    for x in $JARS; do CP="$CP:$JARS_DIR/$x"; done
    #echo $CP
    CLASSPATH=$CP

    # pass command to java
    JAVA_OPTS=-Dpalm.command="$PALM_COMMAND"

    # start our Java app and pass in the arguments
    java -cp $JARS_DIR -classpath $CLASSPATH $JAVA_OPTS $MAIN_CLASS "$1"
  13. #13  
    And here is the palm-package script...

    #!/bin/sh
    #
    # Script to package Palm Pre Application
    #
    # Absolute path to this script. /home/user/bin/foo.sh
    SCRIPT=$(readlink -f $0)
    # Absolute path this script is in. /home/user/bin
    SCRIPTPATH=`dirname $SCRIPT`
    # SDK Directory
    PalmSDK=`dirname $SCRIPTPATH`
    #echo $SCRIPT
    #echo $SCRIPTPATH
    #echo $PalmSDK

    if [ $# -ne 1 ] # Correct number of arguments passed to script?
    then
    echo "Usage: `basename $0` <application name>"
    exit
    fi

    # the main class
    MAIN_CLASS=com.palm.packager.Packager

    # the jar files
    JARS="Packager.jar ToolsUtil.jar jargs.jar json.jar"

    # the command name
    PALM_COMMAND=`basename $SCRIPT`
    echo $PALMSDK
    if ! [ -d $PalmSDK ]
    then
    echo "$PALM_COMMAND: PalmSDK variable not set"
    exit
    fi

    SDK_DIR=$PalmSDK

    # the jars location
    JARS_DIR=$SDK_DIR/share/jars

    # build the classpath
    CP=""
    for x in $JARS; do CP="$CP:$JARS_DIR/$x"; done
    #echo $CP
    CLASSPATH=$CP

    # pass command to java
    JAVA_OPTS=-Dpalm.command="$PALM_COMMAND"

    # start our Java app and pass in the arguments
    java -cp $JARS_DIR -classpath $CLASSPATH $JAVA_OPTS $MAIN_CLASS "$1"

    Haven't figured out the palm-install script yet.
  14. #14  
    Updated the linux scripts palm-generate and palm-package to allow all options to pass through. The files should be installed in the ./sdk/bin/ and chmod 755 the files. Still have not figured out the palm-install and palm-emulator.
    Attached Files Attached Files
  15. #15  
    ok... I need some help, maybe you guys could help. I was looking for a texas holdem timer for the palm pre and I couldn't find one... but I ran into a webapp for the iphone. If I give someone the source code would it be able to be converted for the palm pre? I tried to access the webapp with the pre but it doesnt work properly. THANKS!
  16. falz's Avatar
    Posts
    21 Posts
    Global Posts
    31 Global Posts
    #16  
    Quote Originally Posted by 1lnxraider View Post
    Updated the linux scripts palm-generate and palm-package to allow all options to pass through. The files should be installed in the ./sdk/bin/ and chmod 755 the files. Still have not figured out the palm-install and palm-emulator.
    Thanks for this, I began porting the palm-install script then found yours, those scripts are 95% the same. I cannot seem to get palm-install to work either, are you stuck on

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/palm/generator/Installer
    Or something else? Also the scripts you have ported won't work if the SDK is installed in a dir with spaces. I was too lazy to fix and instead moved them to a spot without spaces in its path.
  17. #17  
    2 Requests from Devs when you are able, as I think some have issues with creating a Menu still:

    In the Title of your App's post, can you give the current version number?
    In the App menu, can you add the version # to the About? That way users can know for sure what version we have and if it is the most up-to-date. I've noticed a few of these apps don't show the version at all in the app.

    Thanks. Keep up the good work. You are all doing very well. I'm loving the apps. Very creative.
  18. #18  
    Quote Originally Posted by falz View Post
    Thanks for this, I began porting the palm-install script then found yours, those scripts are 95% the same. I cannot seem to get palm-install to work either, are you stuck on

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/palm/generator/Installer
    Or something else? Also the scripts you have ported won't work if the SDK is installed in a dir with spaces. I was too lazy to fix and instead moved them to a spot without spaces in its path.
    The error I keep getting is "connection refused". I corrected the issue you mentioned. Well at least I believe I have... (smile)
    Attached Files Attached Files
    Last edited by 1lnxraider; 07/13/2009 at 06:52 PM. Reason: Attachment not uploaded
  19. Leke's Avatar
    Posts
    597 Posts
    Global Posts
    603 Global Posts
    #19  
    For the life of me this is not working I got about two programs that I'd like to package and putty keeps crapping out on me
  20. xorg's Avatar
    Posts
    633 Posts
    Global Posts
    1,010 Global Posts
       #20  
    Try this new method, which is just about ready to replace the SDK method...

    pre dev wiki: Installing Apps on a Stock Pre (Post-Update 1.04)
Page 1 of 2 12 LastLast

Posting Permissions