feat: add self-contained Windows build and Intune deployment scripts docs: document configuration, permissions, and deployment ci: build x64 and arm64 agent artifacts
14 lines
543 B
PowerShell
14 lines
543 B
PowerShell
param(
|
|
[ValidateSet('win-x64', 'win-arm64')][string]$Runtime = 'win-x64',
|
|
[string]$Configuration = 'Release'
|
|
)
|
|
$ErrorActionPreference = 'Stop'
|
|
$projectRoot = Split-Path $PSScriptRoot -Parent
|
|
$output = Join-Path $projectRoot "dist\$Runtime"
|
|
dotnet publish (Join-Path $projectRoot 'NetBoxAgent.csproj') `
|
|
-c $Configuration -r $Runtime --self-contained true `
|
|
-p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true `
|
|
-p:DebugType=None -p:DebugSymbols=false -o $output
|
|
Write-Host "Erstellt: $output\agent.exe"
|
|
|