Labs/Jetpack/FlightDeck/Docs/SDK

From MozillaWiki
< Labs‎ | Jetpack‎ | FlightDeck
Revision as of 09:28, 27 August 2010 by Zalun (talk | contribs) (Created page with "== First run == There is a need to modify database and run some installation scripts === Run installation scripts === <pre>./scripts/initiate.sh ./scripts/install.sh</pre> Th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

First run

There is a need to modify database and run some installation scripts

Run installation scripts

./scripts/initiate.sh
./scripts/install.sh

The latter will create sdk_versions dir if needed, it will also copy flightdeckenv/src/jetpack-sdk to sdk_versions/jetpack-sdk. If it is a new installation it will download current develepment version of the SDK

Database modification

This is needed only if changing the existing FlightDeck installation

  1. Create jetpack_sdk table, by running the
    ./scripts/syncdb.sh
  2. Create first SDK instance
    INSERT INTO jetpack_sdk VALUES (1,'0.5',1,'jetpack-sdk');
  3. Create jetpack_packagerevision.sdk_id field
    ALTER TABLE jetpack_packagerevision ADD sdk_id INT;
  4. Set existing SDK version as the chosen one for existing Add-ons
    UPDATE jetpack_packagerevision pr, jetpack_package p SET jetpack_packagerevision.sdk_id 1 WHERE p.type='a' AND pr.package_id=p.id