mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-07 14:55:30 +02:00
Refactor build process to use a new directory structure and remove deprecated files
This commit is contained in:
parent
6f5671e41f
commit
c60c9fbd30
8 changed files with 12 additions and 12 deletions
|
@ -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...")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue