avd-manager-cli 1.0.0
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/avdm-linux +0 -0
- package/bin/avdm-macos +0 -0
- package/bin/avdm-windows.exe +0 -0
- package/index.js +16 -0
- package/package.json +16 -0
package/bin/avdm-linux
ADDED
|
Binary file
|
package/bin/avdm-macos
ADDED
|
Binary file
|
|
Binary file
|
package/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const os = require("os");
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const { spawn } = require("child_process");
|
|
5
|
+
|
|
6
|
+
const platform = os.platform();
|
|
7
|
+
let binary = "";
|
|
8
|
+
|
|
9
|
+
if (platform === "darwin") binary = "avdm-macos";
|
|
10
|
+
else if (platform === "win32") binary = "avdm-win.exe";
|
|
11
|
+
else binary = "avdm-linux";
|
|
12
|
+
|
|
13
|
+
const binPath = path.join(__dirname, "bin", binary);
|
|
14
|
+
|
|
15
|
+
const child = spawn(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
16
|
+
child.on("exit", (code) => process.exit(code));
|