Fix assets being cleared when running lime run

This commit is contained in:
AbnormalPoof
2025-10-19 19:34:07 -04:00
committed by Hundrec
parent 30361954f3
commit 80993df87f
+7 -2
View File
@@ -1470,8 +1470,8 @@ class Project extends HXProject
function clearAssets():Void
{
// We don't want the haxe compilation server deleting our assets, do we?
if (isDisplay()) return;
// Don't run on non-build commands.
if (!isBuild()) return;
var exportPath:Null<String> = app.path ?? "";
@@ -1739,6 +1739,11 @@ class Project extends HXProject
return this.command == "clean";
}
public function isBuild():Bool
{
return this.command == "test" || this.command == "build";
}
public function isDebug():Bool
{
return this.debug;