Skip to content

Commit

Permalink
FIx missing MVK and SDL
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Sep 24, 2024
1 parent a6210c0 commit e27b6e8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/dylib_packer.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ GSTREAMER_LIBS=(
"libgstwavparse"
)

# Define the fixed array of non-GStreamer libraries
LIBS=(
"libMoltenVK"
"libSDL2-2.0.0"
)

# Global array to store all discovered dylibs, with unique entries only
typeset -aU all_dylibs
# Queue for iterative processing
Expand Down Expand Up @@ -130,6 +136,9 @@ copy_libraries() {
# Get the Homebrew prefix for gstreamer
GSTREAMER_PREFIX=$(brew --prefix gstreamer)

# Get generic Homebrew prefix
PREFIX=$(brew --prefix)

# Iterate over the fixed GStreamer libraries array
for lib in "${GSTREAMER_LIBS[@]}"; do
dylib_path="${GSTREAMER_PREFIX}/lib/gstreamer-1.0/${lib}.dylib"
Expand All @@ -142,6 +151,18 @@ for lib in "${GSTREAMER_LIBS[@]}"; do
fi
done

# Iterate over the fixed non-GStreamer libraries array
for lib in "${LIBS[@]}"; do
dylib_path="${PREFIX}/lib/${lib}.dylib"

if [ -f "$dylib_path" ]; then
echo "Checking dependencies for: $dylib_path"
find_dylib_dependencies "$dylib_path"
else
echo "Error: $dylib_path not found"
fi
done

# Copy all found dylibs to the appropriate directories
for dylib in "${all_dylibs[@]}"; do
copy_libraries "$dylib"
Expand Down
2 changes: 1 addition & 1 deletion WhiskyWineVersion.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>version</key>
<dict>
<key>build</key>
<string>0</string>
<string>1</string>
<key>major</key>
<integer>2</integer>
<key>minor</key>
Expand Down

0 comments on commit e27b6e8

Please sign in to comment.