This launcher provides a helper launcher that sets and exports the appropriate X_DEBIAN_MULTIARCH_TRIPLET
environment variable, which is to be consumed by the sequentially executed launchers to set paths depending on the hardware architecture.
How to use
Merge the following part definition:
parts:
# The debian-multiarch-triplet-provider-launch launcher: Enable DEBIAN_MULTIARCH_TRIPLET-like environment variable in the snap runtime
# https://forum.snapcraft.io/t/the-debian-multiarch-triplet-provider-launch-launcher-enable-debian-multiarch-triplet-like-environment-variable-in-the-snap-runtime/11738
debian-multiarch-triplet-provider-launch:
source: https://github.com/brlin-tw/debian-multiarch-triplet-provider-launch.git
source-tag: v1.0.0
plugin: dump
stage:
- bin/debian-multiarch-triplet-provider-launch
then add bin/debian-multiarch-triplet-provider-launch
to the command chain, right before any consumer launchers:
apps:
_app_name_:
adapter: full
command: bin/_app_executable_
command-chain:
- bin/debian-multiarch-triplet-provider-launch
- bin/arch-triplet-consumer-launch