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>2020-08-14 11:33:15 +0300
committersualko <klaus@jsxc.org>2020-08-14 11:33:15 +0300
commit6bd662c02ef0f33829750de60be98b8fe13de01f (patch)
treea315d657fd1a813a2a32e6eadf74e4533fcea645 /Gruntfile.js
parent489e1b473fffa35331cd9de1bf0c932a3ff2d3f1 (diff)
chore: add publish script
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 00135c4..06be669 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -87,11 +87,17 @@ module.exports = function(grunt) {
}
},
exec: {
- signRelease: {
+ createNextcloudSignature: {
command: 'openssl dgst -sha512 -sign ' +
'~/.nextcloud/certificates/piwik.key ' +
'archives/cloud_piwik-<%= meta.app.version %>.tar.gz | openssl base64 > ' +
'archives/cloud_piwik-<%= meta.app.version %>.tar.gz.ncsig'
+ },
+ createGPGSignature: {
+ command: 'gpg --yes --detach-sign "archives/cloud_piwik-<%= meta.app.version %>.tar.gz"'
+ },
+ createGPGArmorSignature: {
+ command: 'gpg --yes --detach-sign --armor "archives/cloud_piwik-<%= meta.app.version %>.tar.gz"'
}
}
});
@@ -111,5 +117,5 @@ module.exports = function(grunt) {
grunt.registerTask('build', ['jshint', 'jsbeautifier', 'clean', 'copy', 'usebanner']);
grunt.registerTask('build:release', ['build', 'replace', 'uglify', 'compress']);
- grunt.registerTask('sign:release', ['exec:signRelease']);
+ grunt.registerTask('sign:release', ['exec:createNextcloudSignature', 'exec:createGPGSignature', 'exec:createGPGArmorSignature']);
};