Commit 38e563de authored by MozLando's avatar MozLando
Browse files

Merge #7353

7353: Allow to work on Windows r=grigoryk a=mhammond
Co-authored-by: default avatarMark Hammond <>
parents ee34a972 5d2314d0
......@@ -5,6 +5,7 @@
# Usage: ./automation/
from pathlib import Path
import sys
import os
import time
import hashlib
......@@ -105,7 +106,10 @@ if contents_hash == last_contents_hash:
print("Contents have not changed, no need to publish")
print("Contents have changed, publishing")
run_cmd_checked(["./gradlew", "publishToMavenLocal", f"-Plocal={time.time_ns()}"])
if sys.platform.startswith("win"):
run_cmd_checked(["gradlew.bat", "publishToMavenLocal", f"-Plocal={time.time_ns()}"], shell=True)
run_cmd_checked(["./gradlew", "publishToMavenLocal", f"-Plocal={time.time_ns()}"])
with open(LAST_CONTENTS_HASH_FILE, "w") as f:
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment