agent-rdp 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/agent-rdp-win32-x64.exe +0 -0
- package/bin/agent-rdp.cjs +8 -2
- package/package.json +1 -1
|
Binary file
|
package/bin/agent-rdp.cjs
CHANGED
|
@@ -31,8 +31,14 @@ switch (arch()) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
const ext = os === 'win32' ? '.exe' : '';
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
let binaryName = `agent-rdp-${os}-${architecture}${ext}`;
|
|
35
|
+
let binaryPath = join(scriptDir, binaryName);
|
|
36
|
+
|
|
37
|
+
// Fallback: Windows ARM64 can run x64 binaries via emulation
|
|
38
|
+
if (!existsSync(binaryPath) && os === 'win32' && architecture === 'arm64') {
|
|
39
|
+
binaryName = `agent-rdp-win32-x64.exe`;
|
|
40
|
+
binaryPath = join(scriptDir, binaryName);
|
|
41
|
+
}
|
|
36
42
|
|
|
37
43
|
if (!existsSync(binaryPath)) {
|
|
38
44
|
console.error(`Error: No binary found for ${os}-${architecture}`);
|