From 29d2f4f6811cfe47348cbea8a2d76f67a4bcbc48 Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Tue, 31 Jul 2018 03:01:15 +0200 Subject: [PATCH] Why the fuck is Copy-Item file exclusion not working --- Resources/PostBuild.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Resources/PostBuild.ps1 b/Resources/PostBuild.ps1 index bba51d12..ca109295 100644 --- a/Resources/PostBuild.ps1 +++ b/Resources/PostBuild.ps1 @@ -34,7 +34,9 @@ try{ New-Item -ItemType directory -Path $targetDir -Name "plugins\user" | Out-Null Copy-Item (Join-Path $projectDir "Resources\Scripts\*") -Recurse -Destination (Join-Path $targetDir "scripts") - Copy-Item (Join-Path $projectDir "Resources\Plugins\*") -Recurse -Destination (Join-Path $targetDir "plugins\official") -Exclude ".debug", "emoji-instructions.txt" + Copy-Item (Join-Path $projectDir "Resources\Plugins\*") -Recurse -Destination (Join-Path $targetDir "plugins\official") -Exclude ".debug" + + Remove-Item (Join-Path $targetDir "plugins\official\emoji-keyboard\emoji-instructions.txt") if ($configuration -eq "Debug"){ New-Item -ItemType directory -Path $targetDir -Name "plugins\user\.debug" | Out-Null