Initial release

This commit is contained in:
Louis Rossmann
2026-05-11 07:39:33 -05:00
commit c661ddc2eb
16967 changed files with 4075897 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#!/bin/sh
set -eu
HOST_PATH="${1:-}"
RUNTIME_DIR="${2:-}"
PLUGIN_DIR="${3:-}"
if [ -n "${PJARCZAK_MAC_LINUX_WRAPPER_CMD:-}" ]; then
exec /bin/sh -lc "$PJARCZAK_MAC_LINUX_WRAPPER_CMD"
fi
if [ -n "${PJARCZAK_MAC_DOCKER_IMAGE:-}" ]; then
exec docker run --rm -i \
-e PJARCZAK_BAMBU_PLUGIN_DIR=/runtime/plugin \
-e PJARCZAK_BAMBU_NETWORK_SO=/runtime/plugin/libbambu_networking.so \
-e PJARCZAK_BAMBU_SOURCE_SO=/runtime/plugin/libBambuSource.so \
-e PJARCZAK_BAMBU_LIVE555_SO=/runtime/plugin/liblive555.so \
-e PJARCZAK_EXPECTED_BAMBU_NETWORK_VERSION="${PJARCZAK_EXPECTED_BAMBU_NETWORK_VERSION:-}" \
-v "$RUNTIME_DIR:/runtime/host:ro" \
-v "$PLUGIN_DIR:/runtime/plugin:ro" \
"$PJARCZAK_MAC_DOCKER_IMAGE" /runtime/host/pjarczak_bambu_linux_host
fi
if [ -n "${PJARCZAK_MAC_LIMA_INSTANCE:-}" ]; then
exec limactl shell "$PJARCZAK_MAC_LIMA_INSTANCE" -- /bin/sh -lc \
"export PJARCZAK_BAMBU_PLUGIN_DIR=$(printf %s \"$PLUGIN_DIR\"); export PJARCZAK_BAMBU_NETWORK_SO=$(printf %s \"$PLUGIN_DIR/libbambu_networking.so\"); export PJARCZAK_BAMBU_SOURCE_SO=$(printf %s \"$PLUGIN_DIR/libBambuSource.so\"); export PJARCZAK_BAMBU_LIVE555_SO=$(printf %s \"$PLUGIN_DIR/liblive555.so\"); exec $(printf %s \"$HOST_PATH\")"
fi
echo "No macOS Linux wrapper configured. Set PJARCZAK_MAC_LINUX_WRAPPER_CMD, PJARCZAK_MAC_DOCKER_IMAGE or PJARCZAK_MAC_LIMA_INSTANCE." >&2
exit 127