MeshAgent icon indicating copy to clipboard operation
MeshAgent copied to clipboard

The source code of MeshAgent-master was compiled by myself using Visual Studio 2022

Open a0xdfha82w22q opened this issue 1 month ago • 2 comments

I used Visual Studio 2022 to compile the MeshAgent master source code by myself and modified the code in MeshAgent master\modules\service-manager.js. How to recompile the MeshAgent-master source code to make it effective? In fact, I deleted the "modules" directory and then compiled the MeshAgent-master source code, and it still passed. Why is that? Does compiling the MeshAgent-master source code not rely on the JS files in the modules directory?

a0xdfha82w22q avatar Oct 30 '25 06:10 a0xdfha82w22q

I'm here to ask the same question. The modules are compressed and stored as base64 strings in microscript/ILibDuktape_Polyfills.c and this is what actually embeds the modules in the meshagent binary, but I don't se anything in the make that actually does this part of the workflow, nor have I found any documentation. @si458 any insight you may have in this part of the compiling?

PeetMcK avatar Nov 07 '25 18:11 PeetMcK

https://github.com/Ylianst/MeshAgent/issues/89#issuecomment-949901720

modify js file, put it next to the agent.exe, test all works etc then run command from command line to copy it to clipboard

then replace the polyfill line inside ILibDuktape_Polyfills.c then do a rebuild of your agent

make sure u also use GIT so you can keep track of changes etc

si458 avatar Nov 16 '25 16:11 si458