aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Cakefile b/Cakefile
index d0b3acaf..d38fa425 100644
--- a/Cakefile
+++ b/Cakefile
@@ -54,6 +54,8 @@ task "package", "Builds a zip file for submission to the Chrome store. The outpu
# To get exec-sync, `npm install exec-sync`. We use this for synchronously executing shell commands.
execSync = require("exec-sync")
+ vimium_version = JSON.parse(fs.readFileSync("manifest.json").toString())["version"]
+
invoke "build"
execSync "rm -rf dist/vimium"
@@ -66,7 +68,7 @@ task "package", "Builds a zip file for submission to the Chrome store. The outpu
blacklist.map((item) -> ["--exclude", "'#{item}'"]))
execSync "rsync " + rsyncOptions.join(" ")
- execSync "cd dist && zip -r vimium.zip vimium"
+ execSync "cd dist && zip -r vimium-#{vimium_version}.zip vimium"
# This builds a CRX that's distributable outside of the Chrome web store. Is this used by folks who fork
# Vimium and want to distribute their fork?