Closed Bug 1035185 Opened 10 years ago Closed 9 years ago

CLI app tools should have a way to push apps

Categories

(DevTools Graveyard :: WebIDE, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jryans, Unassigned)

References

Details

CLI tools, like Cordova or build tools like Grunt, Gulp, etc., would be able to support a nicer app development workflow with an easy way to push apps headlessly (without invoking Firefox / WebIDE's GUI). My first guess at how to do this would be a small Node.js tool that uses harthur's firefox-client library.
Summary: CLI tools should have a way to push apps → CLI app tools should have a way to push apps
// Run `adb forward tcp:6000 localfilesystem:/data/local/debugger-socket` // And then, you just need something like this in node: var FirefoxClient = require("./index"); var client = new FirefoxClient(); var webapps; client.connect(6000, function() { console.log("connected"); client.getWebapps(function (err, wa) { var webapps = wa; webapps.installPackaged("/tmp/application.zip", "myapp", function (err, resp) { console.log("installed", err, resp); // Disconnect to free the event queue and quit client.disconnect(); }); }); }); It won't be using bulk data upload, so it is slow for big packages, but it works. It should also work on old 1.1 release by running `adb forward tcp:6000 tcp:6000`. You can also do many other things via the webapps actor (see firefox-client readme for more info).
Blocks: 1039978
node-firefox allows to do that: https://github.com/mozilla/node-firefox as well as firefox-client.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.