Skip to content

Commit e657dfd

Browse files
authored
nuget python 移除重复的 PuertsCore.dll (Tencent#2253)
1 parent 4ca9975 commit e657dfd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build_nuget.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,14 @@ jobs:
115115
if ("${{ matrix.platform }}" -eq "osx" -and (Test-Path "unity/upms/nodejs/Plugins/macOS")) {
116116
Move-Item -Path "unity/native/papi-nodejs/.backends/papi-nodejs/lib/macOS/libnode.93.dylib" -Destination "unity/upms/nodejs/Plugins/macOS/libnode.93.dylib" -Force
117117
}
118+
# Remove python's PuertsCore.dll on Windows
119+
if ("${{ matrix.platform }}" -eq "win") {
120+
$puertsCorePath = "unity/native/papi-python/build_win_x64_papi-python/Release/PuertsCore.dll"
121+
if (Test-Path $puertsCorePath) {
122+
Remove-Item $puertsCorePath -Force
123+
Write-Host "Removed $puertsCorePath to avoid duplicate PuertsCore.dll."
124+
}
125+
}
118126
shell: pwsh
119127

120128

0 commit comments

Comments
 (0)