Skip to content

Commit 4198f5e

Browse files
committed
fix: allow filling debug option via env
1 parent b09deca commit 4198f5e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

appimagebuilder/modules/setup/apprun_2/apprun2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, context: Context, finder: Finder):
6565
self.main_exec = recipe.AppDir.app_info.exec()
6666
self.main_exec_args = recipe.AppDir.app_info.exec_args() or "$@"
6767
self.apprun_version = recipe.AppDir.runtime.version() or "v2.0.0"
68-
self.apprun_debug = recipe.AppDir.runtime.debug()
68+
self.apprun_debug = (recipe.AppDir.runtime.debug().strip().lower() == "true") or False
6969
user_env_input = recipe.AppDir.runtime.env() or {}
7070
self.user_env = self.parse_env_input(user_env_input)
7171
self.apprun_arch = set(recipe.AppDir.runtime.arch() or [])

appimagebuilder/modules/setup/apprun_3/apprun3_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AppRun3Context:
3434
def __init__(self, build_context: Context):
3535
self.build_context = build_context
3636
self.modules_dir = build_context.app_dir / "opt"
37-
self.debug = build_context.recipe.AppDir.runtime.debug() or False
37+
self.debug = (build_context.recipe.AppDir.runtime.debug().strip().lower() == "true") or False
3838
self.path_mappings = build_context.recipe.AppDir.runtime.path_mappings() or []
3939

4040
# init AppRun binaries resolver

appimagebuilder/recipe/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self):
3636
}
3737

3838
self.v1_runtime = {
39-
Optional("debug"): bool,
39+
Optional("debug"): str,
4040
Optional("version"): str,
4141
Optional("path_mappings"): [str],
4242
Optional("arch"): [Or("gnueabihf", "x86_64", "i386", "aarch64")],

tests/recipe/test_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_validate_appdir(self):
6969
},
7070
"arch": ["i386", "x86_64", "aarch64", "gnueabihf"],
7171
"preserve": ["usr/bin/example"],
72-
"debug": False,
72+
"debug": "False",
7373
},
7474
"files": {"include": ["/one", "/two"], "exclude": ["three", "four"]},
7575
"test": {

0 commit comments

Comments
 (0)