Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathbuild.ps1
More file actions
Latest commit
24 lines (19 loc) · 994 Bytes
/
Copy pathbuild.ps1
File metadata and controls
24 lines (19 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
param([int]$Revision=0, [string]$Suffix='')
Import-Module'PowerShellGet'-Force
$ErrorActionPreference='Stop'
$manifest=Test-ModuleManifest .\UnitySetup\UnitySetup.psd1
$versionString=$manifest.Version.ToString()
if ($manifest.PrivateData['PSData']['Prerelease']) {
$versionString+="-$($manifest.PrivateData['PSData']['Prerelease'])"
}
Write-Host"Current Module Version: $versionString"
$newVersion=New-Object System.Version($manifest.Version.Major,$manifest.Version.Minor,$Revision)
Update-ModuleManifest-ModuleVersion $newVersion-Prerelease $Suffix-Path .\UnitySetup\UnitySetup.psd1
$manifest=Test-ModuleManifest .\UnitySetup\UnitySetup.psd1
$versionString=$manifest.Version.ToString()
if ($manifest.PrivateData['PSData']['Prerelease']) {
$versionString+="-$($manifest.PrivateData['PSData']['Prerelease'])"
}
Write-Host"New Module Version: $versionString"