Search code examples
sencha-touchsencha-touch-2sencha-cmd

How do I build a sencha app to target production in a specific folder?


Using the latest Sencha Cmd tool v4.0.2, how do I build an app for production mode into a specific folder not into its default build folder within the app folder.

I am trying to do this from the command line but not succeeding at all. Tried this according to their help on command line but had no success with it for several weeks now:

Sencha Cmd broken: Why does 'app build' ignore any command line parameters?

No-one seems to know what the issue is. Am I the only person in the world who is actually encountering an issue with this!? Any help appreciated from anyone with some knowledge of the Sencha products greatly appreciated.


Solution

  • Found the answer to this as the last post in the thread:

    http://www.sencha.com/forum/showthread.php?247180-Sencha-Cmd-v3.0.0.190-does-not-use-app.json-buildpath-settings/page2

    I added the following to the sencha.cfg within the .sencha\workspace folder.

    workspace.build.dir=C:/builds/TolMobile
    

    Not sure why packager.json contains an output path with the following:

    "outputPath":"../build/",
    

    It doesn't seem to even be used. If its redundant why don't they just remove it? In addition I still haven't got their command line arguments to work either. Strange.