| OLD | NEW |
| 1 {{+bindTo:partials.standard_nacl_api}} | 1 {{+bindTo:partials.standard_nacl_article}} |
| 2 | 2 |
| 3 <section id="running"> | 3 <section id="running"> |
| 4 <h1 id="running">Running</h1> | 4 <span id="devcycle-running"></span><h1 id="running"><span id="devcycle-running">
</span>Running</h1> |
| 5 <div class="contents local" id="contents" style="display: none"> | 5 <div class="contents local" id="contents" style="display: none"> |
| 6 <ul class="small-gap"> | 6 <ul class="small-gap"> |
| 7 <li><a class="reference internal" href="#introduction" id="id5">Introduction</a>
</li> | 7 <li><a class="reference internal" href="#introduction" id="id5">Introduction</a>
</li> |
| 8 <li><a class="reference internal" href="#portable-native-client-pnacl-applicatio
ns" id="id6">Portable Native Client (PNaCl) applications</a></li> | 8 <li><a class="reference internal" href="#portable-native-client-pnacl-applicatio
ns" id="id6">Portable Native Client (PNaCl) applications</a></li> |
| 9 <li><a class="reference internal" href="#native-client-applications-and-the-chro
me-web-store" id="id7">Native Client applications and the Chrome Web Store</a></
li> | 9 <li><a class="reference internal" href="#native-client-applications-and-the-chro
me-web-store" id="id7">Native Client applications and the Chrome Web Store</a></
li> |
| 10 <li><p class="first"><a class="reference internal" href="#prerequisites" id="id8
">Prerequisites</a></p> | 10 <li><p class="first"><a class="reference internal" href="#prerequisites" id="id8
">Prerequisites</a></p> |
| 11 <ul class="small-gap"> | 11 <ul class="small-gap"> |
| 12 <li><a class="reference internal" href="#browser-and-pepper-versions" id="id9">B
rowser and Pepper versions</a></li> | 12 <li><a class="reference internal" href="#browser-and-pepper-versions" id="id9">B
rowser and Pepper versions</a></li> |
| 13 <li><a class="reference internal" href="#chrome-cache" id="id10">Chrome Cache</a
></li> | 13 <li><a class="reference internal" href="#chrome-cache" id="id10">Chrome Cache</a
></li> |
| 14 </ul> | 14 </ul> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 every time you want to run a new build of your application, but there are four | 64 every time you want to run a new build of your application, but there are four |
| 65 alternative techniques you can use to run the application during development. | 65 alternative techniques you can use to run the application during development. |
| 66 These techniques are listed in the following table and described in detail | 66 These techniques are listed in the following table and described in detail |
| 67 below. Each technique has certain requirements (NaCl flag, web server, and/or | 67 below. Each technique has certain requirements (NaCl flag, web server, and/or |
| 68 CWS metadata); these are explained in the <a class="reference internal" href="#r
equirements"><em>Requirements</em></a> | 68 CWS metadata); these are explained in the <a class="reference internal" href="#r
equirements"><em>Requirements</em></a> |
| 69 section below.</p> | 69 section below.</p> |
| 70 <table border="1" class="docutils"> | 70 <table border="1" class="docutils"> |
| 71 <colgroup> | 71 <colgroup> |
| 72 </colgroup> | 72 </colgroup> |
| 73 <thead valign="bottom"> | 73 <thead valign="bottom"> |
| 74 <tr class="row-odd"><th class="head">#</th> | 74 <tr class="row-odd"><th class="head" colspan="2">Technique</th> |
| 75 <th class="head">Technique</th> | 75 <th class="head">Requires |
| 76 <th class="head">Requires NaCl flag</th> | 76 Web |
| 77 <th class="head">Requires Web Server</th> | 77 Server</th> |
| 78 <th class="head">Requires CWS Metadata</th> | 78 <th class="head">Requires |
| 79 <th class="head">Description</th> | 79 CWS |
| 80 Metadata</th> |
| 80 </tr> | 81 </tr> |
| 81 </thead> | 82 </thead> |
| 82 <tbody valign="top"> | 83 <tbody valign="top"> |
| 83 <tr class="row-even"><td>1</td> | 84 <tr class="row-even"><td colspan="2"><p class="first"><strong>1. Local server</s
trong></p> |
| 84 <td>Local server</td> | 85 <blockquote class="last"> |
| 86 <div><blockquote> |
| 87 <div><p>Run a local server and simply point your browser to |
| 88 your application on the server.</p> |
| 89 <aside class="note"> |
| 90 This technique requires the NaCl flag. |
| 91 </aside> |
| 92 </div></blockquote> |
| 93 </div></blockquote> |
| 94 </td> |
| 95 <td><img alt="CHK" src="/native-client/images/check-red.png" /></td> |
| 96 <td> </td> |
| 97 </tr> |
| 98 <tr class="row-odd"><td colspan="2"><p class="first"><strong>2. Packaged applica
tion loaded as an unpacked |
| 99 extension</strong></p> |
| 100 <blockquote class="last"> |
| 101 <div><blockquote> |
| 102 <div>Load your packaged application into Chrome as an |
| 103 unpacked extension and run it without a server. An |
| 104 unpacked extension is an application whose source and |
| 105 metadata files are located in an unzipped folder on |
| 106 your development machine. The CWS manifest file |
| 107 (explained below) must specify a local_path field.</div></blockquote> |
| 108 </div></blockquote> |
| 109 </td> |
| 110 <td> </td> |
| 111 <td><img alt="CHK" src="/native-client/images/check-red.png" /></td> |
| 112 </tr> |
| 113 <tr class="row-even"><td colspan="2"><p class="first"><strong>3. Hosted applicat
ion loaded as an unpacked |
| 114 extension</strong></p> |
| 115 <blockquote class="last"> |
| 116 <div><blockquote> |
| 117 <div>Load your hosted application into Chrome as an |
| 118 unpacked extension and run it from a server (which can |
| 119 be a local server). The CWS manifest file must specify |
| 120 a web_url field.</div></blockquote> |
| 121 </div></blockquote> |
| 122 </td> |
| 85 <td><img alt="CHK" src="/native-client/images/check-red.png" /></td> | 123 <td><img alt="CHK" src="/native-client/images/check-red.png" /></td> |
| 86 <td><img alt="CHK" src="/native-client/images/check-red.png" /></td> | 124 <td><img alt="CHK" src="/native-client/images/check-red.png" /></td> |
| 87 <td> </td> | |
| 88 <td>Run a local server and simply point your browser to your application on | |
| 89 the server.</td> | |
| 90 </tr> | 125 </tr> |
| 91 <tr class="row-odd"><td>2</td> | 126 <tr class="row-odd"><td colspan="2"><p class="first"><strong>4. CWS application
with untrusted testers</strong></p> |
| 92 <td>Packaged application loaded as an unpacked extension</td> | 127 <blockquote class="last"> |
| 93 <td> </td> | 128 <div><blockquote> |
| 129 <div>The standard technique for distributing a packaged or |
| 130 hosted application in the CWS. You can limit the |
| 131 application to trusted testers. This technique |
| 132 requires a server if your application is a hosted |
| 133 application.</div></blockquote> |
| 134 </div></blockquote> |
| 135 </td> |
| 94 <td> </td> | 136 <td> </td> |
| 95 <td><img alt="CHK" src="/native-client/images/check-red.png" /></td> | 137 <td><img alt="CHK" src="/native-client/images/check-red.png" /></td> |
| 96 <td>Load your packaged application into Chrome as an unpacked extension and | |
| 97 run it without a server. An unpacked extension is simply an application | |
| 98 whose source and metadata files are located in a plain (unzipped) folder | |
| 99 on your development machine. The CWS manifest file (explained below) must | |
| 100 specify a <code>local_path</code> field.</td> | |
| 101 </tr> | |
| 102 <tr class="row-even"><td>3</td> | |
| 103 <td>Hosted application loaded as an unpacked extension</td> | |
| 104 <td> </td> | |
| 105 <td><img alt="CHK" src="/native-client/images/check-red.png" /></td> | |
| 106 <td><img alt="CHK" src="/native-client/images/check-red.png" /></td> | |
| 107 <td>Load your hosted application into Chrome as an unpacked extension and run | |
| 108 it from a server (which can be a local server). The CWS manifest file | |
| 109 must specify a <code>web_url</code> field.</td> | |
| 110 </tr> | |
| 111 <tr class="row-odd"><td>4</td> | |
| 112 <td>CWS application with untrusted testers</td> | |
| 113 <td> </td> | |
| 114 <td> </td> | |
| 115 <td><img alt="CHK" src="/native-client/images/check-red.png" /></td> | |
| 116 <td>This is the standard technique for distributing a packaged or hosted | |
| 117 application in the CWS, but you can limit the application to a few | |
| 118 trusted testers. This technique requires a server if your application is | |
| 119 a hosted application.</td> | |
| 120 </tr> | 138 </tr> |
| 121 </tbody> | 139 </tbody> |
| 122 </table> | 140 </table> |
| 123 <p>Which of the above techniques you use to run your application during developm
ent | 141 <p>Which of the above techniques you use to run your application during developm
ent |
| 124 is largely a matter of personal preference (i.e., would you rather start a local | 142 is largely a matter of personal preference (i.e., would you rather start a local |
| 125 server or create CWS metadata?). As a general rule, once you have an idea of how | 143 server or create CWS metadata?). As a general rule, once you have an idea of how |
| 126 you plan to distribute your application, you should use the corresponding | 144 you plan to distribute your application, you should use the corresponding |
| 127 technique during development. Choosing a distribution option depends on a number | 145 technique during development. Choosing a distribution option depends on a number |
| 128 of factors such as application size, application start-up time, hosting costs, | 146 of factors such as application size, application start-up time, hosting costs, |
| 129 offline functionality, etc. (see <a class="reference internal" href="/native-cli
ent/devguide/distributing.html"><em>Distributing Your Application</em></a> for d
etails), but you don’t need to make a decision about how | 147 offline functionality, etc. (see <a class="reference internal" href="/native-cli
ent/devguide/distributing.html"><em>Distributing Your Application</em></a> for d
etails), but you don’t need to make a decision about how |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 be able to find the application by searching in the CWS.</li> | 435 be able to find the application by searching in the CWS.</li> |
| 418 </ul> | 436 </ul> |
| 419 </li> | 437 </li> |
| 420 </ol> | 438 </ol> |
| 421 <p>To publish an application to the world after publishing it to test accounts, | 439 <p>To publish an application to the world after publishing it to test accounts, |
| 422 you must first unpublish the application. For additional information see | 440 you must first unpublish the application. For additional information see |
| 423 <a class="reference external" href="/webstore/docs/publish">Publishing Your App<
/a>, and in particular <a class="reference external" href="/webstore/publish#tes
taccounts">Publishing | 441 <a class="reference external" href="/webstore/docs/publish">Publishing Your App<
/a>, and in particular <a class="reference external" href="/webstore/publish#tes
taccounts">Publishing |
| 424 to test accounts</a>.</p> | 442 to test accounts</a>.</p> |
| 425 </section> | 443 </section> |
| 426 | 444 |
| 427 {{/partials.standard_nacl_api}} | 445 {{/partials.standard_nacl_article}} |
| OLD | NEW |