1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-20 10:13:17 +00:00

1. Removed uneccessary printf

2. Added support for hex values for CAched db entries
3. Added --copy-msh support in agent installer
4. Added --no-embedded support
This commit is contained in:
Bryan Roe
2020-08-01 02:38:38 -07:00
parent 8ff0db9c3e
commit 43e09dd41e
5 changed files with 32 additions and 4 deletions

View File

@@ -39,8 +39,16 @@ function installService(params)
};
if (process.platform == 'win32') { options.companyName = ''; }
if (require('fs').existsSync(proxyFile)) { options.files = [{ source: proxyFile, newName: process.platform=='win32'?'MeshAgent.proxy':'meshagent.proxy' }]; }
var i;
if ((i = params.indexOf('--copy-msh="1"')) >= 0)
{
var mshFile = process.platform == 'win32' ? (process.execPath.split('.exe').join('.msh')) : (process.execPath + '.msh');
if (options.files == null) { options.files = []; }
options.files.push({ source: mshFile, newName: process.platform == 'win32' ? 'MeshAgent.msh' : 'meshagent.msh' });
options.parameters.splice(i, 1);
}
if ((i=params.indexOf('--_localService="1"'))>=0)
{
// install in place