defs.md

August 2, 2026 ยท View on GitHub

appimage

load("@rules_appimage//appimage:defs.bzl", "appimage")

appimage(name, data, binary, build_args, env)

Package your binary into an AppImage.

Inspect intermediate build artifacts with --output_groups=appimage_debug

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
dataAny additional data that will be made available inside the appimageList of labelsoptional[]
binaryThe executable that is packaged and run inside the appimage, e.g. //path/to:my_binaryLabelrequired
build_argsExtra arguments passed to mksquashfs when building the appimage, e.g. ['-comp', 'xz']List of stringsoptional[]
envRuntime environment variables. See https://bazel.build/reference/be/common-definitions#common-attributes-testsDictionary: String -> Stringoptional{}

appimage_test

load("@rules_appimage//appimage:defs.bzl", "appimage_test")

appimage_test(name, data, binary, build_args, env)

Package your test target into an AppImage.

Inspect intermediate build artifacts with --output_groups=appimage_debug

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
dataAny additional data that will be made available inside the appimageList of labelsoptional[]
binaryThe executable that is packaged and run inside the appimage, e.g. //path/to:my_binaryLabelrequired
build_argsExtra arguments passed to mksquashfs when building the appimage, e.g. ['-comp', 'xz']List of stringsoptional[]
envRuntime environment variables. See https://bazel.build/reference/be/common-definitions#common-attributes-testsDictionary: String -> Stringoptional{}

appimage_toolchain

load("@rules_appimage//appimage:defs.bzl", "appimage_toolchain")

appimage_toolchain(name, appimage_runtime)

Declare an AppImage toolchain wrapping a platform-specific AppImage runtime binary.

A separate toolchain target should be registered for each supported CPU architecture, constrained to the matching platform, so that the appimage() rule automatically selects the correct runtime for the target platform.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
appimage_runtime-LabeloptionalNone