mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-07 05:43:21 +00:00
Merge pull request #7036 from zen-browser/build-cache-improvement
Build cache improvement
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user