Skip to content

Commit ea1472d

Browse files
author
davidkline-ms
committed
modify the package manifest to remove arfoundation / xr management during packaging
1 parent 0b38eda commit ea1472d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

scripts/packaging/unitypackage.ps1

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,24 @@ function GetPackageVersion() {
105105
Select-Object -First 1
106106
}
107107

108+
function CleanPackageManifest() {
109+
<#
110+
.SYNOPSIS
111+
Ensures that the package manifest does not contain packages that trigger adding dependencies on
112+
optional features by default.
113+
#>
114+
115+
$fileName = $RepoDirectory + "\Packages\manifest.json"
116+
(Get-Content $fileName) | ForEach-Object {
117+
if ($_ -notmatch ("arfoundation|arsubsystems|xr.management|legacyinputhelpers")) {
118+
$line = $_
119+
}
120+
else {
121+
$line = ""
122+
}
123+
$line } | Set-Content $fileName
124+
}
125+
108126
# Beginning of the .unitypackage script main section
109127
# The overall structure of this script looks like:
110128
#

0 commit comments

Comments
 (0)