Skip to content

Commit a545ea5

Browse files
committed
Fix build script
1 parent ce766ea commit a545ea5

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

build.ps1

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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"
1213
dotnet restore "$PSScriptRoot\Source\NETworkManager.sln"
1314
dotnet 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?
1920
if($IsPreview)
@@ -27,4 +28,8 @@ Compress-Archive -Path "$BuildPath\NETworkManager" -DestinationPath "$BuildPath\
2728
# Portable Build
2829
New-Item -Path "$BuildPath\NETworkManager" -Name "IsPortable.settings" -ItemType File
2930
Compress-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 "

0 commit comments

Comments
 (0)