From f67a50f87bc4ad61deab2e8150d675d9a781fbec Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Wed, 7 Dec 2016 22:32:57 -0800 Subject: [PATCH] Closer to Mac C# builds --- lime/tools/platforms/MacPlatform.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lime/tools/platforms/MacPlatform.hx b/lime/tools/platforms/MacPlatform.hx index 7cb1b1109..11f2008c1 100644 --- a/lime/tools/platforms/MacPlatform.hx +++ b/lime/tools/platforms/MacPlatform.hx @@ -129,7 +129,9 @@ class MacPlatform extends PlatformTarget { var txtPath = targetDirectory + "/obj/hxcs_build.txt"; CSHelper.addSourceFiles (txtPath, CSHelper.ndllSourceFiles); CSHelper.addGUID (txtPath, GUID.uuid ()); - CSHelper.compile (project, targetDirectory + "/obj", applicationDirectory + project.app.file, "x64", "desktop"); + CSHelper.compile (project, targetDirectory + "/obj", targetDirectory + "/obj/ApplicationMain" + (project.debug ? "-debug" : ""), "x64", "desktop"); + FileHelper.copyFile (targetDirectory + "/obj/ApplicationMain" + (project.debug ? "-debug" : "") + ".exe", executablePath + ".exe"); + File.saveContent (executablePath, "#!/bin/sh\nmono ${PWD}/" + project.app.file + ".exe"); } else {