Make our build-image.py script runable on Windows

This commit is contained in:
Alex Pyrgiotis 2025-04-03 20:18:32 +03:00
parent 8c61894e25
commit 0c741359cc
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -5,7 +5,7 @@ import subprocess
import sys import sys
from pathlib import Path from pathlib import Path
BUILD_CONTEXT = "dangerzone/" BUILD_CONTEXT = "dangerzone"
IMAGE_NAME = "dangerzone.rocks/dangerzone" IMAGE_NAME = "dangerzone.rocks/dangerzone"
if platform.system() in ["Darwin", "Windows"]: if platform.system() in ["Darwin", "Windows"]:
CONTAINER_RUNTIME = "docker" CONTAINER_RUNTIME = "docker"
@ -122,7 +122,8 @@ def main():
subprocess.run( subprocess.run(
[ [
"./dev_scripts/repro-build.py", sys.executable,
str(Path("dev_scripts") / "repro-build.py"),
"build", "build",
"--runtime", "--runtime",
args.runtime, args.runtime,