webOS Nation Forums >  webOS apps and software >  webOS development > Packaging IPK’s for webOS
Packaging IPK’s for webOS

  Reply
 
LinkBack Thread Tools Display Modes
Old 12/24/2011, 12:54 PM   #1 (permalink)
Member
 
Join Date: Jul 2010
Location: North East
Posts: 125
Likes Received: 0
Thanks: 27
Thanked 23 Times in 14 Posts
Default Packaging IPK’s for webOS

The easy way:
After installing the webOS SDK, you can package your Enyo or Mojo application using palm-package application-folder. More information can be found here https://developer.palm.com/content/a...ine-tools.html

IPK packaging for everything else:
You can grab IPK packager from Google Code here: ipk-packager - Cross-Platform webOS Ipk Packager - Google Project Hosting

If you need to have a script run right after install, or right before uninstall, you can create the scripts, and reference them in IPK Packager. Reference them in IPK packager using the section “optional package details.” The scripts do not have to be inside the directory for what you are packaging, and are shell scripts.


The first option, folder, is the folder you are packaging. The folder will become the root of the package. You can limit it by architecture using the Arch option.


PostInst script will run right after all the files have been copied over. Prerem script runs right before they are removed. This is a good place actions like copying a font over, or modifying other files. Scripts run relative to the root directory, and you may have to use an absolute path with the command, like "/bin/cp". If you are going to use a file or script inside your package, it needs to be referenced with it's absolute path also.

If your package requires a Luna or device restart after install, upgrade or removal, that can be set in the flags section. You can also set the minimum and max webOS versions here.

If anyone knows how to do this manually, that'd be awesome to know also. I couldn't find a doc anywhere about this, so now its posted here.
Attached Images
File Type: png optional package details.PNG (8.6 KB, 43 views) Email Attachment
File Type: png file name.PNG (10.7 KB, 43 views) Email Attachment
__________________
Apps: Junk Silver, Junk Exchange Projects: Distress Signal
antijingoist is offline   Reply With Quote
Reply

 

Tags
ipk, package

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0