Skip to content

Commit 80993df

Browse files
AbnormalPoofHundrec
authored andcommitted
Fix assets being cleared when running lime run
1 parent 3036195 commit 80993df

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

project.hxp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,8 +1470,8 @@ class Project extends HXProject
14701470

14711471
function clearAssets():Void
14721472
{
1473-
// We don't want the haxe compilation server deleting our assets, do we?
1474-
if (isDisplay()) return;
1473+
// Don't run on non-build commands.
1474+
if (!isBuild()) return;
14751475

14761476
var exportPath:Null<String> = app.path ?? "";
14771477

@@ -1739,6 +1739,11 @@ class Project extends HXProject
17391739
return this.command == "clean";
17401740
}
17411741

1742+
public function isBuild():Bool
1743+
{
1744+
return this.command == "test" || this.command == "build";
1745+
}
1746+
17421747
public function isDebug():Bool
17431748
{
17441749
return this.debug;

0 commit comments

Comments
 (0)