webOS Nation Forums >  webOS Developer Forums >  Canuck Coding > Ipk Packager
Ipk Packager
  Reply
Like Tree5Likes

 
Thread Tools Display Modes
Old 09/29/2011, 11:20 PM   #41 (permalink)
Member
 
Posts: 5
Default

Strange behavior when running the ipk packager. I have Java 1.6 (27) and 1.7 runtime installed in vista. When I run the ipk packager jar file (by right clicking and selecting open), only a small window appears. I clicked on the jar file a bunch of times (maybe 7) and then finally the ipk packager program runs.

Then after I close it, I can't get it to run again, only the small window.

When I select open with - only the Java Platform SE Binary appears as an option. Is that right?

It doesn't matter if I disable either the 1.6 or 1.7 versions of the runtime, still same results. Any ideas?
touchpaduser1 is offline   Reply With Quote
Old 10/03/2011, 03:31 AM   #42 (permalink)
Member
 
Posts: 1
Default

palm-package has options: PKG_DIR [APP_DIR] [SERVICE_DIR...]
How to enter APP_DIR and SERVICE_DIR into the Ipk packager?
Or are you using some default directory names?
jaivuk is offline   Reply With Quote
Old 10/17/2011, 04:02 PM   #43 (permalink)
Member
 
Posts: 517
Default

Just noting I also had trouble when loading in (K)Ubuntu 10.04. Running the jar also created a tiny window that couldn't be resized. I cheated... clicked window icon -> Advanced -> Special Window Settings... -> Geometry tab -> Check "Size" with option "Force" set to "800,600". Got the job done, anyhow!


Code:
java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
ananimus is offline   Reply With Quote
Old 12/25/2011, 03:24 PM   #44 (permalink)
Member
 
Posts: 62
Default

I get the same unresizable window in windows 7. What's wrong?
carguy303 is offline   Reply With Quote
Old 05/21/2012, 10:57 AM   #45 (permalink)
Member
 
Posts: 75
Default

Hmm any ideas?

~/Downloads$ java -jar jpkg-webos.jar
Failed to load Main-Class manifest attribute from
jpkg-webos.jar
~/Downloads$ java -version
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.2)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)


all the other java stuff is working fine (webosdoc, unified-diff-creator)
nichtwirklich is offline   Reply With Quote
Old 11/28/2012, 02:26 AM   #46 (permalink)
33
Member
 
33's Avatar
 
Posts: 97
Default

sorry to resurrect this thread, but hopefully this is a good question...
i've been away from webOS and on android for the last two years; with android, you can create a zip package with desired modified file structure and an updater-script (instruction set) to overwrite individual files or the entire system partition.
wondering if i can use ipk packager in a similar way to make an ipk that includes a modified file structure and a sh script to copy the files and change permsissions etc.? (like a zip / updater-script in android).
33 is offline   Reply With Quote
Old 12/16/2012, 01:00 AM   #47 (permalink)
Member
 
Posts: 6
Default

how to change default path from /media/cryptofs/apps to something else, like media/internals/wallpaper?
whatever i set in data.tar.gz file goes to default /media/cryptofs/apps folder.

thanks!



Quote:
Originally Posted by Jason Robitaille View Post
Ipk Packager v1.5

This is a simply utility to quickly build ipk files. It's cross-platform, so virtually anyone can use it.

Supports the full range of webOS ipk features, including postinst/prerm scripts and the source JSON details.

Uses my custom jpkg-webos library: jpkg-webos - Project Hosting on Google Code

Follows the WebOS-Internals packaging standard: Packaging Standards - WebOS Internals


In addition, if the folder you select is a webOS app folder (as most would be), several of the text field will auto-load from the appinfo.json file. Saves time that way



Download Here


Click to view quoted image
Click to view quoted image


This is an MIT opensource release: ipk-packager - Project Hosting on Google Code

I made this app for 2 reasons: (1) I wanted to test out jpkg-webos java library and (2) for homebrew developers. Testing was successful, so here's it's first public release.

Up until now, the only way to create advanced homebrew ipk packages (with postinst/prerm scripts) was via Linux commandline scripts. Now, anyone can, and little knowledge is needed.

Hopefully this can help others, in the same way Unified Diff Creator has helped others


Change Log
v1.5 - January 3, 2011
- Re-added Source field for json
- Added MinWebOSVersion and MaxWebOSVersion json fields
- Added custom support for pmPostInstall and pmPreRemove scripts

v1.32 - December 27, 2010
- Replaced Source field with a Location field to to immediate priority; Source, and the other new parameters will be included in a future release

v1.3 - April 16, 2010
- Fixed an issue preventing palm-style scripts from running
- Improved appinfo.json detection
- Fixed source json Type field output

v1.2 - April 3, 2010
- Now supports Palm's special pmPostInstall and pmPreRemove scripts
- Fixed several minor "Author" field issues
- Improved text field handling overall
- Increased the screenshot url list to now be 3 lines height
- Improved Control parsing

v1.1 - March 29, 2010
- Automatic Windows-to-Linux endline conversion for postinst/prerm scripts
- Can auto-detect postinst, and prerm files
- Can auto-detect and parse control files
- Fixed issue with package type and architecture not appearing correctly in outputted ipk
- Fixed issue with description text box always setting caret to end

v1.0 - March 19, 2010
- Initial release
tigran80 is offline   Reply With Quote
Old 12/16/2012, 02:15 AM   #48 (permalink)
Member
 
GMMan's Avatar
 
Posts: 2,090
Default

Quote:
Originally Posted by tigran80 View Post
how to change default path from /media/cryptofs/apps to something else, like media/internals/wallpaper?
whatever i set in data.tar.gz file goes to default /media/cryptofs/apps folder.

thanks!
You shouldn't. Why do you want to build a managed package of wallpapers that could easily be deleted and make the package management system confused?
__________________
Contact: @GMMan_BZFlag (me on Twitter) | webOS onTap | @webOSonTap
webOS Releases: Change your App Catalog country: TouchPad/PC | TouchPad/webOS Resources | Search suggestion patch for browser | Cycling Email Notifications | Don't Doctor! Make a good support request. | How to post logs | webOS Charge Monitor

I will be busy, so I may not be able to provide private support.
GMMan is offline   Reply With Quote
Thanked By: tigran80
Old 12/16/2012, 09:21 AM   #49 (permalink)
Member
 
Posts: 6
Default

Quote:
Originally Posted by GMMan View Post
You shouldn't. Why do you want to build a managed package of wallpapers that could easily be deleted and make the package management system confused?
i need to create one IPK and push couple wallpapers and bar-assistant.js to /usr/lib/luna/system/luna-systemui/app/controllers/.

i create exact structure . creating ipk with packager. but after installation all foders/structure goes to /media/cryptofs/apps.

how to push them to correct path?
tigran80 is offline   Reply With Quote
Old 12/16/2012, 01:35 PM   #50 (permalink)
Member
 
GMMan's Avatar
 
Posts: 2,090
Default

Quote:
Originally Posted by tigran80 View Post
i need to create one IPK and push couple wallpapers and bar-assistant.js to /usr/lib/luna/system/luna-systemui/app/controllers/.

i create exact structure . creating ipk with packager. but after installation all foders/structure goes to /media/cryptofs/apps.

how to push them to correct path?
You can't write directly to the rootfs. Apps aren't supposed to write there. You can however make a postinst and prerm script that will back up and link/move the files in to place and undo it on uninstall.
__________________
Contact: @GMMan_BZFlag (me on Twitter) | webOS onTap | @webOSonTap
webOS Releases: Change your App Catalog country: TouchPad/PC | TouchPad/webOS Resources | Search suggestion patch for browser | Cycling Email Notifications | Don't Doctor! Make a good support request. | How to post logs | webOS Charge Monitor

I will be busy, so I may not be able to provide private support.
GMMan is offline   Reply With Quote
Old 12/17/2012, 12:50 PM   #51 (permalink)
Member
 
Posts: 6
Default

Quote:
Originally Posted by GMMan View Post
You can't write directly to the rootfs. Apps aren't supposed to write there. You can however make a postinst and prerm script that will back up and link/move the files in to place and undo it on uninstall.
Thanks!

Last edited by tigran80; 12/18/2012 at 11:17 AM.
tigran80 is offline   Reply With Quote
Old 02/18/2013, 02:00 AM   #52 (permalink)
Member
 
Posts: 1,547
Default

is there a way to directly pack a ipk so that /usr/palm/application/ stock apps are packed and then installed to this directory instead of /media/cryptofs/app/usr/palm/applications/ ?

This is why i ask:
Working Tasks-app of 2.x on 3.x incl.EAS sync
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?

Last edited by gizmo21; 02/18/2013 at 05:09 AM.
gizmo21 is offline   Reply With Quote
Old 02/18/2013, 02:36 AM   #53 (permalink)
Member
 
GMMan's Avatar
 
Posts: 2,090
Default

Well, the root path is still /usr/palm/... I think app installation uses an overridden IPKG config, but I'll have to check for sure.
__________________
Contact: @GMMan_BZFlag (me on Twitter) | webOS onTap | @webOSonTap
webOS Releases: Change your App Catalog country: TouchPad/PC | TouchPad/webOS Resources | Search suggestion patch for browser | Cycling Email Notifications | Don't Doctor! Make a good support request. | How to post logs | webOS Charge Monitor

I will be busy, so I may not be able to provide private support.
GMMan is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0