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