diff --git a/MODULE.bazel b/MODULE.bazel index 4e00143..1dab797 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -2,7 +2,7 @@ module(name = "rules_appimage", version = "1.2.0") bazel_dep(name = "bazel_skylib", version = "1.4.2") bazel_dep(name = "rules_python", version = "0.25.0") -bazel_dep(name = "rules_cc", version = "0.0.8") +bazel_dep(name = "rules_cc", version = "0.0.9") bazel_dep(name = "platforms", version = "0.0.7") python = use_extension("@rules_python//python/extensions:python.bzl", "python") @@ -17,6 +17,6 @@ pip.parse( use_repo(pip, "rules_appimage_py_deps") non_module_deps = use_extension("@rules_appimage//:deps.bzl", "non_module_deps") -use_repo(non_module_deps, "squashfs-tools", "zstd", "appimagetool.png", "appimage_runtime_aarch64", "appimage_runtime_armhf", "appimage_runtime_i686", "appimage_runtime_x86_64") +use_repo(non_module_deps, "squashfs-tools", "zstd", "appimagetool.png", "appimage_runtime_aarch64", "appimage_runtime_armhf", "appimage_runtime_i686", "appimage_runtime_x86_64", "appimage_runtime_i386", "appimage_runtime_armv7e-m") -# -- bazel_dep definitions -- # +register_toolchains("@rules_appimage//appimage:all") diff --git a/appimage/private/tool/mkappimage.py b/appimage/private/tool/mkappimage.py index ac96207..0c49f19 100644 --- a/appimage/private/tool/mkappimage.py +++ b/appimage/private/tool/mkappimage.py @@ -17,7 +17,7 @@ def _get_path_or_raise(path: str) -> Path: runfiles = bazel_runfiles.Create() if not runfiles: raise FileNotFoundError("Could not find runfiles") - runfile = files.Rlocation(path) + runfile = runfiles.Rlocation(path) if not runfile: raise FileNotFoundError(f"Could not find {path} in runfiles") return Path(runfile)