Skip to content

Instantly share code, notes, and snippets.

@nils-werner
Created July 7, 2011 10:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nils-werner/1069268 to your computer and use it in GitHub Desktop.
Save nils-werner/1069268 to your computer and use it in GitHub Desktop.
How to bundle node.js services with webOS apps

It's fairly easy to bundle a service with any webOS apps. All you have to do is:

  1. Create three directories in your current webOS app directory. Name them anything you like but I'd recommend application, package and service

  2. Move all original app files into application

  3. Copy and modify the basic FileIO service from https://gist.github.com/1014188 into service Change the services.json file to refer to your Service ID. The Service ID has to be a subdomain of your App ID.

  4. Copy and packageinfo.json from this gist into package Modify it to refer to your App ID and Service ID.

  5. Package the whole thing using palm-package application package service

And you're done.

{
"id": "com.yourapp.name",
"package_format_version": 2,
"loc_name": "Your App Name",
"version": "1.0.0",
"icon": "icon64.png",
"miniicon": "icon32.png",
"vendor": "Your Vendor",
"vendorurl": "www.yoururl.com",
"app": "com.yourapp.name",
"services": ["com.yourapp.name.servicename"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment