feat: add Windows hardware inventory collector and NetBox sync
feat: add self-contained Windows build and Intune deployment scripts docs: document configuration, permissions, and deployment ci: build x64 and arm64 agent artifacts
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user