SiaPrime changes
This commit is contained in:
13
helpers.js
13
helpers.js
@@ -48,6 +48,11 @@ module.exports.detectRepertoryMounts = (directory, version) => {
|
||||
Location: '',
|
||||
PID: -1,
|
||||
},
|
||||
SiaPrime: {
|
||||
Active: false,
|
||||
Location: '',
|
||||
PID: -1,
|
||||
},
|
||||
}));
|
||||
});
|
||||
process.unref();
|
||||
@@ -166,6 +171,8 @@ module.exports.executeMount = (directory, version, storageType, location, exitCa
|
||||
const args = [];
|
||||
if (storageType.toLowerCase() === 'hyperspace') {
|
||||
args.push('-hs');
|
||||
} else if (storageType.toLowerCase() === 'siaprime') {
|
||||
args.push('-sp');
|
||||
}
|
||||
if (os.platform() === 'linux') {
|
||||
args.push("-o");
|
||||
@@ -208,6 +215,8 @@ module.exports.getConfig = (directory, version, storageType) => {
|
||||
args.push('-dc');
|
||||
if (storageType.toLowerCase() === 'hyperspace') {
|
||||
args.push('-hs');
|
||||
} else if (storageType.toLowerCase() === 'siaprime') {
|
||||
args.push('-sp');
|
||||
}
|
||||
|
||||
const process = new spawn(command, args, processOptions);
|
||||
@@ -254,6 +263,8 @@ module.exports.getConfigTemplate = (directory, version, storageType) => {
|
||||
args.push('-gt');
|
||||
if (storageType.toLowerCase() === 'hyperspace') {
|
||||
args.push('-hs');
|
||||
} else if (storageType.toLowerCase() === 'siaprime') {
|
||||
args.push('-sp');
|
||||
}
|
||||
|
||||
const process = new spawn(command, args, processOptions);
|
||||
@@ -417,6 +428,8 @@ module.exports.setConfigValue = (name, value, directory, storageType, version) =
|
||||
args.push(value);
|
||||
if (storageType.toLowerCase() === 'hyperspace') {
|
||||
args.push('-hs');
|
||||
} else if (storageType.toLowerCase() === 'siaprime') {
|
||||
args.push('-sp');
|
||||
}
|
||||
|
||||
const process = new spawn(command, args, processOptions);
|
||||
|
||||
Reference in New Issue
Block a user