diff --git a/flake.nix b/flake.nix index 7f3f6cd..597e7a6 100644 --- a/flake.nix +++ b/flake.nix @@ -72,6 +72,7 @@ ui_static = "${ui-static}"; ui_templates = "${ui-templates}"; }) + ./patches/2-not-beta.patch ]; }; diff --git a/patches/2-not-beta.patch b/patches/2-not-beta.patch new file mode 100644 index 0000000..a9d4dea --- /dev/null +++ b/patches/2-not-beta.patch @@ -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