forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
36
Kha/Tools/khamake/out/exec.js
Normal file
36
Kha/Tools/khamake/out/exec.js
Normal file
@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.sysdir = exports.sys = void 0;
|
||||
const os = require("os");
|
||||
function sys() {
|
||||
if (os.platform() === 'win32') {
|
||||
return '.exe';
|
||||
}
|
||||
else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
exports.sys = sys;
|
||||
function sysdir() {
|
||||
if (os.platform() === 'linux') {
|
||||
if (os.arch() === 'arm')
|
||||
return 'linux_arm';
|
||||
if (os.arch() === 'arm64')
|
||||
return 'linux_arm64';
|
||||
else if (os.arch() === 'x64')
|
||||
return 'linux_x64';
|
||||
else
|
||||
throw 'Unsupported CPU';
|
||||
}
|
||||
else if (os.platform() === 'win32') {
|
||||
return 'windows_x64';
|
||||
}
|
||||
else if (os.platform() === 'freebsd') {
|
||||
return 'freebsd_x64';
|
||||
}
|
||||
else {
|
||||
return 'macos';
|
||||
}
|
||||
}
|
||||
exports.sysdir = sysdir;
|
||||
//# sourceMappingURL=exec.js.map
|
Reference in New Issue
Block a user