From 05334eb8ee2ffa0dc618372ecc0f31430dda89c5 Mon Sep 17 00:00:00 2001 From: Sara Date: Fri, 24 Nov 2023 16:23:49 +0100 Subject: [PATCH] feat(build): added RMDIR call to postbuildcommands to ensure assets are cleared before being copied --- game/Build-Game.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/Build-Game.lua b/game/Build-Game.lua index 8fb6e6a..c57b335 100644 --- a/game/Build-Game.lua +++ b/game/Build-Game.lua @@ -17,7 +17,8 @@ project "Game" } postbuildcommands { - "{COPYDIR} assets/ %{cfg.targetdir}/assets" + "{RMDIR} %{cfg.targetdir}/assets/", + "{COPYDIR} assets/ %{cfg.targetdir}/assets/" } targetdir ("../bin/" .. OutputDir .. "/%{prj.name}" )