- AuroraStore: bundle the privileged preload variant with privapp + default-permissions; pull from AuroraOSS GitLab in vendorsetup.sh - microG sig-spoofing: keep FAKE_PACKAGE_SIGNATURE signature|privileged (system-level, non-requestable); drop the dead dangerous-model default-permissions grant; make GsfProxy privileged - updater: rewrite for correct sources (GitHub microG / GitLab Aurora / F-Droid), fix apps/ module paths, handle .microg_release and Aurora's .version_tag, add requirements.txt (replaces Pipfile) - README: rewrite for the trimmed PawletOS fork
29 lines
814 B
Python
29 lines
814 B
Python
import subprocess
|
|
|
|
user_name = "Updater Robot"
|
|
user_email = "robot@nowhere.invalid"
|
|
|
|
|
|
def add_commit_push(directory: str, message: str):
|
|
diff = subprocess.run(
|
|
["git", "diff", "--cached", "--exit-code"], capture_output=True, text=True
|
|
)
|
|
if diff.returncode != 0:
|
|
status = subprocess.run(["git", "status"], capture_output=True, text=True)
|
|
raise Exception("Unknown staged changes found: {}".format(status.stdout))
|
|
|
|
subprocess.run(["git", "add", "--all", directory], check=True)
|
|
subprocess.run(
|
|
[
|
|
"git",
|
|
"-c",
|
|
"user.name={}".format(user_name),
|
|
"-c",
|
|
"user.email={}".format(user_email),
|
|
"commit",
|
|
"--message",
|
|
message,
|
|
]
|
|
)
|
|
subprocess.run(["git", "push"])
|