From ae9695763a274ebe8a17531e770f0517718ca48f Mon Sep 17 00:00:00 2001 From: luboslenco Date: Mon, 3 Jun 2019 17:14:18 +0200 Subject: [PATCH] Fix platform check --- khafile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/khafile.js b/khafile.js index fdc5c775..2c7729a0 100644 --- a/khafile.js +++ b/khafile.js @@ -54,13 +54,13 @@ project.addDefine('arm_data_dir'); project.addParameter('--macro include("arm.brushnode")'); project.addParameter('-dce full'); -if (platform === Platform.Windows) { +if (process.platform === 'win32') { 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}" }); } -else if (platform === Platform.OSX) { +else if (process.platform === 'darwin') { project.addAssets("Bundled/cmft/cmft-osx", { notinlist: true , destination: "data/{name}" }); }