Skip to content

Commit d63bab2

Browse files
committed
fix: disable BAPS beta mode
1 parent 475e1d0 commit d63bab2

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
ui_static = "${ui-static}";
7373
ui_templates = "${ui-templates}";
7474
})
75+
./patches/2-not-beta.patch
7576
];
7677
};
7778

patches/2-not-beta.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/package.py b/package.py
2+
index 1689140..bacf68f 100644
3+
--- a/package.py
4+
+++ b/package.py
5+
@@ -12,15 +12,7 @@ with open(resolve_local_file_path("package.json")) as file:
6+
7+
build_commit = "Dev"
8+
build_branch = "Local"
9+
- build_beta = True
10+
- try:
11+
- import build
12+
-
13+
- build_commit = build.BUILD
14+
- build_branch = build.BRANCH
15+
- build_beta = build_branch != "release"
16+
- except (ModuleNotFoundError, AttributeError):
17+
- pass
18+
+ build_beta = False
19+
BUILD: str = build_commit
20+
BRANCH: str = build_branch
21+
BETA: bool = build_beta

0 commit comments

Comments
 (0)