From 7a99469d94a159fcf8c247865c62d61520771db6 Mon Sep 17 00:00:00 2001 From: mirkobrombin Date: Tue, 19 Dec 2023 13:47:47 +0100 Subject: [PATCH] feat: link distrobox binaries --- .../usr/share/apx/distrobox/gen-distrobox-links | 7 +++++++ recipe.yml | 1 + 2 files changed, 8 insertions(+) create mode 100644 includes.container/usr/share/apx/distrobox/gen-distrobox-links diff --git a/includes.container/usr/share/apx/distrobox/gen-distrobox-links b/includes.container/usr/share/apx/distrobox/gen-distrobox-links new file mode 100644 index 0000000..fb604a5 --- /dev/null +++ b/includes.container/usr/share/apx/distrobox/gen-distrobox-links @@ -0,0 +1,7 @@ +#!/bin/sh +targets="distrobox distrobox-host-exec distrobox-assemble distrobox-init distrobox-create distrobox-list distrobox-enter distrobox-rm distrobox-ephemeral distrobox-stop distrobox-export distrobox-upgrade distrobox-generate-entry" +for target in $targets; do + echo "#!/bin/sh" > /usr/share/apx/distrobox/$target + echo "host-spawn /usr/share/apx/distrobox/$target \$@" >> /usr/share/apx/distrobox/$target + chmod +x /usr/share/apx/distrobox/$target +done \ No newline at end of file diff --git a/recipe.yml b/recipe.yml index 8648f8a..9771323 100644 --- a/recipe.yml +++ b/recipe.yml @@ -65,6 +65,7 @@ modules: - ln -s /usr/bin/host-spawn /usr/bin/apx - ln -s /usr/bin/host-spawn /usr/bin/ikaros - ln -s /usr/bin/host-spawn /usr/bin/vanilla-sideload + - sh /usr/share/apx/distrobox/gen-distrobox-links - name: cleanup type: shell