<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/" 
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 
	xmlns:admin="http://webns.net/mvcb/" 
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/" 
	xmlns:atom="http://www.w3.org/2005/Atom">
	
	<channel>
	
		<title>Behind the Sencha Command Utility and the Build Process</title>
		<link>http://www.sencha.com/blog/behind-sencha-command-and-the-build-process</link>
		<description>The Sencha command utility is a cross&#45;platform command line tool that helps make it easier than ever to develop applications with Sencha Touch 2. The tool consists of many useful automated tasks around the full lifecycle of your applications, from generating a fresh new project to deploying for production.

	This article will help you understand the Sencha command utility as well as your Sencha Touch 2 application&#8217;s production build process.</description>
		<dc:language>en-us</dc:language>
		<dc:creator>jacky@sencha.com</dc:creator>
		<dc:rights>Copyright 2012</dc:rights>
		<dc:date>2012-05-02T17:00:16+00:00</dc:date>
		<admin:generatorAgent rdf:resource="http://expressionengine.com/" />
		<atom:link href="http://www.sencha.com/blog/comments-rss/11490" rel="self" type="application/rss+xml" />
  
		
  
		<item>
      <title>Comment by Pipo</title>
      <description>Just wanted to say that I like Sencha Touch a lot, but it is very confusing to have the &#8220;Sencha Touch SDK&#8221; and the &#8220;Sencha Touch SDK Tools&#8221; which are two different things, but use the same command line keyword &#8220;sencha&#8221;. It isn&#8217;t just confusing in the beginning, but even if you understand the difference it is very hard to find specific problems for one of them with Google.</description>
      <content:encoded><![CDATA[<p>Just wanted to say that I like Sencha Touch a lot, but it is very confusing to have the &#8220;Sencha Touch SDK&#8221; and the &#8220;Sencha Touch SDK Tools&#8221; which are two different things, but use the same command line keyword &#8220;sencha&#8221;. It isn&#8217;t just confusing in the beginning, but even if you understand the difference it is very hard to find specific problems for one of them with Google.</p>]]></content:encoded>
      <pubDate>Thu, 31 May 2012 07:51 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31610#date:07:51</guid>
    </item>
  
		<item>
      <title>Comment by masterpae</title>
      <description>Excellent post. I want to thank you for this informative read.</description>
      <content:encoded><![CDATA[<p>Excellent post. I want to thank you for this informative read.</p>

]]></content:encoded>
      <pubDate>Fri, 18 May 2012 19:39 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31546#date:19:39</guid>
    </item>
  
		<item>
      <title>Comment by Greg</title>
      <description>The below code works in the pre&#45;built scenario standard product but when it is build with &#8220;sencha app generate production&#8221;&amp;nbsp; it no longer works.&amp;nbsp;  the utils.js simply has a  function utiltest()&#123;alert&#40;&#8216;worked&#8217;&#41;;&#125;&amp;nbsp; which is the last thing called in in the launch: function().

What is interesting is that I see the utils.js in the app.json?&amp;nbsp; and yes i have clear the case and cookies etc in the browser to force a refresh.

also if I manually add a script tag containing utils.js to the index.html it works&#8230;.

What do you think?
 




 


 &#8220;js&#8221;: [

&amp;nbsp;  &amp;nbsp;  &amp;nbsp; &#123;
&amp;nbsp;  &amp;nbsp;  &amp;nbsp;  &amp;nbsp;  &#8220;path&#8221;: &#8220;sdk/sencha&#45;touch.js&#8221;
&amp;nbsp;  &amp;nbsp;  &amp;nbsp; &#125;,
&amp;nbsp;  &amp;nbsp;  &amp;nbsp; &#123;
&amp;nbsp;  &amp;nbsp;  &amp;nbsp;  &amp;nbsp;  &#8220;path&#8221;: &#8220;app.js&#8221;,
&amp;nbsp;  &amp;nbsp;  &amp;nbsp;  &amp;nbsp;  &#8220;bundle&#8221;: true,&amp;nbsp; /* Indicates that all class dependencies are concatenated into this file when build */
&amp;nbsp;  &amp;nbsp;  &amp;nbsp;  &amp;nbsp;  &#8220;update&#8221;: &#8220;delta&#8221;
&amp;nbsp;  &amp;nbsp;  &amp;nbsp; &#125;,
&amp;nbsp;  &amp;nbsp;  &amp;nbsp; &#123;
&amp;nbsp;  &amp;nbsp;  &amp;nbsp;  &amp;nbsp;  &#8220;path&#8221;: &#8220;utils.js&#8221;
&amp;nbsp;  &amp;nbsp;  &amp;nbsp; &#125;
&amp;nbsp;   ],</description>
      <content:encoded><![CDATA[<p>
The below code works in the pre-built scenario standard product but when it is build with &#8220;sencha app generate production&#8221;&nbsp; it no longer works.&nbsp;  the utils.js simply has a  function utiltest()&#123;alert&#40;&#8216;worked&#8217;&#41;;&#125;&nbsp; which is the last thing called in in the launch: function().</p>

<p>What is interesting is that I see the utils.js in the app.json?&nbsp; and yes i have clear the case and cookies etc in the browser to force a refresh.</p>

<p>also if I manually add a script tag containing utils.js to the index.html it works&#8230;.</p>

<p>What do you think?<br />
 </p>



<p><br />
 </p>

<p><br />
 &#8220;js&#8221;: [</p>

<p>&nbsp;  &nbsp;  &nbsp; &#123;<br />
&nbsp;  &nbsp;  &nbsp;  &nbsp;  &#8220;path&#8221;: &#8220;sdk/sencha-touch.js&#8221;<br />
&nbsp;  &nbsp;  &nbsp; &#125;,<br />
&nbsp;  &nbsp;  &nbsp; &#123;<br />
&nbsp;  &nbsp;  &nbsp;  &nbsp;  &#8220;path&#8221;: &#8220;app.js&#8221;,<br />
&nbsp;  &nbsp;  &nbsp;  &nbsp;  &#8220;bundle&#8221;: true,&nbsp; /* Indicates that all class dependencies are concatenated into this file when build */<br />
&nbsp;  &nbsp;  &nbsp;  &nbsp;  &#8220;update&#8221;: &#8220;delta&#8221;<br />
&nbsp;  &nbsp;  &nbsp; &#125;,<br />
&nbsp;  &nbsp;  &nbsp; &#123;<br />
&nbsp;  &nbsp;  &nbsp;  &nbsp;  &#8220;path&#8221;: &#8220;utils.js&#8221;<br />
&nbsp;  &nbsp;  &nbsp; &#125;<br />
&nbsp;   ],</p>]]></content:encoded>
      <pubDate>Fri, 18 May 2012 18:30 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31543#date:18:30</guid>
    </item>
  
		<item>
      <title>Comment by Derek</title>
      <description>I was able to resolve this on Windows 7 64 bit.&amp;nbsp; The problem turned out to be my environment variable, used by the Application.js module to resolve dependencies was not correct.

Check SENCHA_SDK_TOOLS_2_0_0_BETA3 environment variable.&amp;nbsp; Mine was C:\Program Files (x86).&amp;nbsp;  I read in another thread not to install the SDK tools there even though I&quot;m sure 99% of people do because that is the default setting on Windows. 

Anway, I had previously moved the SDK Tools to C:\dev\Workspace and updated my path manually to avoid having the space in Program Files and the binaries were somewhere else now, but I didn&#8217;t realize this environment variable even existed.

After setting the %SENCHA_SDK_TOOLS_2_0_0_BETA3% environment variable (and updating Path% with it),&amp;nbsp; I came down to my last error of a different sort

[ERROR] Failed loading your application from: &#8216;file:///c:/xampp/htdocs/myapp&#8217;.&amp;nbsp; 

setting url : &#8220;http://localhost/myapp/index.html&#8221;&amp;nbsp; resolved that.</description>
      <content:encoded><![CDATA[<p>I was able to resolve this on Windows 7 64 bit.&nbsp; The problem turned out to be my environment variable, used by the Application.js module to resolve dependencies was not correct.</p>

<p>Check SENCHA_SDK_TOOLS_2_0_0_BETA3 environment variable.&nbsp; Mine was C:\Program Files (x86).&nbsp;  I read in another thread not to install the SDK tools there even though I"m sure 99% of people do because that is the default setting on Windows. </p>

<p>Anway, I had previously moved the SDK Tools to C:\dev\Workspace and updated my path manually to avoid having the space in Program Files and the binaries were somewhere else now, but I didn&#8217;t realize this environment variable even existed.</p>

<p>After setting the %SENCHA_SDK_TOOLS_2_0_0_BETA3% environment variable (and updating Path% with it),&nbsp; I came down to my last error of a different sort</p>

<p>[ERROR] Failed loading your application from: &#8216;file:///c:/xampp/htdocs/myapp&#8217;.&nbsp; </p>

<p>setting url : &#8220;http://localhost/myapp/index.html&#8221;&nbsp; resolved that.</p>

]]></content:encoded>
      <pubDate>Tue, 15 May 2012 02:54 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31519#date:02:54</guid>
    </item>
  
		<item>
      <title>Comment by Derek</title>
      <description>Are the sencha sdk tools supposed to work on Windows 7 64bit?&amp;nbsp; Because I am getting always this error [ERROR] The system cannot find the path specified.
[ERROR] Failed loading your application from: &#8216;file:///c:/xampp/htdocs/myapp/index.html&#8217;. Try setting the absolute URL to your application for the &#8216;url&#8217; item inside &#8216;app.json&#8217;

I have tried setting the absolute URL to my application for the the url item inside app.json to no avail.&amp;nbsp; And the path exists also.&amp;nbsp; So it&#8217;s some weird thing that only manifests on windows.

Also, by the way, you can&#8217;t install this on Linux CentOS maybe only on Ubuntu.

Tools work well on my mac, but it&#8217;s not fair to say it&#8217;s cross platform when it clearly hasn&#8217;t been tested.&amp;nbsp; Fails right out of the box on 2 out of 3 platforms I need it to work on right now.&amp;nbsp; Can&#8217;t get my work done please help.</description>
      <content:encoded><![CDATA[<p>Are the sencha sdk tools supposed to work on Windows 7 64bit?&nbsp; Because I am getting always this error [ERROR] The system cannot find the path specified.<br />
[ERROR] Failed loading your application from: &#8216;file:///c:/xampp/htdocs/myapp/index.html&#8217;. Try setting the absolute URL to your application for the &#8216;url&#8217; item inside &#8216;app.json&#8217;</p>

<p>I have tried setting the absolute URL to my application for the the url item inside app.json to no avail.&nbsp; And the path exists also.&nbsp; So it&#8217;s some weird thing that only manifests on windows.</p>

<p>Also, by the way, you can&#8217;t install this on Linux CentOS maybe only on Ubuntu.</p>

<p>Tools work well on my mac, but it&#8217;s not fair to say it&#8217;s cross platform when it clearly hasn&#8217;t been tested.&nbsp; Fails right out of the box on 2 out of 3 platforms I need it to work on right now.&nbsp; Can&#8217;t get my work done please help.</p>]]></content:encoded>
      <pubDate>Tue, 15 May 2012 01:30 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31518#date:01:30</guid>
    </item>
  
		<item>
      <title>Comment by PriscillaBARLOW33</title>
      <description>When you are in the corner and have no money to move out from that point, you will need to receive the business loans. Just because it should help you for sure. I take student loan every year and feel great just because of that.</description>
      <content:encoded><![CDATA[<p>When you are in the corner and have no money to move out from that point, you will need to receive the <a href="http://goodfinance-blog.com/topics/business-loans">business loans</a>. Just because it should help you for sure. I take student loan every year and feel great just because of that.</p>]]></content:encoded>
      <pubDate>Mon, 14 May 2012 08:16 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31516#date:08:16</guid>
    </item>
  
		<item>
      <title>Comment by binaya pradhan</title>
      <description>good to see ur tutorial&#8230;..nice one</description>
      <content:encoded><![CDATA[<p>good to see ur tutorial&#8230;..nice one</p>]]></content:encoded>
      <pubDate>Tue, 08 May 2012 12:51 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31472#date:12:51</guid>
    </item>
  
		<item>
      <title>Comment by slemmon</title>
      <description>No dev dialog in the blog comments?</description>
      <content:encoded><![CDATA[<p>No dev dialog in the blog comments?</p>]]></content:encoded>
      <pubDate>Mon, 07 May 2012 19:52 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31471#date:19:52</guid>
    </item>
  
		<item>
      <title>Comment by Ajay</title>
      <description>This command line tool is helpful. Are there any plans for the tool to generate Coffeescript .coffee files in addition to the Javascript .js files? I find Coffeescript takes the pain out of managing the mass of [, &#123;, &#125;, ], commas, etc. that your Sencha files end up with.</description>
      <content:encoded><![CDATA[<p>This command line tool is helpful. Are there any plans for the tool to generate Coffeescript .coffee files in addition to the Javascript .js files? I find Coffeescript takes the pain out of managing the mass of [, &#123;, &#125;, ], commas, etc. that your Sencha files end up with.</p>]]></content:encoded>
      <pubDate>Fri, 04 May 2012 06:49 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31459#date:06:49</guid>
    </item>
  
		<item>
      <title>Comment by Milan</title>
      <description>@AwesomeBobX64 It supposedly exists, but as we can see in forums it does not work reliably or without putting huge effort into making it work. I was hoping to see more details and a truly working version.</description>
      <content:encoded><![CDATA[<p>@AwesomeBobX64 It supposedly exists, but as we can see in forums it does not work reliably or without putting huge effort into making it work. I was hoping to see more details and a truly working version.</p>]]></content:encoded>
      <pubDate>Fri, 04 May 2012 05:32 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31458#date:05:32</guid>
    </item>
  
		<item>
      <title>Comment by AwesomeBobX64</title>
      <description>@Milan That functionality exists too. Check out the tutorials for 4.0 and 4.1.</description>
      <content:encoded><![CDATA[<p>@Milan That functionality exists too. Check out the tutorials for 4.0 and 4.1.</p>]]></content:encoded>
      <pubDate>Thu, 03 May 2012 23:06 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31457#date:23:06</guid>
    </item>
  
		<item>
      <title>Comment by Milan</title>
      <description>What about &#8220;building&#8221; ExtJS web apps?</description>
      <content:encoded><![CDATA[<p>What about &#8220;building&#8221; ExtJS web apps?</p>]]></content:encoded>
      <pubDate>Thu, 03 May 2012 21:23 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31456#date:21:23</guid>
    </item>
  
		<item>
      <title>Comment by Ropes Course Design</title>
      <description>Very nice. Information is really that helpful. ant wait to use that software.</description>
      <content:encoded><![CDATA[<p>Very nice. Information is really that helpful. ant wait to use that software.</p>]]></content:encoded>
      <pubDate>Wed, 02 May 2012 23:59 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31451#date:23:59</guid>
    </item>
  
		<item>
      <title>Comment by Ropes Course Builders</title>
      <description>Very nice. Information is really that helpful. ant wait to use that software.</description>
      <content:encoded><![CDATA[<p>Very nice. Information is really that helpful. ant wait to use that software.</p>]]></content:encoded>
      <pubDate>Wed, 02 May 2012 23:57 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31450#date:23:57</guid>
    </item>
  
		<item>
      <title>Comment by AwesomeBobX64</title>
      <description>Just a thought but shouldn&#8217;t the delta update mechanism perform a HEAD request (vs a GET) to compare the version on the server with the one stored locally?</description>
      <content:encoded><![CDATA[<p>Just a thought but shouldn&#8217;t the delta update mechanism perform a HEAD request (vs a GET) to compare the version on the server with the one stored locally?</p>]]></content:encoded>
      <pubDate>Wed, 02 May 2012 21:26 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31449#date:21:26</guid>
    </item>
  
		<item>
      <title>Comment by Shuchi Agarwal</title>
      <description>@Jacky How do I load resources remotely? I have an application where all my js/css/images need to be loaded from a cloudfront.</description>
      <content:encoded><![CDATA[<p>@Jacky How do I load resources remotely? I have an application where all my js/css/images need to be loaded from a cloudfront.</p>]]></content:encoded>
      <pubDate>Wed, 02 May 2012 12:51 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31443#date:12:51</guid>
    </item>
  
		<item>
      <title>Comment by dwgw</title>
      <description>@Amarjit I believe stbuild is not correct (on windows). I had the same problem but fixed it by replacing the new version of stbuild with the one from original Beta tools.</description>
      <content:encoded><![CDATA[<p>@Amarjit I believe stbuild is not correct (on windows). I had the same problem but fixed it by replacing the new version of stbuild with the one from original Beta tools.</p>]]></content:encoded>
      <pubDate>Fri, 27 Apr 2012 14:58 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31399#date:14:58</guid>
    </item>
  
		<item>
      <title>Comment by amarjit</title>
      <description>I am using version 2.0.0. Currently for testing puposes, i have crtaed project using command line tool and paste the code for &#8220;Welcome to Sencha Touch 2&#8221; exxample only. which is working fine in the broswer, only issue is with native packaging.

Nigel mentioned he was able to package the application sucessfully. he may help us with that.</description>
      <content:encoded><![CDATA[<p>I am using version 2.0.0. Currently for testing puposes, i have crtaed project using command line tool and paste the code for &#8220;Welcome to Sencha Touch 2&#8221; exxample only. which is working fine in the broswer, only issue is with native packaging.</p>

<p>Nigel mentioned he was able to package the application sucessfully. he may help us with that.</p>]]></content:encoded>
      <pubDate>Thu, 26 Apr 2012 18:25 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31384#date:18:25</guid>
    </item>
  
		<item>
      <title>Comment by Giuseppe</title>
      <description>@Amarjit Very interesting, you should post your entire project here to help us address the issue. Don&#8217;t forget sencha&#45;touch&#45;all&#45;debug.js so that we can see which version you&#8217;re running</description>
      <content:encoded><![CDATA[<p>@Amarjit Very interesting, you should post your entire project here to help us address the issue. Don&#8217;t forget sencha-touch-all-debug.js so that we can see which version you&#8217;re running</p>]]></content:encoded>
      <pubDate>Thu, 26 Apr 2012 17:53 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31383#date:17:53</guid>
    </item>
  
		<item>
      <title>Comment by John</title>
      <description>We want this for ExtJS!!!!</description>
      <content:encoded><![CDATA[<p>We want this for ExtJS!!!!</p>]]></content:encoded>
      <pubDate>Thu, 26 Apr 2012 10:46 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31378#date:10:46</guid>
    </item>
  
		<item>
      <title>Comment by Amarjit</title>
      <description>Great!&amp;nbsp; 
I developed an application  with sencha touch 2, but i have one problem when i try to packaging my application for android.
When i launch &#8220;sencha app build native&#8221;, the application build successful but after, i have this error :

Error: Bad component name: com.mobile.TestPack1.STActivity

&#8220;&#8220;C:/devTools/android/android&#45;sdk&#45;windows\tools\android&#8221; create project&#8212;target android&#45;7&#8212;name TestPack1&#8212;activity STActivity&#8212;path C:\dev\sencha_ws\test1\build\native\&#8212;package com.mobile.TestPack1&#8221;

[ERROR] 1855 KB/s (809419 bytes in 0.426s)

My Packager.json is:


&#123;
 /**
&amp;nbsp; * @cfg &#123;String&#125; applicationName
&amp;nbsp; * @required
&amp;nbsp; * This is the name of your application, which is displayed on the device when the app is installed. On IOS, this should match
&amp;nbsp; * the name of your application in the Apple Provisioning Portal.
&amp;nbsp; */
 &#8220;applicationName&#8221;:&#8220;TestPack1&#8221;,

 /**
&amp;nbsp; * @cfg &#123;String&#125; applicationId
&amp;nbsp; * This is the name namespace for your application. On IOS, this should match the name of your application in the Apple Provisioning Portal.
&amp;nbsp; */
 &#8220;applicationId&#8221;:&#8220;com.mobile.TestPack1&#8221;,

 /**
&amp;nbsp; * @cfg &#123;String&#125; versionString
&amp;nbsp; * @required
&amp;nbsp; * This is the version of your application.
&amp;nbsp; */
 &#8220;versionString&#8221;:&#8220;1.0&#8221;,

 /**
&amp;nbsp; * @cfg &#123;String&#125; iconName
&amp;nbsp; * This is file name of your icon. This should be in the same directory of this configuration file.
&amp;nbsp; *
&amp;nbsp; * For iOS, please refer to their documentation about icon sizes:
&amp;nbsp; * https://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html
&amp;nbsp; *
&amp;nbsp; * For Android, please refer to the Google Launcher icons guide:
&amp;nbsp; * http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html
&amp;nbsp; */
 &#8220;iconName&#8221;:&#8220;resources/icons/Icon.png&#8221;,

 /**
&amp;nbsp; * @cfg &#123;String&#125; inputPath
&amp;nbsp; * @required
&amp;nbsp; * This is location of your Sencha Touch 2 application, relative to this configuration file.
&amp;nbsp; */
 &#8220;inputPath&#8221;:&#8220;build/native&#8221;,

 /**
&amp;nbsp; * @cfg &#123;String&#125; outputPath
&amp;nbsp; * @required
&amp;nbsp; * This is where the built application file with be saved.
&amp;nbsp; */
 &#8220;outputPath&#8221;:&#8220;build/&#8221;,

 /**
&amp;nbsp; * @cfg &#123;String&#125; configuration
&amp;nbsp; * @required
&amp;nbsp; * This is configuration for your application. `Debug` should always be used unless you are submitting your app to an online
&amp;nbsp; * store &#45; in which case `Release` should be specified.
&amp;nbsp; */
 &#8220;configuration&#8221;:&#8220;Debug&#8221;,

 /**
&amp;nbsp; * @cfg &#123;String&#125; platform
&amp;nbsp; * @required
&amp;nbsp; * This is the platform where you will be running your application. Available options are:
&amp;nbsp; *&amp;nbsp; &#45; iOSSimulator
&amp;nbsp; *&amp;nbsp; &#45; iOS
&amp;nbsp; *&amp;nbsp; &#45; Android
&amp;nbsp; *&amp;nbsp; &#45; AndroidEmulator
&amp;nbsp; */
 &#8220;platform&#8221;:&#8220;AndroidEmulator&#8221;,

 /**
&amp;nbsp; * @cfg &#123;String&#125; deviceType
&amp;nbsp; * @required
&amp;nbsp; * This is device type that your application will be running on.
&amp;nbsp; *
&amp;nbsp; * If you are developing for Android, this is not necessary.
&amp;nbsp; *
&amp;nbsp; * Available options are:
&amp;nbsp; *&amp;nbsp; &#45; iPhone
&amp;nbsp; *&amp;nbsp; &#45; iPad
&amp;nbsp; *&amp;nbsp; &#45; Universal
&amp;nbsp; */
/* &#8220;deviceType&#8221;:&#8220;Universal&#8221;,*/
 /**
&amp;nbsp; * @cfg &#123;String&#125; certificatePath
&amp;nbsp; * This is the location of your certificate.
&amp;nbsp; * This is required when you are developing for Android or you are developing on Windows.
&amp;nbsp; */
 &#8220;certificatePath&#8221;:&#8220;C:/dev/certificate&#45;codesigningkeys&#45;flashMobile/Android/nttdata.p12&#8221;,

 /**
&amp;nbsp; * @cfg &#123;String&#125; certificateAlias
&amp;nbsp; * This is the name of your certificate.
&amp;nbsp; *
&amp;nbsp; * IF you do not specify this on OSX, we will try and automatically find the certificate for you using the applicationId.
&amp;nbsp; *
&amp;nbsp; * This can be just a simple matcher. For example, if your certificate name is &#8220;iPhone Developer: Robert Dougan (ABCDEFGHIJ)&#8221;, you
&amp;nbsp; * can just put &#8220;iPhone Developer&#8221;.
&amp;nbsp; *
&amp;nbsp; * When using a certificatePath on Windows, you do not need to specify this.
&amp;nbsp; */
 &#8220;certificateAlias&#8221;:&#8221;&#8220;,
 
 /**
&amp;nbsp; * @cfg &#123;String&#125; sdkPath
&amp;nbsp; * This is the path to the Android SDK, if you are developing an Android application.
&amp;nbsp; */
 &#8220;sdkPath&#8221;:&#8220;C:/devTools/android/android&#45;sdk&#45;windows&#8221;,
 
 /**
&amp;nbsp; * @cfg  androidAPILevel
&amp;nbsp; * This is android API level, the version of Android SDK to use, you can read more about it here: http://developer.android.com/guide/appendix/api&#45;levels.html.
&amp;nbsp; * Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)
&amp;nbsp; */
 &#8220;androidAPILevel&#8221;:&#8220;7&#8221;,

 /**
&amp;nbsp; * @cfg  orientations
&amp;nbsp; * @required
&amp;nbsp; * This is orientations that this application can run.
&amp;nbsp; */
 &#8220;orientations&#8221;: [
&amp;nbsp; &#8220;portrait&#8221;,
&amp;nbsp; &#8220;landscapeLeft&#8221;,
&amp;nbsp; &#8220;landscapeRight&#8221;,
&amp;nbsp; &#8220;portraitUpsideDown&#8221;
 ]
&#125;



&amp;nbsp;</description>
      <content:encoded><![CDATA[<p>Great!&nbsp; <br />
I developed an application  with sencha touch 2, but i have one problem when i try to packaging my application for android.<br />
When i launch &#8220;sencha app build native&#8221;, the application build successful but after, i have this error :</p>

<p>Error: Bad component name: com.mobile.TestPack1.STActivity</p>

<p>&#8220;&#8220;C:/devTools/android/android-sdk-windows\tools\android&#8221; create project&#8212;target android-7&#8212;name TestPack1&#8212;activity STActivity<br />&#8212;path C:\dev\sencha_ws\test1\build\native\&#8212;package com.mobile.TestPack1&#8221;</p>

<p>[ERROR] 1855 KB/s (809419 bytes in 0.426s)</p>

<p>My Packager.json is:</p>

<p><br />
&#123;<br />
 /**<br />
&nbsp; * @cfg &#123;String&#125; applicationName<br />
&nbsp; * @required<br />
&nbsp; * This is the name of your application, which is displayed on the device when the app is installed. On IOS, this should match<br />
&nbsp; * the name of your application in the Apple Provisioning Portal.<br />
&nbsp; */<br />
 &#8220;applicationName&#8221;:&#8220;TestPack1&#8221;,</p>

<p> /**<br />
&nbsp; * @cfg &#123;String&#125; applicationId<br />
&nbsp; * This is the name namespace for your application. On IOS, this should match the name of your application in the Apple Provisioning Portal.<br />
&nbsp; */<br />
 &#8220;applicationId&#8221;:&#8220;com.mobile.TestPack1&#8221;,</p>

<p> /**<br />
&nbsp; * @cfg &#123;String&#125; versionString<br />
&nbsp; * @required<br />
&nbsp; * This is the version of your application.<br />
&nbsp; */<br />
 &#8220;versionString&#8221;:&#8220;1.0&#8221;,</p>

<p> /**<br />
&nbsp; * @cfg &#123;String&#125; iconName<br />
&nbsp; * This is file name of your icon. This should be in the same directory of this configuration file.<br />
&nbsp; *<br />
&nbsp; * For iOS, please refer to their documentation about icon sizes:<br />
&nbsp; * <a href="https://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html">https://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html</a><br />
&nbsp; *<br />
&nbsp; * For Android, please refer to the Google Launcher icons guide:<br />
&nbsp; * <a href="http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html">http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html</a><br />
&nbsp; */<br />
 &#8220;iconName&#8221;:&#8220;resources/icons/Icon.png&#8221;,</p>

<p> /**<br />
&nbsp; * @cfg &#123;String&#125; inputPath<br />
&nbsp; * @required<br />
&nbsp; * This is location of your Sencha Touch 2 application, relative to this configuration file.<br />
&nbsp; */<br />
 &#8220;inputPath&#8221;:&#8220;build/native&#8221;,</p>

<p> /**<br />
&nbsp; * @cfg &#123;String&#125; outputPath<br />
&nbsp; * @required<br />
&nbsp; * This is where the built application file with be saved.<br />
&nbsp; */<br />
 &#8220;outputPath&#8221;:&#8220;build/&#8221;,</p>

<p> /**<br />
&nbsp; * @cfg &#123;String&#125; configuration<br />
&nbsp; * @required<br />
&nbsp; * This is configuration for your application. `Debug` should always be used unless you are submitting your app to an online<br />
&nbsp; * store - in which case `Release` should be specified.<br />
&nbsp; */<br />
 &#8220;configuration&#8221;:&#8220;Debug&#8221;,</p>

<p> /**<br />
&nbsp; * @cfg &#123;String&#125; platform<br />
&nbsp; * @required<br />
&nbsp; * This is the platform where you will be running your application. Available options are:<br />
&nbsp; *&nbsp; - iOSSimulator<br />
&nbsp; *&nbsp; - iOS<br />
&nbsp; *&nbsp; - Android<br />
&nbsp; *&nbsp; - AndroidEmulator<br />
&nbsp; */<br />
 &#8220;platform&#8221;:&#8220;AndroidEmulator&#8221;,</p>

<p> /**<br />
&nbsp; * @cfg &#123;String&#125; deviceType<br />
&nbsp; * @required<br />
&nbsp; * This is device type that your application will be running on.<br />
&nbsp; *<br />
&nbsp; * If you are developing for Android, this is not necessary.<br />
&nbsp; *<br />
&nbsp; * Available options are:<br />
&nbsp; *&nbsp; - iPhone<br />
&nbsp; *&nbsp; - iPad<br />
&nbsp; *&nbsp; - Universal<br />
&nbsp; */<br />
/* &#8220;deviceType&#8221;:&#8220;Universal&#8221;,*/<br />
 /**<br />
&nbsp; * @cfg &#123;String&#125; certificatePath<br />
&nbsp; * This is the location of your certificate.<br />
&nbsp; * This is required when you are developing for Android or you are developing on Windows.<br />
&nbsp; */<br />
 &#8220;certificatePath&#8221;:&#8220;C:/dev/certificate-codesigningkeys-flashMobile/Android/nttdata.p12&#8221;,</p>

<p> /**<br />
&nbsp; * @cfg &#123;String&#125; certificateAlias<br />
&nbsp; * This is the name of your certificate.<br />
&nbsp; *<br />
&nbsp; * IF you do not specify this on OSX, we will try and automatically find the certificate for you using the applicationId.<br />
&nbsp; *<br />
&nbsp; * This can be just a simple matcher. For example, if your certificate name is &#8220;iPhone Developer: Robert Dougan (ABCDEFGHIJ)&#8221;, you<br />
&nbsp; * can just put &#8220;iPhone Developer&#8221;.<br />
&nbsp; *<br />
&nbsp; * When using a certificatePath on Windows, you do not need to specify this.<br />
&nbsp; */<br />
 &#8220;certificateAlias&#8221;:&#8221;&#8220;,<br />
 <br />
 /**<br />
&nbsp; * @cfg &#123;String&#125; sdkPath<br />
&nbsp; * This is the path to the Android SDK, if you are developing an Android application.<br />
&nbsp; */<br />
 &#8220;sdkPath&#8221;:&#8220;C:/devTools/android/android-sdk-windows&#8221;,<br />
 <br />
 /**<br />
&nbsp; * @cfg  androidAPILevel<br />
&nbsp; * This is android API level, the version of Android SDK to use, you can read more about it here: <a href="http://developer.android.com/guide/appendix/api-levels.html">http://developer.android.com/guide/appendix/api-levels.html</a>.<br />
&nbsp; * Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)<br />
&nbsp; */<br />
 &#8220;androidAPILevel&#8221;:&#8220;7&#8221;,</p>

<p> /**<br />
&nbsp; * @cfg  orientations<br />
&nbsp; * @required<br />
&nbsp; * This is orientations that this application can run.<br />
&nbsp; */<br />
 &#8220;orientations&#8221;: [<br />
&nbsp; &#8220;portrait&#8221;,<br />
&nbsp; &#8220;landscapeLeft&#8221;,<br />
&nbsp; &#8220;landscapeRight&#8221;,<br />
&nbsp; &#8220;portraitUpsideDown&#8221;<br />
 ]<br />
&#125;</p>



<p>&nbsp;</p>]]></content:encoded>
      <pubDate>Thu, 26 Apr 2012 03:58 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31374#date:03:58</guid>
    </item>
  
		<item>
      <title>Comment by Juris</title>
      <description>@dwdg : If you need to reference other scripts, then you just include it in index.html file like any other .js file like this:
[removed][removed]
[removed][removed]

In case You have some other non standard folders that should be copied during build process, they should be references inside app.json file in section &#8220;extras&#8221;</description>
      <content:encoded><![CDATA[<p>@dwdg : If you need to reference other scripts, then you just include it in index.html file like any other .js file like this:<br />
[removed][removed]<br />
[removed][removed]</p>

<p>In case You have some other non standard folders that should be copied during build process, they should be references inside app.json file in section &#8220;extras&#8221;</p>]]></content:encoded>
      <pubDate>Wed, 25 Apr 2012 20:46 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31361#date:20:46</guid>
    </item>
  
		<item>
      <title>Comment by dwgw</title>
      <description>&#8220;The Micro&#45;loader In fact, it is, and should be, the only script that is physically included inside your HTML document.&#8221;

So where do you put google maps or other hosted scripts. I tried a putting url in app.json but did not know where to put it and I can&#8217;t seem to find any documentation on app.json. I tried pulling the script and saving it to in app folder then adding it to js section in app.json but build failed.</description>
      <content:encoded><![CDATA[<p>&#8220;The Micro-loader In fact, it is, and should be, the only script that is physically included inside your HTML document.&#8221;</p>

<p>So where do you put google maps or other hosted scripts. I tried a putting url in app.json but did not know where to put it and I can&#8217;t seem to find any documentation on app.json. I tried pulling the script and saving it to in app folder then adding it to js section in app.json but build failed.</p>]]></content:encoded>
      <pubDate>Wed, 25 Apr 2012 15:50 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31345#date:15:50</guid>
    </item>
  
		<item>
      <title>Comment by slemmon</title>
      <description>Is app building in ExtJS 4.x using &#8220;sencha app build&#8221; on the roadmap as well?</description>
      <content:encoded><![CDATA[<p>Is app building in ExtJS 4.x using &#8220;sencha app build&#8221; on the roadmap as well?</p>]]></content:encoded>
      <pubDate>Wed, 25 Apr 2012 14:21 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31342#date:14:21</guid>
    </item>
  
		<item>
      <title>Comment by Nigel Dahl</title>
      <description>Jacky
This is all great stuff, and really well explained.&amp;nbsp; As someone who&#8217;s only recently started working with SenchaTouch2.0, but with a few years ExtJS experience behind me, I&#8217;m really excited by the step&#45;change in experience, also to be seen with ExtJS v4.1 , and the integrated environment being provided.
What would be really helpful next is another article that explains the details of what happens with native app packaging to a similar level of detail.&amp;nbsp; I&#8217;ve successfully tested creating an Android native app but not yet got my head round how it will need to be updated as part of ongoing version control.&amp;nbsp; Does it always need a full rebuild if there is a small change in one of the component files, and what is the recommended mechanism for making the client aware that a new version of the app exists and should be downloaded?</description>
      <content:encoded><![CDATA[<p>Jacky<br />
This is all great stuff, and really well explained.&nbsp; As someone who&#8217;s only recently started working with SenchaTouch2.0, but with a few years ExtJS experience behind me, I&#8217;m really excited by the step-change in experience, also to be seen with ExtJS v4.1 <img src="/images/smileys/smile.gif" width="19" height="19" alt="smile" style="border:0;" />, and the integrated environment being provided.<br />
What would be really helpful next is another article that explains the details of what happens with native app packaging to a similar level of detail.&nbsp; I&#8217;ve successfully tested creating an Android native app but not yet got my head round how it will need to be updated as part of ongoing version control.&nbsp; Does it always need a full rebuild if there is a small change in one of the component files, and what is the recommended mechanism for making the client aware that a new version of the app exists and should be downloaded?</p>]]></content:encoded>
      <pubDate>Wed, 25 Apr 2012 13:50 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//behind-sencha-command-and-the-build-process#id:31337#date:13:50</guid>
    </item>
  
		
	</channel>
</rss>