Self-hosted CRX is now the "preview" channel.

There's not a huge difference: preview gets an inverted icon and a
different ID, meaning that it can be run separately to edit Caret in
trunk, but it's still basically stable.
This commit is contained in:
Thomas Wilburn 2013-09-11 23:29:04 -07:00
parent 8d719ced6e
commit 2cb73e73fd
3 changed files with 6 additions and 2 deletions

View file

@ -49,12 +49,16 @@ module.exports = function(grunt) {
grunt.registerTask("package", ["less:all", "compress:pack", "copy:unpacked", "crx"]);
grunt.registerTask("crx", "Makes a new CRX package", function() {
var manifest = JSON.parse(fs.readFileSync("./build/unpacked/manifest.json"));
manifest.icons["128"] = "icon-128-inverted.png";
fs.writeFileSync("./build/unpacked/manifest.json", JSON.stringify(manifest, null, 2));
//perform the Chrome packaging
var c = this.async();
var here = fs.realpathSync(__dirname);
var cmd = ['"%LOCALAPPDATA%/Google/Chrome SxS/Application/chrome.exe"'];
cmd.push("--pack-extension=" + path.join(here, "build/unpacked"));
cmd.push("--pack-extension-key=" + path.join(here, "../Caret.pem"));
var fullPath =
exec(cmd.join(" "),function(err, out, stderr) {
fs.renameSync("./build/unpacked.crx", "./build/Caret.crx");
exec("rm -rf ./build/unpacked");

BIN
icon-128-inverted.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

@ -1,7 +1,7 @@
{
"name": "Caret",
"description": "Professional text editing for Chrome and Chrome OS",
"version": "0.0.18",
"version": "0.0.19",
"manifest_version": 2,
"icons": {
"128": "icon-128-2.png"