1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-06 00:13:33 +00:00

fix code-utils locations

This commit is contained in:
Simon Smith
2024-03-11 14:15:04 +00:00
parent b42342b72a
commit 17a37ea4a6

View File

@@ -170,7 +170,7 @@ function expand(options)
if (options == null) { options = {}; }
if (options.embedded === true) { return(expand2(options)); }
if (options.filePath == null) { options.filePath = 'C:/GITHub//MeshAgent/microscript/ILibDuktape_Polyfills.c'; }
if (options.filePath == null) { options.filePath = 'microscript/ILibDuktape_Polyfills.c'; }
var file = require('fs').readFileSync(options.filePath);
var section = file.toString().split('void ILibDuktape_Polyfills_JS_Init(');
@@ -326,8 +326,8 @@ function shrink(options)
{
if (options == null) { options = {}; }
if (options.expandedPath == null) { options.expandedPath = process.argv.getParameter('expandedPath', 'modules_expanded'); }
if (options.filePath == null) { options.filePath = process.argv.getParameter('filePath', 'C:/GITHub//MeshAgent/microscript/ILibDuktape_Polyfills.c'); }
if (options.modulesPath == null) { options.modulesPath = process.argv.getParameter('modulesPath', 'C:/GITHub/MeshAgent/modules'); }
if (options.filePath == null) { options.filePath = process.argv.getParameter('filePath', 'microscript/ILibDuktape_Polyfills.c'); }
if (options.modulesPath == null) { options.modulesPath = process.argv.getParameter('modulesPath', 'modules'); }
readExpandedModules(options);
insertCompressed(options);
@@ -369,7 +369,7 @@ function insertCompressed(options)
function update(options)
{
if (options == null) { options = {}; }
if (options.modulesFolder == null) { options.modulesFolder = 'C:/GITHub/MeshAgent/modules'; }
if (options.modulesFolder == null) { options.modulesFolder = 'modules'; }
if (options.expandedPath == null) { options.expandedPath = 'modules_expanded'; }
var files = require('fs').readFileSync(options.modulesFolder + '/embedded.info');