Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Commit b305347

Browse files
authored
Remove .meta files if PDB not packaged (#595)
Remove from the Unity UPM package the .meta files related to PDB files if those PDB files are not packaged, to avoid warnings in Unity. Bug: #592
1 parent b8a2a7b commit b305347

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tools/ci/templates/jobs-unity-package.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ jobs:
107107
Write-Host $file
108108
Remove-Item -Path $file -Force
109109
}
110+
Write-Host "Removing PDB .meta files from Unity package Plugins/ folder..."
111+
Get-ChildItem -Recurse '$(Build.SourcesDirectory)/libs/unity/library/Runtime/Plugins/*.pdb.meta' | ForEach-Object {
112+
$file = $_
113+
Write-Host $file
114+
Remove-Item -Path $file -Force
115+
}
110116
displayName: 'Delete PDBs'
111117
112118
# For debugging, list the packages content before signing

0 commit comments

Comments
 (0)