1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-25 07:37:46 +02:00
keeweb/build/tasks/grunt-electron-patch.js
2021-02-06 14:46:24 +01:00

13 lines
406 B
JavaScript

module.exports = function (grunt) {
grunt.registerMultiTask('electron-patch', 'Patches Electron executable', async function () {
const patch = require('electron-evil-feature-patcher');
for (const { src } of this.files) {
for (const path of src) {
grunt.log.writeln(`Patching ${path}...`);
patch({ path });
}
}
});
};