forked from thom4parisot/crx
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added module API, travis-ci integration
- Loading branch information
Showing
9 changed files
with
117 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
language: node_js | ||
node_js: | ||
- 0.4 | ||
- 0.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
var fs = require("fs") | ||
, assert = require("assert") | ||
, ChromeExtension = require("../") | ||
, crx = new ChromeExtension | ||
, updateUrl = "http://localhost/update.xml" | ||
|
||
crx.privateKey = fs.readFileSync(__dirname + "/key.pem") | ||
|
||
crx.load(__dirname + "/myFirstExtension", function(err) { | ||
if (err) throw err | ||
|
||
this.pack(function(err, data){ | ||
if (err) throw err | ||
|
||
var updateXML = this.generateUpdateXML(updateUrl) | ||
|
||
fs.writeFile(__dirname + "/update.xml", updateXML) | ||
fs.writeFile(__dirname + "/myFirstExtension.crx", data) | ||
|
||
this.destroy() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIICWwIBAAKBgQDIE6oOlsG3WmTe9lxiv3ey9esYzFScqXjaAmWnNz68TSWQqe1G | ||
QyTUit2cDEtRYBFRd5SibNHtRkbEwoYON574LWgi83nLJzqHQy2rYKxeqp3FO0ev | ||
pNlHpmutDtutPW+UwRfGsULKGC9e97YdMPuRhcIa9Ff1qiLT6Fqj0U3NAwIDAQAB | ||
AoGAE0j58lALug2nfWpHu2jzM7fKgmhnm3YmZPUoMTb9AA97mHcYnNYp/aao97qj | ||
o+Nbp/ubwxA0J+fHOH37h/FKjDuq+yc8fJIHTGxeqIprN7y5HyWS0Q/DU7obzIKt | ||
3voQ904ldsJU5zuP/Fb18iWA2svxE5u0XUNmiM7BX2P5qfkCQQD0I+/L1vul43Q0 | ||
CRq5e7btJtIW0LVbxSf+fxgUiexs6YJkccHbPkGDB60nnGxqaV7O5HqcTFj1JSjW | ||
O9ZtXqAHAkEA0cvD3OGC7nsVV48Hgu3xnt+h8QoPS3Qwnla73OxAJf6UZ2WrCiWz | ||
evd5Hqr4aBsfMHKTdzXsEMocfXcaApb0JQJAZ4+28KjJJp1NdaVHCNdJyV9mTvdJ | ||
dxwy0unmtQ+skqabATCgIvhNod9nvB3Gf30jEnAo8pQQSCzzHa1UUCCLkQJAGTZn | ||
v2/KkGZyVid2O6Hk27b8ez8+P08jWKQLx60MuIQzyYlKWNnXC/wZrjnVyI0Z3nSm | ||
jDkKuanQarOZiJ4jkQJAdKbxR0vmg2qD+5Mq0WDtJ5chJV1QRNri1gU6URo69w34 | ||
Y78vDpKedMtiiXYW2cjXjONojRUMZFjsnSxM0CzmjQ== | ||
-----END RSA PRIVATE KEY----- |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> | ||
<app appid='eenbebfenfnlbeoccghenggcpkdnpbkh'> | ||
<updatecheck codebase='http://localhost/update.xml' version='1.0' /> | ||
</app> | ||
</gupdate> |