mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2025-04-20 00:20:00 -05:00
Compare commits
No commits in common. "main" and "1.4.0" have entirely different histories.
4 changed files with 9 additions and 11 deletions
|
@ -6,11 +6,11 @@ It uses [Gotify](https://gotify.net), [ntfy.sh](https://ntfy.sh) or
|
||||||
Make sure that `Java >=17` is installed and selected as default.
|
Make sure that `Java >=17` is installed and selected as default.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
Recommended way is to use [`uv`](https://github.com/astral-sh/uv) to install the program.
|
Recommended way is to use [`pipx`](https://github.com/pypa/pipx) to install the program.
|
||||||
```
|
```
|
||||||
uv tool install git+https://github.com/SinTan1729/ReVancedBuilder
|
pipx install git+https://github.com/SinTan1729/ReVancedBuilder
|
||||||
```
|
```
|
||||||
And then you can update/reinstall the program using `uv tool update ReVancedBuilder`.
|
And then you can update/reinstall the program using `pipx reinstall ReVancedBuilder`.
|
||||||
## How to use
|
## How to use
|
||||||
Just run `ReVancedBuilder <working-directory> (force/experimental/checkonly/buildonly)`.
|
Just run `ReVancedBuilder <working-directory> (force/experimental/checkonly/buildonly)`.
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ It might be a good idea to set it up to run periodically. There are a few ways o
|
||||||
```
|
```
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
- If you installed it using `uv`, you can figure out the full location of the
|
- If you installed it using `pipx`, you can figure out the full location of the
|
||||||
program by running `which ReVancedBuilder`.
|
program by running `which ReVancedBuilder`.
|
||||||
- This app needs some config files to run. Download all the config files inside
|
- This app needs some config files to run. Download all the config files inside
|
||||||
`example_configs` directory, namely `build_config`, `chosen_patches`
|
`example_configs` directory, namely `build_config`, `chosen_patches`
|
||||||
|
|
|
@ -8,7 +8,7 @@ requires-python = ">=3.6"
|
||||||
keywords = ["revanced", "patch"]
|
keywords = ["revanced", "patch"]
|
||||||
classifiers = ["Programming Language :: Python :: 3"]
|
classifiers = ["Programming Language :: Python :: 3"]
|
||||||
dependencies = ["cloudscraper", "requests", "packaging", "bs4"]
|
dependencies = ["cloudscraper", "requests", "packaging", "bs4"]
|
||||||
version = "1.4.1"
|
version = "1.4.0"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
ReVancedBuilder = "ReVancedBuilder:ReVancedBuilder"
|
ReVancedBuilder = "ReVancedBuilder:ReVancedBuilder"
|
||||||
|
|
|
@ -15,7 +15,7 @@ import requests as req
|
||||||
from packaging.version import Version
|
from packaging.version import Version
|
||||||
|
|
||||||
from ReVancedBuilder.APKPure_dl import get_apks
|
from ReVancedBuilder.APKPure_dl import get_apks
|
||||||
from ReVancedBuilder.Cleanup import err_exit, move_apps, send_notif
|
from ReVancedBuilder.Cleanup import err_exit, move_apps
|
||||||
from ReVancedBuilder.JAVABuilder import build_apps
|
from ReVancedBuilder.JAVABuilder import build_apps
|
||||||
|
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ except FileNotFoundError:
|
||||||
appstate["present_vers"] = json.loads("{}")
|
appstate["present_vers"] = json.loads("{}")
|
||||||
|
|
||||||
appstate["up-to-date"] = True
|
appstate["up-to-date"] = True
|
||||||
|
# send_notif(appstate, error=False) # <,,,,,,,,<,,,,,,,,,,,,,
|
||||||
if flag != "buildonly":
|
if flag != "buildonly":
|
||||||
appstate = update_tools(appstate)
|
appstate = update_tools(appstate)
|
||||||
appstate = update_gmscore(appstate)
|
appstate = update_gmscore(appstate)
|
||||||
|
@ -202,6 +202,7 @@ if (flag != "checkonly" and not appstate["up-to-date"]) or flag in ["force", "bu
|
||||||
if appstate["up-to-date"] and flag != "buildonly":
|
if appstate["up-to-date"] and flag != "buildonly":
|
||||||
print("There's nothing to do.")
|
print("There's nothing to do.")
|
||||||
elif flag != "checkonly":
|
elif flag != "checkonly":
|
||||||
|
err_exit("", appstate, 0)
|
||||||
try:
|
try:
|
||||||
os.rename("versions.json", "versions-old.json")
|
os.rename("versions.json", "versions-old.json")
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
@ -216,9 +217,6 @@ elif flag != "checkonly":
|
||||||
subprocess.run(cmd, shell=True)
|
subprocess.run(cmd, shell=True)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
print(f"Got exception while running the build: '{ex}'")
|
print(f"Got exception while running the build: '{ex}'")
|
||||||
err_exit("", appstate, 0)
|
|
||||||
|
|
||||||
send_notif(appstate)
|
|
||||||
|
|
||||||
# Delete the lockfile
|
# Delete the lockfile
|
||||||
os.remove("lockfile")
|
os.remove("lockfile")
|
||||||
|
|
2
uv.lock
2
uv.lock
|
@ -364,7 +364,7 @@ wheels = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revancedbuilder"
|
name = "revancedbuilder"
|
||||||
version = "1.4.1"
|
version = "1.4.0"
|
||||||
source = { virtual = "." }
|
source = { virtual = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "bs4" },
|
{ name = "bs4" },
|
||||||
|
|
Loading…
Reference in a new issue