fix: disable BAPS beta mode

This commit is contained in:
Ashhhleyyy 2024-04-01 01:34:47 +01:00
parent 26ba37b3eb
commit 11c2b23c16
Signed by: ash
GPG key ID: 83B789081A0878FB
2 changed files with 22 additions and 0 deletions

View file

@ -72,6 +72,7 @@
ui_static = "${ui-static}"; ui_static = "${ui-static}";
ui_templates = "${ui-templates}"; ui_templates = "${ui-templates}";
}) })
./patches/2-not-beta.patch
]; ];
}; };

21
patches/2-not-beta.patch Normal file
View file

@ -0,0 +1,21 @@
diff --git a/package.py b/package.py
index 1689140..bacf68f 100644
--- a/package.py
+++ b/package.py
@@ -12,15 +12,7 @@ with open(resolve_local_file_path("package.json")) as file:
build_commit = "Dev"
build_branch = "Local"
- build_beta = True
- try:
- import build
-
- build_commit = build.BUILD
- build_branch = build.BRANCH
- build_beta = build_branch != "release"
- except (ModuleNotFoundError, AttributeError):
- pass
+ build_beta = False
BUILD: str = build_commit
BRANCH: str = build_branch
BETA: bool = build_beta