MacPlatform: fix duplicate shell scripts when building without -clean and copyIfNewer decides the HL executable isn't newer

This commit is contained in:
Josh Tynjala
2024-12-02 10:29:11 -08:00
parent 4812f6a1dd
commit c3b749b415

View File

@@ -203,6 +203,9 @@ class MacPlatform extends PlatformTarget
if (noOutput) return;
// ensure that the shell script is replaced by the template executable
System.deleteFile(executablePath);
HashlinkHelper.copyHashlink(project, targetDirectory, executableDirectory, executablePath, true);
if (project.targetFlags.exists("hlc"))