Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Sep 23, 2024
1 parent f4cdbad commit 01c5a27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/dylib_packer.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,14 @@ update_dylib_paths() {
local new_path="${path_prefix}${lib_name}"
echo "Updating $path to $new_path"
# Use install_name_tool to change the path
install_name_tool -change "$path" "$new_path" "$dylib_file"
codesign -fs- "$dylib_file"
/usr/bin/install_name_tool -change "$path" "$new_path" "$dylib_file"
/usr/bin/codesign -fs- "$dylib_file"
fi
done
}

export -f update_dylib_paths

# Update dynamic library paths for copied libraries
find Libraries/Wine/lib -maxdepth 1 -type f -name '*.dylib' -exec bash -c 'update_dylib_paths "$0" "@loader_path/"' {} \;
find Libraries/Wine/lib/gstreamer-1.0 -maxdepth 1 -type f -name '*.dylib' -exec bash -c 'update_dylib_paths "$0" "@loader_path/../"' {} \;
Expand Down

0 comments on commit 01c5a27

Please sign in to comment.