Labs/Jetpack/FlightDeck/Docs/SDK: Difference between revisions
< Labs | Jetpack | FlightDeck
Jump to navigation
Jump to search
(add jetpack SDK) |
|||
| Line 17: | Line 17: | ||
#Create first SDK instance <pre>INSERT INTO jetpack_sdk VALUES (1,'0.5',1,'jetpack-sdk');</pre> | #Create first SDK instance <pre>INSERT INTO jetpack_sdk VALUES (1,'0.5',1,'jetpack-sdk');</pre> | ||
#Create jetpack_packagerevision.sdk_id field <pre>ALTER TABLE jetpack_packagerevision ADD sdk_id INT;</pre> | #Create jetpack_packagerevision.sdk_id field <pre>ALTER TABLE jetpack_packagerevision ADD sdk_id INT;</pre> | ||
#Set existing SDK version as the chosen one for existing Add-ons <pre>UPDATE jetpack_packagerevision | #Set existing SDK version as the chosen one for existing Add-ons <pre>UPDATE jetpack_packagerevision SET sdk_id=2 WHERE package_id IN (SELECT id FROM jetpack_package WHERE type='a');</pre> | ||
== Add new Jetpack-SDK == | == Add new Jetpack-SDK == | ||
Revision as of 10:18, 27 August 2010
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
- Create jetpack_sdk table, by running the
./scripts/syncdb.sh
- Create first SDK instance
INSERT INTO jetpack_sdk VALUES (1,'0.5',1,'jetpack-sdk');
- Create jetpack_packagerevision.sdk_id field
ALTER TABLE jetpack_packagerevision ADD sdk_id INT;
- Set existing SDK version as the chosen one for existing Add-ons
UPDATE jetpack_packagerevision SET sdk_id=2 WHERE package_id IN (SELECT id FROM jetpack_package WHERE type='a');
Add new Jetpack-SDK
Download desired SDK version. For development version do
hg clone http://hg.mozilla.org/labs/jetpack-sdk/ jetpack-SDK-0.8pre
Add to the FlightDeck system
./scripts/manage.sh add_jetpack_core jetpack-SDK-0.8pre