Skip to content

Commit a2ed148

Browse files
authored
Merge pull request #9922 from keveleigh/typos-and-authors
Copy the Authors.md file to our UPM packages
2 parents 8c9b854 + 2f79c6f commit a2ed148

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

scripts/packaging/createupmpackages.ps1

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<#
55
.SYNOPSIS
6-
Builds the Mixed Reality Toolkit Unity Package Manager (UPM) packacges.
6+
Builds the Mixed Reality Toolkit Unity Package Manager (UPM) packages.
77
.DESCRIPTION
88
Builds UPM packages for the Mixed Reality Toolkit.
99
.PARAMETER ProjectRoot
@@ -110,19 +110,20 @@ foreach ($entry in $packages.GetEnumerator()) {
110110
$docFolder = "$packagePath/Documentation~"
111111

112112
# Copy files used by UPM to display license, change log, etc.
113-
Copy-Item -Path "$projectRoot/LICENSE.md" "$packagePath"
114-
Copy-Item -Path "$projectRoot/UPM/UnityMetaFiles/LICENSE.md.meta.$packageName" "$packagePath/LICENSE.md.meta"
115-
Copy-Item -Path "$projectRoot/NOTICE.md" "$packagePath"
116-
Copy-Item -Path "$projectRoot/UPM/UnityMetaFiles/NOTICE.md.meta.$packageName" "$packagePath/NOTICE.md.meta"
117-
Copy-Item -Path "$projectRoot/CHANGELOG.md" "$packagePath"
118-
Copy-Item -Path "$projectRoot/UPM/UnityMetaFiles/CHANGELOG.md.meta.$packageName" "$packagePath/CHANGELOG.md.meta"
119-
Copy-Item -Path "$projectRoot/UPM/Documentation~" $docFolder -Recurse
113+
Copy-Item -Path "$ProjectRoot/LICENSE.md" -Destination "$packagePath"
114+
Copy-Item -Path "$ProjectRoot/UPM/UnityMetaFiles/LICENSE.md.meta.$packageName" -Destination "$packagePath/LICENSE.md.meta"
115+
Copy-Item -Path "$ProjectRoot/NOTICE.md" -Destination "$packagePath"
116+
Copy-Item -Path "$ProjectRoot/UPM/UnityMetaFiles/NOTICE.md.meta.$packageName" -Destination "$packagePath/NOTICE.md.meta"
117+
Copy-Item -Path "$ProjectRoot/CHANGELOG.md" -Destination "$packagePath"
118+
Copy-Item -Path "$ProjectRoot/UPM/UnityMetaFiles/CHANGELOG.md.meta.$packageName" -Destination "$packagePath/CHANGELOG.md.meta"
119+
Copy-Item -Path "$ProjectRoot/UPM/Documentation~" -Destination "$docFolder" -Recurse
120+
Copy-Item -Path "$ProjectRoot/Authors.md" -Destination "$docFolder"
120121

121122
$samplesFolder = "$packagePath/Samples~"
122123

123124
if ($packageName -eq "foundation") {
124-
# The foundation package contains files that are requried to be copied into the Assets folder to be used.
125-
# In order to perform the necessary preparaton, without overly complicating this script, we will use a
125+
# The foundation package contains files that are required to be copied into the Assets folder to be used.
126+
# In order to perform the necessary preparation, without overly complicating this script, we will use a
126127
# helper script to prepare the folder.
127128
Start-Process -FilePath "$PSHOME/powershell.exe" -ArgumentList "$scriptPath/foundationpreupm.ps1 -PackageRoot $packagePath" -NoNewWindow -Wait
128129
}
@@ -135,7 +136,7 @@ foreach ($entry in $packages.GetEnumerator()) {
135136
}
136137
elseif ($packageName -eq "examples") {
137138
# The examples folder is a collection of sample projects. In order to perform the necessary
138-
# preparaton, without overly complicating this script, we will use a helper script to prepare
139+
# preparation, without overly complicating this script, we will use a helper script to prepare
139140
# the folder.
140141
Start-Process -FilePath "$PSHOME/powershell.exe" -ArgumentList "$scriptPath/examplesfolderpreupm.ps1 -PackageRoot $packagePath" -NoNewWindow -Wait
141142
}

0 commit comments

Comments
 (0)