aboutsummaryrefslogtreecommitdiff
path: root/binding/unreal
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-22 08:41:11 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-22 08:41:11 +0800
commitc553a53f25ddc72ebbc6df13bc61bfd49980044c (patch)
tree3f4cbcaa048d4d9150809b70d2374baa6183f6ab /binding/unreal
parent5e16ca4f41b2ae0b1e0d57be340cbf28286fe1f7 (diff)
fix(build): copy plugin skeleton files during build
Diffstat (limited to 'binding/unreal')
-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