mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-25 20:28:37 -06:00
feat: Run post_script
This commit is contained in:
parent
c56a97c733
commit
b677e73a7c
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue