Confirmed users
158
edits
| Line 26: | Line 26: | ||
=== 2. Add Additional Required Attributes to the Manifest File === | === 2. Add Additional Required Attributes to the Manifest File === | ||
Beside the well-known attributes in the gaia manifest, there are two additional attributes required by signed package and you have to manually add to the manifest: | Beside the well-known attributes in the gaia manifest, there are two additional attributes required by signed package and you have to manually add to the manifest: | ||
# package-identifer: A UUID string to uniquely identify this package. The identifier will be considered as a part of the origin. So please be careful to change this value across versions. | # '''package-identifer''': A UUID string to uniquely identify this package. The identifier will be considered as a part of the origin. So please be careful to change this value across versions. | ||
# moz-package-origin: The origin where the package is going to be hosted. This prevents the package from being downloaded and hosted by other people. | # '''moz-package-origin''': The origin where the package is going to be hosted. This prevents the package from being downloaded and hosted by other people. | ||
Note that the packaging/signing tool would automatically add additional attributes to the manifest like "moz-resources". | Note that the packaging/signing tool would automatically add additional attributes to the manifest like "moz-resources". | ||
| Line 33: | Line 33: | ||
For example, your manifest file may look like the following: | For example, your manifest file may look like the following: | ||
<pre> | |||
{ | { | ||
// Regular manifest attributes. | // Regular manifest attributes. | ||
| Line 43: | Line 44: | ||
"moz-package-origin": "http://people.mozilla.org" | "moz-package-origin": "http://people.mozilla.org" | ||
} | } | ||
</pre> | |||
After packaging and signing, it becomes: | After packaging and signing, it becomes: | ||
<pre> | |||
{ | { | ||
// Regular manifest attributes. | // Regular manifest attributes. | ||
| Line 59: | Line 62: | ||
"moz-resources": [...], | "moz-resources": [...], | ||
} | } | ||
</pre> | |||
=== 3. Create and Sign Your Package === | === 3. Create and Sign Your Package === | ||