forked from OkraFramework/Okra.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.ps1
37 lines (28 loc) · 910 Bytes
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[CmdletBinding()]
Param
(
[Parameter(Mandatory=$False, Position=1)][Version]$VersionNumber,
[Parameter(Mandatory=$False, Position=2)][string]$PrereleaseVersion
)
# Move to the project root folder (current script folder)
function Get-ScriptDirectory
{
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
Split-Path $Invocation.MyCommand.Path
}
$rootFolder = (Get-Item (Get-ScriptDirectory)).FullName
Set-Location $rootFolder
# Run build steps
write-host "--- Cleaning solution ---"
.\scripts\Clean.ps1
If ($VersionNumber -ne $null)
{
write-host "--- Patching version numbers ---"
.\scripts\PatchVersion.ps1 $VersionNumber $PrereleaseVersion
}
write-host "--- Building release binaries ---"
.\scripts\BuildRelease.ps1
write-host "--- Creating NuGet packages ---"
.\scripts\CreatePackages.ps1
write-host "--- Creating Visual Studio extensions ---"
.\scripts\CreateVsix.ps1