File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- $Version = " 2020.9 .0"
1+ $Version = " 2020.12 .0"
22$IsPreview = $true
33
44$BuildPath = " $PSScriptRoot \Build"
@@ -8,12 +8,13 @@ if(Test-Path -Path $BuildPath)
88 Remove-Item $BuildPath - Recurse
99}
1010
11- # Dotnet restore and build
11+ # Dotnet clean, restore and build
12+ dotnet clean " $PSScriptRoot \Source\NETworkManager.sln"
1213dotnet restore " $PSScriptRoot \Source\NETworkManager.sln"
1314dotnet build -- configuration Release " $PSScriptRoot \Source\NETworkManager.sln"
1415
1516# Copy files
16- Copy-Item - Recurse - Path " $PSScriptRoot \Source\NETworkManager\bin\Release\net5.0-windows " - Destination " $BuildPath \NETworkManager"
17+ Copy-Item - Recurse - Path " $PSScriptRoot \Source\NETworkManager\bin\Release\net5.0-windows10.0.17763.0 " - Destination " $BuildPath \NETworkManager"
1718
1819# Is preview?
1920if ($IsPreview )
@@ -27,4 +28,8 @@ Compress-Archive -Path "$BuildPath\NETworkManager" -DestinationPath "$BuildPath\
2728# Portable Build
2829New-Item - Path " $BuildPath \NETworkManager" - Name " IsPortable.settings" - ItemType File
2930Compress-Archive - Path " $BuildPath \NETworkManager" - DestinationPath " $BuildPath \NETworkManager_$ ( $Version ) _Portable.zip"
30- Remove-Item - Path " $BuildPath \NETworkManager\IsPortable.settings"
31+ Remove-Item - Path " $BuildPath \NETworkManager\IsPortable.settings"
32+
33+ # Installer Build...
34+
35+ Write-Host " Your build is here: $BuildPath "
You can’t perform that action at this time.
0 commit comments