1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-21 07:06:39 +02:00

removed an old task

This commit is contained in:
antelle 2020-06-02 22:30:21 +02:00
parent 0f29e94272
commit 65b6fe2e2e
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C

View File

@ -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();
}
);
}
});
};