INNER CODE UNIT · Python

host_rid

IvanMurzak/Unity-MCP · .github/scripts/chain_feed.py:561

def host_rid():
    """`win-x64` / `linux-x64` / `osx-arm64` — the RID this runner publishes for."""
    system = platform.system()
    if system == "Windows":
        return "win-x64"
    if system == "Darwin":
        return "osx-arm64" if platform.machine().lower() in ("arm64", "aarch64") else "osx-x64"
    return "linux-x64"


#: The characters cmd.exe treats as syntax even inside a double-quoted argument (`%`/`!`
#: expansion, `^` escape, `"` quote toggling) or outside one (`&`, `|`, `<`, `>`).
_CMD_METACHARS = '&|<>^%!"'


def shell_value(name, value, windows=None):
    """One placeholder value made safe to paste into a `shell=True` recipe.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…