@biuxiu/codegen 0.2.14 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/compile.js +2 -2
- package/package.json +1 -1
package/dist/compile.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { resolve } from "path";
|
2
|
-
import { platform } from "os";
|
2
|
+
import { arch, platform } from "os";
|
3
3
|
import { spawn } from "child_process";
|
4
4
|
const getPathName = () => {
|
5
5
|
switch (platform()) {
|
6
6
|
case "win32":
|
7
|
-
return "win/luac.exe";
|
7
|
+
return arch() === "x64" ? "win/luac.exe" : "win/luac_32.exe";
|
8
8
|
case "linux":
|
9
9
|
return "linux/luac";
|
10
10
|
case "darwin":
|