launch tests: macOS fixes (platform names, python 3.9 tar, no setsid/timeout/cp -l), feed platform macos-arm64, p2006 engine path

This commit is contained in:
Niko1221 committed 2026-10-17 04:01:23 +02:00
1 parent c1533d6d5f
commit 87efc9ace5
2 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ command -v tar >/dev/null 2>&1 || die "tar is not installed; install it and run
os=$(uname -s); arch=$(uname -m)
case "$os-$arch" in
Linux-x86_64|Linux-amd64) platform=linux-x86_64 ;;
Darwin-arm64|Darwin-aarch64) platform=darwin-arm64 ;;
Darwin-arm64|Darwin-aarch64) platform=macos-arm64 ;;
*) die "this computer ($os $arch) has no Strata Terminal yet. Supported: Linux x86_64, macOS on Apple silicon (Windows: use install.ps1)." ;;
esac
gpu=""
+5 -2
View File
@@ -43,7 +43,10 @@ def extract_terminal(archive: Path, into: Path) -> Path:
zf.extractall(into)
else:
with tarfile.open(archive) as tf:
tf.extractall(into, filter="data")
try:
tf.extractall(into, filter="data")
except TypeError: # Python before 3.12 (a Mac's system 3.9): no extraction filters; the archive is our own
tf.extractall(into)
(inner,) = [p for p in into.iterdir() if p.is_dir()]
return inner
@@ -79,7 +82,7 @@ def main(argv=None) -> int:
v = version or (folder / "VERSION").read_text(encoding="utf-8").strip()
version = v
platform = ("windows-x86_64" if (folder / "python" / "python.exe").exists() else
"darwin-arm64" if "darwin" in term.name else "linux-x86_64")
"macos-arm64" if ("darwin" in term.name or "macos" in term.name) else "linux-x86_64") # the feed's own platform names
fmt = "zip" if platform.startswith("windows") else "tar.gz"
entry = ft.pack_control(folder, out / "control", version=v, platform=platform, fmt=fmt)
manifest_lines.append(f"{platform} {v} {entry['url']} {entry['sha256']} {entry['size']}")