Search code examples
batch-filefirefox-addon-sdk

How to run 'cfx xpi' after 'activate' via .bat?


I'm trying to automatize installing of my addon. Mozilla says that it's very simple, but:

  1. I didn't find any while loops in .bat files or sleep for milisec.
  2. I can't understand, how to use activate.bat and cfx xpi in one CMD window sequentially, and also use wget in other CMD after all.

How can I do even if second part? I've tried something like:

START cmd /K "activate "cfx xpi"" && wget --post-file=tst-closing-cur-tab.xpi http://localhost:8888/

or

START cmd /K "activate && "cfx xpi"" && wget --post-file=tst-closing-cur-tab.xpi http://localhost:8888/

but it always run cfx in CMD, not in 'virtual CMD' after activate


Solution

  • I use this

    call "c:\Firefox\Sdk\bin\activate.bat"
    cd c:\dev-1.0.2.5-firefox\
    cfx xpi