mirror of https://github.com/keeweb/keeweb.git
removed hook-rcedit
This commit is contained in:
parent
c7eb8caf8b
commit
d3dc13d58a
|
@ -7,10 +7,8 @@ const debug = require('debug');
|
|||
const webpackConfig = require('./build/webpack.config');
|
||||
const webpackConfigTest = require('./test/test.webpack.config');
|
||||
const pkg = require('./package.json');
|
||||
const hookRcedit = require('./build/util/hook-rcedit');
|
||||
const codeSignConfig = require('../keys/codesign');
|
||||
|
||||
hookRcedit.setup();
|
||||
debug.enable('electron-notarize');
|
||||
|
||||
module.exports = function(grunt) {
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
const childProcess = require('child_process');
|
||||
|
||||
// remove this once wine can be run on macOS
|
||||
|
||||
const childProcessSpawn = childProcess.spawn;
|
||||
|
||||
function hookedSpawn(command, options, ...args) {
|
||||
if (command === 'wine') {
|
||||
options = options.map(option => {
|
||||
if (option.includes(' ')) {
|
||||
option = `"${option.replace('"', '\\"')}"`;
|
||||
}
|
||||
return option;
|
||||
});
|
||||
}
|
||||
return childProcessSpawn.call(childProcess, command, options, ...args);
|
||||
}
|
||||
|
||||
module.exports.setup = function() {
|
||||
childProcess.spawn = hookedSpawn;
|
||||
};
|
Loading…
Reference in New Issue