OS X changes
This commit is contained in:
@@ -174,11 +174,10 @@ module.exports.executeMount = (directory, version, storageType, location, exitCa
|
||||
} else if (storageType.toLowerCase() === 'siaprime') {
|
||||
args.push('-sp');
|
||||
}
|
||||
if (os.platform() === 'linux') {
|
||||
if ((os.platform() === 'linux') || (os.platform() === 'darwin')) {
|
||||
args.push('-o');
|
||||
args.push('big_writes');
|
||||
}
|
||||
if (os.platform() === 'win32') {
|
||||
} else if (os.platform() === 'win32') {
|
||||
args.push('-hidden');
|
||||
}
|
||||
args.push(location);
|
||||
@@ -454,9 +453,11 @@ module.exports.stopProcessByPID = pid => {
|
||||
windowsHide: true,
|
||||
};
|
||||
|
||||
const command = (os.platform() === 'win32') ? 'taskkill.exe' : '';
|
||||
const command = (os.platform() === 'win32') ? 'taskkill.exe' : 'kill';
|
||||
const args = [];
|
||||
if (os.platform() === 'win32') {
|
||||
args.push('/PID');
|
||||
}
|
||||
args.push(pid);
|
||||
|
||||
const process = new spawn(command, args, processOptions);
|
||||
|
||||
Reference in New Issue
Block a user