File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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#
You can’t perform that action at this time.
0 commit comments