Fix platform check
This commit is contained in:
+3
-3
@@ -54,13 +54,13 @@ project.addDefine('arm_data_dir');
|
|||||||
project.addParameter('--macro include("arm.brushnode")');
|
project.addParameter('--macro include("arm.brushnode")');
|
||||||
project.addParameter('-dce full');
|
project.addParameter('-dce full');
|
||||||
|
|
||||||
if (platform === Platform.Windows) {
|
if (process.platform === 'win32') {
|
||||||
project.addAssets("Bundled/cmft/cmft.exe", { notinlist: true , destination: "data/{name}" });
|
project.addAssets("Bundled/cmft/cmft.exe", { notinlist: true , destination: "data/{name}" });
|
||||||
}
|
}
|
||||||
else if (platform === Platform.Linux) {
|
else if (process.platform === 'linux') {
|
||||||
project.addAssets("Bundled/cmft/cmft-linux64", { notinlist: true , destination: "data/{name}" });
|
project.addAssets("Bundled/cmft/cmft-linux64", { notinlist: true , destination: "data/{name}" });
|
||||||
}
|
}
|
||||||
else if (platform === Platform.OSX) {
|
else if (process.platform === 'darwin') {
|
||||||
project.addAssets("Bundled/cmft/cmft-osx", { notinlist: true , destination: "data/{name}" });
|
project.addAssets("Bundled/cmft/cmft-osx", { notinlist: true , destination: "data/{name}" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user