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:
parent
0f29e94272
commit
65b6fe2e2e
|
@ -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();
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue
Block a user