Skip to content

Commit

Permalink
MacPlatform: fix duplicate shell scripts when building without -clean…
Browse files Browse the repository at this point in the history
… and copyIfNewer decides the HL executable isn't newer
  • Loading branch information
joshtynjala committed Dec 2, 2024
1 parent 4812f6a commit c3b749b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/platforms/MacPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit c3b749b

Please sign in to comment.