mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
Add files via upload
This commit is contained in:
40
build.ps1
Normal file
40
build.ps1
Normal file
@@ -0,0 +1,40 @@
|
||||
param (
|
||||
[Parameter()]
|
||||
[ValidateSet('Debug', 'Release')]
|
||||
[string]
|
||||
$Configuration = 'Release',
|
||||
|
||||
[Parameter()]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$OutputPath = 'release',
|
||||
|
||||
[Parameter()]
|
||||
[bool]
|
||||
$SelfContained = $False,
|
||||
|
||||
[Parameter()]
|
||||
[bool]
|
||||
$PublishReadyToRun = $False,
|
||||
|
||||
[Parameter()]
|
||||
[bool]
|
||||
$PublishSingleFile = $True
|
||||
)
|
||||
|
||||
.\scripts\download.ps1 $OutputPath
|
||||
if ( -Not $? ) { exit 1 }
|
||||
|
||||
Write-Host "Building $Configuration to $OutputPath"
|
||||
dotnet publish `
|
||||
-c $Configuration `
|
||||
-r "win-x64" `
|
||||
-p:Platform="x64" `
|
||||
-p:PublishSingleFile=$PublishSingleFile `
|
||||
-p:SelfContained=$SelfContained `
|
||||
-p:PublishTrimmed=$SelfContained `
|
||||
-p:PublishReadyToRun=$PublishReadyToRun `
|
||||
-o $OutputPath `
|
||||
Netch\Netch.csproj
|
||||
|
||||
exit $lastExitCode
|
||||
Reference in New Issue
Block a user