push neon reactor

This commit is contained in:
2026-07-12 15:11:38 +02:00
parent 172e72dbcd
commit aeab5f7820
9597 changed files with 2407488 additions and 0 deletions
@@ -0,0 +1,32 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
var fs = require("fs");
var path = require("path");
var supportedPlatform = ["win32"];
var supportedArch = ["x64", "ia32"];
if (!supportedPlatform.includes(process.platform)) {
return;
}
// If ./dist doesn't exist this is a clean install and binaries don't exist yet
if (fs.existsSync(path.join(__dirname, "dist"))) {
// Validate that the current system's architecture is supported
if (supportedArch.includes(process.arch)) {
var arch = process.arch == "ia32" ? "x86" : process.arch;
var sourceDir = path.join(__dirname, "dist", arch);
if (fs.existsSync(sourceDir)){
var destDir = path.join(__dirname, "dist");
var files = fs.readdirSync(sourceDir);
// Copy both binaries to the root folder
files.forEach(filename => {
var sourceFile = path.join(sourceDir, filename);
var destFile = path.join(destDir, filename);
fs.copyFileSync(sourceFile, destFile);
});
}
}
}