Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packaging/bundle-dylibs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ BINARY="$MACOS_DIR/vox"
[ -x "$BINARY" ] || { echo "no binary at $BINARY" >&2; exit 1; }

# Locate the dylibs via the module cache rather than hardcoding a version.
# Download first so go list can resolve the directory on a fresh clone.
go mod download github.com/k2-fsa/sherpa-onnx-go-macos >/dev/null
MODDIR="$(go list -m -f '{{.Dir}}' github.com/k2-fsa/sherpa-onnx-go-macos)"
LIBDIR="$MODDIR/lib/aarch64-apple-darwin"
[ -d "$LIBDIR" ] || { echo "no dylib dir at $LIBDIR" >&2; exit 1; }
Expand Down
Loading