feat: proper windows support

This commit is contained in:
eric
2026-03-15 11:04:44 +01:00
parent 4f8e27cd74
commit 626a6640f8
70 changed files with 3410 additions and 1689 deletions

View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
python3 - "$@" <<'PY'
import pathlib
import sys
windows = sys.platform.startswith("win")
for launcher in sys.argv[1:]:
suffix = pathlib.Path(launcher).suffix.lower()
if windows:
if suffix != ".cmd":
raise SystemExit(f"expected .cmd launcher on Windows: {launcher}")
elif suffix == ".sh":
raise SystemExit(f"unexpected .sh launcher executable: {launcher}")
PY