aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binding/unreal/build-plugin.ps113
1 files changed, 11 insertions, 2 deletions
diff --git a/binding/unreal/build-plugin.ps1 b/binding/unreal/build-plugin.ps1
index c52c8bc..7b5c39d 100644
--- a/binding/unreal/build-plugin.ps1
+++ b/binding/unreal/build-plugin.ps1
@@ -56,8 +56,17 @@ if ($Full -or -not (Test-Path $Output)) {
-Plugin="$Plugin" `
-TargetType=Editor
- # Copy built DLL to output dir
- $DllSrc = "$HostDir\Binaries"
+ # Ensure output has the base plugin files (.uplugin, Config, etc.)
+ if (-not (Test-Path (Join-Path $Output "DMVOPBridge.uplugin"))) {
+ Write-Host " Copying plugin skeleton..." -ForegroundColor DarkYellow
+ Copy-Item (Join-Path $PluginDir "*.uplugin") $Output -Force
+ if (Test-Path (Join-Path $PluginDir "Config")) {
+ Copy-Item (Join-Path $PluginDir "Config") $Output -Recurse -Force
+ }
+ }
+
+ # Copy compiled binaries
+ $DllSrc = "$PluginDir\Binaries"
$DllDst = "$Output\Binaries"
if (Test-Path $DllSrc) {
Copy-Item $DllSrc $DllDst -Recurse -Force