Pack script fixes
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
if (Test-Path Env:\APPVEYOR_BUILD_NUMBER) {
|
||||
$build = [convert]::ToInt32($env:APPVEYOR_BUILD_NUMBER).ToString("00000")
|
||||
$build = $env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
|
||||
} else {
|
||||
$build = "dev"
|
||||
}
|
||||
|
||||
dotnet restore Discord.Net.sln
|
||||
appveyor-retry dotnet restore Discord.Net.sln -v Minimal -p:BuildNumber="$build"
|
||||
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
||||
dotnet build Discord.Net.sln -c "Release" -p:BuildNumber="$build"
|
||||
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
||||
Reference in New Issue
Block a user