Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
$Version = "2021.1.0"
$IsPreview = $false

$BuildPath = "$PSScriptRoot\Build"
Expand All @@ -21,6 +20,9 @@ if(-not(Test-Path -Path "$BuildPath\NETworkManager\NETworkManager.exe"))
Write-Error "Could not find dotnet release build. Is .NET SDK 5.0 or later installed?" -ErrorAction Stop
}

# Get NETworkManager File Version
$Version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("$BuildPath\NETworkManager\NETworkManager.exe").FileVersion

# Cleanup WebView2Loader.dll (https://github.com/MicrosoftEdge/WebView2Feedback/issues/461)
Remove-Item "$BuildPath\NETworkManager\arm64" -Recurse
Remove-Item "$BuildPath\NETworkManager\x64" -Recurse
Expand Down Expand Up @@ -54,4 +56,4 @@ else {

Get-ChildItem -Path $BuildPath | Where-Object {$_.Name.EndsWith(".zip") -or $_.Name.EndsWith(".exe")} | Get-FileHash

Write-Host "Build finished! All files are here: $BuildPath" -ForegroundColor Green
Write-Host "Build finished! All files are here: $BuildPath" -ForegroundColor Green