Merge pull request #7036 from zen-browser/build-cache-improvement

Build cache improvement
This commit is contained in:
mr. m
2025-03-29 21:25:00 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ git config --global fetch.prune true
cd $CURRENT_DIR
LAST_FIREFOX_L10N_COMMIT=$(cat ./firefox-cache/l10n-last-commit-hash)
LAST_FIREFOX_L10N_COMMIT=$(cat ./build/firefox-cache/l10n-last-commit-hash)
cd ./l10n
rm -rf firefox-l10n

View File

@@ -61,7 +61,7 @@ def update_l10n_last_commit_hash():
L10N_REPO = "https://github.com/mozilla-l10n/firefox-l10n"
try:
os.system(f"git clone {L10N_REPO} l10n-temp --depth 1")
if not os.path.exists("firefox-cache"):
if not os.path.exists("build/firefox-cache"):
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