From c553a53f25ddc72ebbc6df13bc61bfd49980044c Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 22 Jun 2026 08:41:11 +0800 Subject: fix(build): copy plugin skeleton files during build --- binding/unreal/build-plugin.ps1 | 13 +++++++++++-- 1 file 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 -- cgit