You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MRTKVersion: 3.0.0 # used for overall build number, but each package version is read from the package.json file in each package directory.
8
-
MRTKReleaseTag: 'pre.20'# final version component, e.g. 'RC2.1' or empty string.
9
-
ReleasePackages: '"org.mixedrealitytoolkit.audio,org.mixedrealitytoolkit.core,org.mixedrealitytoolkit.diagnostics,org.mixedrealitytoolkit.extendedassets,org.mixedrealitytoolkit.input,org.mixedrealitytoolkit.spatialmanipulation,org.mixedrealitytoolkit.standardassets,org.mixedrealitytoolkit.tools,org.mixedrealitytoolkit.uxcomponents,org.mixedrealitytoolkit.uxcomponents.noncanvas,org.mixedrealitytoolkit.uxcore,org.mixedrealitytoolkit.windowsspeech"'# array of packages that shouldn't get the prerelease tag e.g. '"org.mixedrealitytoolkit.core,org.mixedrealitytoolkit.tools"'
7
+
ProjectVersion: 3.0.0 # used for overall build number of sample projects
Copy file name to clipboardExpand all lines: Pipelines/Scripts/pack-upm.ps1
+8-15Lines changed: 8 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -10,31 +10,24 @@
10
10
The root folder of the project.
11
11
.PARAMETEROutputDirectory
12
12
Where should we place the output? Defaults to ".\artifacts"
13
-
.PARAMETERBuildNumber
14
-
The fourth digit for the full version number for assembly versioning. This is the build number.
15
-
.PARAMETERReleaseLabel
16
-
The tag to append after the version (e.g. "internal" or "prerelease"). Leave blank for a release build.
17
-
.PARAMETERExperimentLabel
18
-
An additional tag to append after the version, to append after the release label (e.g. "pre.1"). Historically used for the MRTK3 packages that are still experimental.
13
+
.PARAMETERPrereleaseTag
14
+
The tag to append after the version (e.g. "build", "internal" or "prerelease"). Leave blank for a release build.
19
15
.PARAMETERRevision
20
16
The revision number for the build, to append after the release labal and suffix.
21
-
.PARAMETERReleasePackages
22
-
An array of the package names that have been released, and no longer in experimentation. If the package isn't in this array, it will get labeled with the ExperimentLabel.
17
+
.PARAMETERBuildNumber
18
+
The fourth digit for the full version number for assembly versioning. This is the build number.
Copy file name to clipboardExpand all lines: Pipelines/Scripts/update-versions.ps1
+74-47Lines changed: 74 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -3,50 +3,40 @@
3
3
4
4
<#
5
5
.SYNOPSIS
6
-
Updates the version of the UPM packages in the project.
6
+
Updates the version of the UPM packages in the project with a release label, revision, and build number.
7
7
.DESCRIPTION
8
-
Updates the version of the UPM packages in the project.
8
+
The script will update the version of the package.json file with the new version label and revision number. This
9
+
script will also update the AssemblyInfo.cs file with the new version number and build number. Finally, this
10
+
script will update the CHANGELOG.md file with the new version number and release date.
9
11
.PARAMETERPackagesRoot
10
12
The root folder containing the packages.
13
+
.PARAMETERPrereleaseTag
14
+
The tag to append after the version (e.g. "build", "internal" or "prerelease"). Leave blank for a release build.
15
+
.PARAMETERRevision
16
+
The revision number for the build, to append after the release labal.
11
17
.PARAMETERBuildNumber
12
18
The fourth digit for the full version number for assembly versioning. This is the build number.
13
-
.PARAMETERReleaseLabel
14
-
The tag to append after the version (e.g. "internal" or "prerelease"). Leave blank for a release build.
15
-
.PARAMETERExperimentLabel
16
-
An additional tag to append after the version, to append after the release label (e.g. "pre.1"). Historically used for the MRTK3 packages that are still experimental.
17
-
.PARAMETERRevision
18
-
The revision number for the build, to append after the release labal and suffix.
19
-
.PARAMETERReleasePackages
20
-
An array of the package names that are no longer If the package isn't in this array, it will get labeled with the ExperimentLabel.
21
19
#>
22
20
param(
23
21
[Parameter(Mandatory=$true)]
24
22
[string]$PackagesRoot,
25
-
[ValidatePattern("\d+")]
26
-
[string]$BuildNumber,
27
23
[ValidatePattern("[A-Za-z]*")]
28
-
[string]$ReleaseLabel="",
29
-
[ValidatePattern("([A-Za-z]+\.\d+)?")]
30
-
[string]$ExperimentLabel="",
24
+
[string]$PrereleaseTag="",
31
25
[ValidatePattern("(\d(\.\d+)*)?")]
32
26
[string]$Revision="",
33
-
[string]$ReleasePackages=""
27
+
[ValidatePattern("\d+")]
28
+
[string]$BuildNumber
34
29
)
35
30
36
-
$releasePkgs=$ReleasePackages.Split(",")
37
31
$PackagesRoot=Resolve-Path-Path $PackagesRoot
38
32
39
33
if (-not [string]::IsNullOrEmpty($BuildNumber)) {
40
34
$BuildNumber=$BuildNumber.Trim('.')
41
35
$BuildNumber=".$BuildNumber"
42
36
}
43
37
44
-
if (-not [string]::IsNullOrEmpty($ReleaseLabel)) {
45
-
$ReleaseLabel=$ReleaseLabel.Trim('.')
46
-
}
47
-
48
-
if (-not [string]::IsNullOrEmpty($ExperimentLabel)) {
49
-
$ExperimentLabel=$ExperimentLabel.Trim('.')
38
+
if (-not [string]::IsNullOrEmpty($PrereleaseTag)) {
39
+
$PrereleaseTag=$PrereleaseTag.Trim('.')
50
40
}
51
41
52
42
if (-not [string]::IsNullOrEmpty($Revision)) {
@@ -58,21 +48,28 @@ Write-Host -ForegroundColor Green "======================================="
58
48
Write-Host-ForegroundColor Green "Updating All Package Versions"
59
49
Write-Host-ForegroundColor Green "======================================="
60
50
Write-Output"Project root: $PackagesRoot"
61
-
Write-Output"Release packages: $releasePkgs"
62
51
63
52
$year="{0:D4}"-f (Get-Date).Year
64
53
$month="{0:D2}"-f (Get-Date).Month
65
54
$day="{0:D2}"-f (Get-Date).Day
66
55
67
56
# loop through package directories, update package version, assembly version, and build version hash for updating dependencies
0 commit comments