Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sualko/cloud_piwik.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2017-01-13 17:07:11 +0300
committersualko <klaus@jsxc.org>2017-01-13 17:07:11 +0300
commitb4b4d4ee5bec79df97542df15c89bd87c99f8ea2 (patch)
tree7bb90d41d02f1e2ebbce08b2d8fa8cd37ed04951
parent6a1deb9d3852ade49e953e678fc3269e89872619 (diff)
add nc sign task
-rw-r--r--Gruntfile.js14
-rw-r--r--package.json1
2 files changed, 14 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 10be953..b43615a 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -76,7 +76,8 @@ module.exports = function(grunt) {
compress: {
main: {
options: {
- archive: "archives/owncloud_piwik-<%= meta.app.version %>.zip"
+ archive: "archives/owncloud_piwik-<%= meta.app.version %>.tar.gz",
+ mode: 'tgz'
},
files: [{
src: ['**'],
@@ -85,6 +86,14 @@ module.exports = function(grunt) {
cwd: 'build/'
}]
}
+ },
+ exec: {
+ signRelease: {
+ command: 'openssl dgst -sha512 -sign ' +
+ '~/.nextcloud/certificates/piwik.key ' +
+ 'archives/owncloud_piwik-<%= meta.app.version %>.tar.gz | openssl base64 > ' +
+ 'archives/owncloud_piwik-<%= meta.app.version %>.tar.gz.ncsig'
+ }
}
});
@@ -96,9 +105,12 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jsbeautifier');
grunt.loadNpmTasks('grunt-banner');
grunt.loadNpmTasks('grunt-text-replace');
+ grunt.loadNpmTasks('grunt-exec');
grunt.registerTask('default', ['jshint', 'jsbeautifier']);
grunt.registerTask('build', ['jshint', 'jsbeautifier', 'clean', 'copy', 'usebanner']);
grunt.registerTask('build:release', ['build', 'replace', 'uglify', 'compress']);
+
+ grunt.registerTask('sign:release', ['exec:signRelease']);
};
diff --git a/package.json b/package.json
index b8de267..68589fb 100644
--- a/package.json
+++ b/package.json
@@ -27,6 +27,7 @@
"grunt-contrib-copy": "^0.8.1",
"grunt-contrib-jshint": "^0.11.3",
"grunt-contrib-uglify": "^0.9.2",
+ "grunt-exec": "^1.0.1",
"grunt-jsbeautifier": "^0.2.10",
"grunt-text-replace": "^0.4.0"
}