Files
IronFox/scripts/config.py

30 lines
1.1 KiB
Python
Executable File

#!/usr/bin/env python
import os
from pathlib import Path
GITHUB_REF_URL = "https://github.com/{}/archive/{}.zip"
GITHUB_REF_DOWNLOADS = {
# When changing names below, also change in class GeckoPaths
# (name, repository, ref)
("gecko", "mozilla/gecko-dev", "060aab7e8df0a8c92693ee77cf5a7ad8408ab083"),
("glean", "mozilla/glean", "refs/tags/v61.2.0"),
("appservices", "mozilla/application-services" , "refs/tags/v133.0"),
("gmscore", "microg/GmsCore", "refs/tags/v0.3.6.244735"),
}
class GeckoPaths:
def __init__(self):
self.rootdir = Path(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
self.builddir = self.rootdir / "build"
self.patchdir = self.rootdir / "patches"
self.geckodir = self.rootdir / "gecko"
self.gleandir = self.rootdir / "glean"
self.appservicesdir = self.rootdir / "appservices"
self.gmscoredir = self.rootdir / "gmscore"
self.android_components = self.geckodir / "mobile/android/android-components"
self.fenix = self.geckodir / "mobile/android/fenix"