From e2332c4ff9f00af087faee659bfd972c1eff8e3c Mon Sep 17 00:00:00 2001 From: FelisCatus Date: Wed, 24 Sep 2014 11:42:35 +0800 Subject: [PATCH] Add grunt target for a zip ball. --- omega-target-chromium-extension/.gitignore | 1 + omega-target-chromium-extension/grunt/aliases.coffee | 1 + omega-target-chromium-extension/grunt/compress.coffee | 9 +++++++++ omega-target-chromium-extension/overlay/manifest.json | 2 +- omega-target-chromium-extension/package.json | 1 + 5 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 omega-target-chromium-extension/grunt/compress.coffee diff --git a/omega-target-chromium-extension/.gitignore b/omega-target-chromium-extension/.gitignore index e47655e8..66543825 100644 --- a/omega-target-chromium-extension/.gitignore +++ b/omega-target-chromium-extension/.gitignore @@ -2,3 +2,4 @@ /omega_target_*.min.js /build +/release.zip diff --git a/omega-target-chromium-extension/grunt/aliases.coffee b/omega-target-chromium-extension/grunt/aliases.coffee index 0e7b7ec4..31338a50 100644 --- a/omega-target-chromium-extension/grunt/aliases.coffee +++ b/omega-target-chromium-extension/grunt/aliases.coffee @@ -6,3 +6,4 @@ module.exports = 'copy' ] test: ['mochaTest'] + release: ['default', 'compress'] diff --git a/omega-target-chromium-extension/grunt/compress.coffee b/omega-target-chromium-extension/grunt/compress.coffee new file mode 100644 index 00000000..67923326 --- /dev/null +++ b/omega-target-chromium-extension/grunt/compress.coffee @@ -0,0 +1,9 @@ +module.exports = + options: + archive: './release.zip' + mode: 'zip' + build: + cwd: 'build' + src: ['**'] + expand: true + filter: 'isFile' diff --git a/omega-target-chromium-extension/overlay/manifest.json b/omega-target-chromium-extension/overlay/manifest.json index 93464589..c669fdfa 100644 --- a/omega-target-chromium-extension/overlay/manifest.json +++ b/omega-target-chromium-extension/overlay/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "__MSG_manifest_app_name__", - "version": "2.1.3", + "version": "2.1.4", "description": "__MSG_manifest_app_description__", "icons": { "16": "img/icons/omega-16.png", diff --git a/omega-target-chromium-extension/package.json b/omega-target-chromium-extension/package.json index e99a0fbb..9a1cdbeb 100644 --- a/omega-target-chromium-extension/package.json +++ b/omega-target-chromium-extension/package.json @@ -11,6 +11,7 @@ "grunt-browserify": "^3.0.0", "grunt-coffeelint": "^0.0.13", "grunt-contrib-coffee": "^0.11.1", + "grunt-contrib-compress": "^0.12.0", "grunt-contrib-copy": "^0.5.0", "grunt-contrib-watch": "^0.6.1", "grunt-mocha-test": "~0.11.0",