1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-07 20:39:59 +02:00

Refactor build process to use a new directory structure and remove deprecated files

This commit is contained in:
mr. M 2025-03-29 15:42:33 +01:00
parent 6f5671e41f
commit c60c9fbd30
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
8 changed files with 12 additions and 12 deletions

View file

@ -62,13 +62,13 @@ def update_l10n_last_commit_hash():
try:
os.system(f"git clone {L10N_REPO} l10n-temp --depth 1")
if not os.path.exists("firefox-cache"):
os.mkdir("firefox-cache")
os.system("cat l10n-temp/.git/refs/heads/main > firefox-cache/l10n-last-commit-hash")
os.mkdir("build/firefox-cache")
os.system("cat l10n-temp/.git/refs/heads/main > build/firefox-cache/l10n-last-commit-hash")
# Remove new line character
data = ""
with open("firefox-cache/l10n-last-commit-hash", "r") as f:
with open("build/firefox-cache/l10n-last-commit-hash", "r") as f:
data = f.read()
with open("firefox-cache/l10n-last-commit-hash", "w") as f:
with open("build/firefox-cache/l10n-last-commit-hash", "w") as f:
f.write(data.strip())
except KeyboardInterrupt:
print("Exiting...")