setup script improvements, automatically clone xmrig-hac and build for multiple platforms

This commit is contained in:
2026-03-03 01:47:44 -06:00
parent c778e03f37
commit 0d30ebc8e8
560 changed files with 146800 additions and 8 deletions

View File

@@ -0,0 +1,22 @@
try {
this['Module'] = Module;
Module.test;
} catch(e) {
this['Module'] = Module = {};
}
if (typeof process === 'object') {
if (typeof(FS) === 'object') {
Module['preRun'] = Module['preRun'] || [];
Module['preRun'].push(function() {
FS.init();
FS.mkdir('/test-data');
FS.mount(NODEFS, { root: '.' }, '/test-data');
});
}
} else {
Module['print'] = function(x) {
var event = new Event('test-output');
event.data = x;
window.dispatchEvent(event);
};
}