From 65b6fe2e2ef5847f368f7ad261b58f92905123ee Mon Sep 17 00:00:00 2001 From: antelle Date: Tue, 2 Jun 2020 22:30:21 +0200 Subject: [PATCH] removed an old task --- build/tasks/grunt-codesign.js | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 build/tasks/grunt-codesign.js diff --git a/build/tasks/grunt-codesign.js b/build/tasks/grunt-codesign.js deleted file mode 100644 index ad69e851..00000000 --- a/build/tasks/grunt-codesign.js +++ /dev/null @@ -1,31 +0,0 @@ -module.exports = function (grunt) { - grunt.registerMultiTask('codesign', 'Launches Apple codesign', function () { - const done = this.async(); - const opt = this.options(); - const config = require('../../keys/codesign.json'); - for (const file of this.files) { - const args = ['-s', config.identities[opt.identity]]; - if (opt.deep) { - args.push('--deep'); - } - args.push(file.src); - grunt.log.writeln('codesign:', args.join(' ')); - grunt.util.spawn( - { - cmd: 'codesign', - args, - opts: { stdio: 'inherit' } - }, - (error, result, code) => { - if (error) { - return grunt.warn('codesign: ' + error); - } - if (code) { - return grunt.warn('codesign exit code ' + code); - } - done(); - } - ); - } - }); -};