Skip to content

Commit 5ad7e0d

Browse files
committed
Try to fix binary
1 parent e65e1e0 commit 5ad7e0d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/fix_dylib.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
run: ./bin/openocd --version || true
1919
- name: Fix dylib dependencies
2020
run: |
21-
cd bin
22-
# Fix openocd binary to search for dylibs in ../lib directory
21+
cd bin
22+
# Fix openocd binary to use local dylibs
2323
echo "Fixing openocd dependencies..."
24-
install_name_tool -change /opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib "@loader_path/../lib/libusb-1.0.0.dylib" ./openocd
25-
install_name_tool -change /opt/homebrew/opt/hidapi/lib/libhidapi.0.dylib "@loader_path/../lib/libhidapi.0.dylib" ./openocd
24+
install_name_tool -change /opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib "@executable_path/./libusb-1.0.0.dylib" ./openocd
25+
install_name_tool -change /opt/homebrew/opt/hidapi/lib/libhidapi.0.dylib "@executable_path/./libhidapi.0.dylib" ./openocd
2626
2727
# Verify the changes
2828
otool -L ./openocd
@@ -34,5 +34,5 @@ jobs:
3434
name: openocd-fixed
3535
path: |
3636
bin/openocd
37-
lib/libusb-1.0.0.dylib
38-
lib/libhidapi.0.dylib
37+
bin/libusb-1.0.0.dylib
38+
bin/libhidapi.0.dylib

0 commit comments

Comments
 (0)