From b677e73a7c3ac45576367decea0bb159eaf89c60 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Thu, 10 Aug 2023 14:52:58 -0500 Subject: [PATCH] feat: Run post_script --- ReVancedBuilder.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ReVancedBuilder.py b/ReVancedBuilder.py index e4d5e96..33c9b47 100755 --- a/ReVancedBuilder.py +++ b/ReVancedBuilder.py @@ -12,11 +12,12 @@ from datetime import datetime from Notifications import send_notif from Cleanup import * import logging +import subprocess # TODO: Run post_script (preferably in any language) # TODO: README # TODO: PATCHES_GUIDE.md (maybe delete it?) -# TODO: Make it PIP installable +# TODO: Lockfile # Update the ReVanced tools, if needed def update_tools(appstate): @@ -168,3 +169,7 @@ elif flag != ['checkonly']: if flag != 'buildonly': with open('versions.json', 'w') as f: json.dump(appstate['present_vers'], f, indent=4) + try: + subprocess.run(f"{appstate['build_config']['post_script']['file']} {timestamp}", shell=True) + except: + pass