Skip to content

Replace .NET RuntimeInformation platform detection in build.ps1 #221

Description

@python-processing-unit

Problem

build.ps1:80-86,90 uses [System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform(...) for platform detection. PowerShell ships $IsWindows, $IsLinux, $IsMacOS natively.

Fix

Replace the .NET reflection with $IsWindows / $IsLinux / $IsMacOS or $env:OS.

Reported by Kilo Code (automated audit tool), not a human reviewer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    patchRequires a patch version change.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions