OLD | NEW |
1 <h1>Packaging</h1> | 1 <h1>Packaging</h1> |
2 | 2 |
3 | 3 |
4 <p> | 4 <p> |
5 This page describes how to package your extension. | 5 This page describes how to package your extension. |
6 As the <a href="overview.html">Overview</a> explains, | 6 As the <a href="overview.html">Overview</a> explains, |
7 extensions are packaged as signed ZIP files | 7 extensions are packaged as signed ZIP files |
8 with the file extension "crx"—for example, | 8 with the file extension "crx"—for example, |
9 <code>myextension.crx</code>. | 9 <code>myextension.crx</code>. |
10 </p> | 10 </p> |
11 | 11 |
12 <p> | 12 <p> |
13 <b>Note:</b> | 13 <b>Note:</b> |
14 You might not need to package your extension. | 14 You do not need to package your own extension. |
15 If you publish your extension using the | 15 If you publish your extension using the |
16 <a href="https://chrome.google.com/webstore/developer/dashboard">Chrome Develope
r Dashboard</a>, | 16 <a href="https://chrome.google.com/webstore/developer/dashboard">Chrome Develope
r Dashboard</a>, |
17 then the only reason to create your own <code>.crx</code> file | 17 then the only reason to create your own <code>.crx</code> file |
18 would be to distribute a non-public version—for example, | 18 would be to distribute a non-public version—for example, |
19 to alpha testers. | 19 to alpha testers. |
20 You can find information on publishing extensions and apps in the | 20 You can find information on publishing extensions and apps in the |
21 Chrome Web Store getting started tutorial, starting at | 21 Chrome Web Store getting started tutorial, starting at |
22 <a href="http://code.google.com/chrome/webstore/docs/get_started_simple.html#ste
p5">Step 5: Zip up your app</a>. | 22 <a href="http://code.google.com/chrome/webstore/docs/get_started_simple.html#ste
p5">Step 5: Zip up your app</a>. |
23 </p> | 23 </p> |
24 | 24 |
25 <p> | 25 <p> |
26 When you package an extension, | 26 When you package an extension, |
27 the extension is assigned a unique key pair. | 27 the extension is assigned a unique key pair. |
28 The extension's ID is based on a hash of the public key. | 28 The extension's ID is based on a hash of the public key. |
29 The private key is kept private | 29 The private key is used to sign each version of the extension |
30 and used to sign each version of the extension. | 30 and must be secured from public access. |
| 31 Be careful not to include your private key within |
| 32 your extensions! |
31 </p> | 33 </p> |
32 | 34 |
33 | 35 |
34 <h2>Creating a package</h2> | 36 <h2>Creating a package</h2> |
35 | 37 |
36 <p>To package an extension:</p> | 38 <p>To package an extension:</p> |
37 <ol> | 39 <ol> |
38 <li> | 40 <li> |
39 Bring up the Extensions management page | 41 Bring up the Extensions management page |
40 by going to this URL: | 42 by going to this URL: |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 <p> | 186 <p> |
185 To suppress the dialog, | 187 To suppress the dialog, |
186 add <code>--no-message-box</code> to the command. | 188 add <code>--no-message-box</code> to the command. |
187 </p> | 189 </p> |
188 | 190 |
189 <h2>Package format and scripts</h2> | 191 <h2>Package format and scripts</h2> |
190 <p> | 192 <p> |
191 For more information on the format, as well as pointers to scripts you can use | 193 For more information on the format, as well as pointers to scripts you can use |
192 to create <code>.crx</code> files, see <a href="crx.html">CRX Package Format</a>
. | 194 to create <code>.crx</code> files, see <a href="crx.html">CRX Package Format</a>
. |
193 </p> | 195 </p> |
OLD | NEW |