Harden SD storage detection and add TAP uploader

This commit is contained in:
Emporex committed 2026-10-25 14:52:30 +01:00
1 parent 0ec027e31d
commit 6561da3903
5 files changed
+446 -10

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
$ErrorActionPreference = 'Stop'
$projectRoot = Split-Path $PSScriptRoot -Parent
$releaseDir = Join-Path $projectRoot 'release'
$compiler = Join-Path $env:WINDIR 'Microsoft.NET\Framework64\v4.0.30319\csc.exe'
if (-not (Test-Path -LiteralPath $compiler)) {
throw 'Der C#-Compiler fuer .NET Framework 4.x wurde nicht gefunden.'
}
New-Item -ItemType Directory -Path $releaseDir -Force | Out-Null
$source = Join-Path $PSScriptRoot 'TapUploader.cs'
$output = Join-Path $releaseDir 'TAP-Uploader.exe'
& $compiler /nologo /target:winexe /optimize+ /out:$output /reference:System.Windows.Forms.dll /reference:System.Drawing.dll $source
if ($LASTEXITCODE -ne 0) { throw 'Der EXE-Build ist fehlgeschlagen.' }
Write-Output "Erstellt: $output"