mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2025-04-11 12:36:03 -05:00
Compare commits
3 commits
3401d50aa6
...
4da95d0a7d
Author | SHA1 | Date | |
---|---|---|---|
4da95d0a7d | |||
c914b920d7 | |||
454db3c28a |
3 changed files with 7 additions and 5 deletions
|
@ -8,7 +8,7 @@ requires-python = ">=3.6"
|
|||
keywords = ["revanced", "patch"]
|
||||
classifiers = ["Programming Language :: Python :: 3"]
|
||||
dependencies = ["cloudscraper", "requests", "packaging", "bs4"]
|
||||
version = "1.4.0"
|
||||
version = "1.4.1"
|
||||
|
||||
[project.scripts]
|
||||
ReVancedBuilder = "ReVancedBuilder:ReVancedBuilder"
|
||||
|
|
|
@ -15,7 +15,7 @@ import requests as req
|
|||
from packaging.version import Version
|
||||
|
||||
from ReVancedBuilder.APKPure_dl import get_apks
|
||||
from ReVancedBuilder.Cleanup import err_exit, move_apps
|
||||
from ReVancedBuilder.Cleanup import err_exit, move_apps, send_notif
|
||||
from ReVancedBuilder.JAVABuilder import build_apps
|
||||
|
||||
|
||||
|
@ -187,7 +187,7 @@ except FileNotFoundError:
|
|||
appstate["present_vers"] = json.loads("{}")
|
||||
|
||||
appstate["up-to-date"] = True
|
||||
# send_notif(appstate, error=False) # <,,,,,,,,<,,,,,,,,,,,,,
|
||||
|
||||
if flag != "buildonly":
|
||||
appstate = update_tools(appstate)
|
||||
appstate = update_gmscore(appstate)
|
||||
|
@ -202,7 +202,6 @@ if (flag != "checkonly" and not appstate["up-to-date"]) or flag in ["force", "bu
|
|||
if appstate["up-to-date"] and flag != "buildonly":
|
||||
print("There's nothing to do.")
|
||||
elif flag != "checkonly":
|
||||
err_exit("", appstate, 0)
|
||||
try:
|
||||
os.rename("versions.json", "versions-old.json")
|
||||
except FileNotFoundError:
|
||||
|
@ -217,6 +216,9 @@ elif flag != "checkonly":
|
|||
subprocess.run(cmd, shell=True)
|
||||
except Exception as ex:
|
||||
print(f"Got exception while running the build: '{ex}'")
|
||||
err_exit("", appstate, 0)
|
||||
|
||||
send_notif(appstate)
|
||||
|
||||
# Delete the lockfile
|
||||
os.remove("lockfile")
|
||||
|
|
2
uv.lock
2
uv.lock
|
@ -364,7 +364,7 @@ wheels = [
|
|||
|
||||
[[package]]
|
||||
name = "revancedbuilder"
|
||||
version = "1.4.0"
|
||||
version = "1.4.1"
|
||||
source = { virtual = "." }
|
||||
dependencies = [
|
||||
{ name = "bs4" },
|
||||
|
|
Loading…
Reference in a new issue