h5o-chrome
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -37,3 +37,3 @@ { | ||
}, | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"author": { | ||
@@ -40,0 +40,0 @@ "name": "Dominykas Blyžė", |
@@ -25,2 +25,6 @@ # HTML5 outliner for Chrome # | ||
### v0.8.0 (2015-03-17) ### | ||
* Standalone crx release | ||
* Standalone release also asks for `file://*` permission | ||
### v0.7.0 (2015-03-04) ### | ||
@@ -40,1 +44,5 @@ * Dependency updates | ||
Originally [lived on Google Code](https://code.google.com/p/h5o), if you like archeology | ||
## crxmake.sh ## | ||
Made available by Google at [https://developer.chrome.com/extensions/crx](https://developer.chrome.com/extensions/crx) under CC-By 3.0 license |
@@ -26,2 +26,9 @@ module.exports = function (grunt) { | ||
"dest": "dist/extension/" | ||
}, | ||
"crx": { | ||
// crx extension has extra permissions and an update URL | ||
"expand": true, | ||
"cwd": "dist/extension/", | ||
"src": ["**"], | ||
"dest": "dist/extension-standalone/" | ||
} | ||
@@ -41,6 +48,23 @@ }, | ||
grunt.registerTask("default", "Clean build", ["clean:all", "build", "compress"]); | ||
grunt.registerTask("default", "Clean build", ["clean:all", "build", "crx", "compress"]); | ||
grunt.registerTask("build", "Build unpacked extension", ["gen-manifest", "copy:h5o", "copy:extension", "copy:license"]); | ||
grunt.registerTask("build", "Build unpacked extension", ["gen-manifest", "copy:h5o", "copy:extension", "copy:license", "copy:crx"]); | ||
grunt.registerTask("crx", "Build the final crx", function () { | ||
if (!process.env["H5O_CRX"]) return; | ||
var manifest = grunt.file.readJSON("dist/extension/manifest.json"); | ||
manifest["update_url"] = "https://h5o.github.io/crx-updates.xml"; | ||
manifest["permissions"].push("file://*"); | ||
grunt.file.write("dist/extension/manifest.json", JSON.stringify(manifest, null, " ")); | ||
var shelljs = require("shelljs"); | ||
var passphraseEnvVarName = process.env["H5O_CRX_KEY_PASSPHRASE"] ? "H5O_CRX_KEY_PASSPHRASE" : ""; | ||
var res = shelljs.exec(grunt.template.process("./crxmake.sh dist/extension-standalone h5o-chrome.key " + passphraseEnvVarName)); | ||
if (res.code !== 0) { | ||
grunt.fail.fatal("Failed building the crx"); | ||
} | ||
shelljs.mv("extension-standalone.crx", grunt.template.process("dist/outliner-v<%= pkg.version %>.crx")); | ||
}); | ||
grunt.registerTask("gen-manifest", function () { | ||
@@ -47,0 +71,0 @@ |
{ | ||
"name": "h5o-chrome", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "Extension for Google Chrome / Chromium to generate a navigable page outline based on HTML5 outlining algorithm", | ||
"scripts": { | ||
"prepublish": "node ./node_modules/grunt-cli/bin/grunt" | ||
"prepublish": "node ./node_modules/grunt-cli/bin/grunt", | ||
"test": "ls dist/*.crx" | ||
}, | ||
@@ -39,6 +40,7 @@ "repository": { | ||
"grunt-release": "0.11.x", | ||
"h5o": "0.9.x", | ||
"h5o": "0.10.x", | ||
"load-grunt-tasks": "3.1.x", | ||
"shelljs": "0.3.x", | ||
"time-grunt": "1.x" | ||
} | ||
} |
@@ -25,2 +25,6 @@ # HTML5 outliner for Chrome # | ||
### v0.8.0 (2015-03-17) ### | ||
* Standalone crx release | ||
* Standalone release also asks for `file://*` permission | ||
### v0.7.0 (2015-03-04) ### | ||
@@ -40,1 +44,5 @@ * Dependency updates | ||
Originally [lived on Google Code](https://code.google.com/p/h5o), if you like archeology | ||
## crxmake.sh ## | ||
Made available by Google at [https://developer.chrome.com/extensions/crx](https://developer.chrome.com/extensions/crx) under CC-By 3.0 license |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
107595
42
391
47
12
3
6