mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-03 20:03:50 +00:00
fix(ci): bundle Vulkan loader dylibs in macOS app
This commit is contained in:
parent
2ba54988bb
commit
c717330f4f
2 changed files with 28 additions and 0 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
|
@ -199,6 +199,20 @@ jobs:
|
|||
-p @executable_path/../Frameworks/
|
||||
fi
|
||||
|
||||
# dylibbundler may miss Homebrew's Vulkan loader on some runner images.
|
||||
# Copy all vulkan-loader dylib names so wowee_bin can resolve whichever
|
||||
# install_name it was linked against (e.g. libvulkan.1.4.341.dylib).
|
||||
VULKAN_LIB_DIR="$(brew --prefix vulkan-loader)/lib"
|
||||
for lib in "${VULKAN_LIB_DIR}"/libvulkan*.dylib; do
|
||||
[ -e "${lib}" ] || continue
|
||||
cp -f "${lib}" Wowee.app/Contents/Frameworks/
|
||||
done
|
||||
|
||||
if ! ls Wowee.app/Contents/Frameworks/libvulkan*.dylib >/dev/null 2>&1; then
|
||||
echo "Missing Vulkan loader dylib(s) in app bundle Frameworks/" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Info.plist
|
||||
cat > Wowee.app/Contents/Info.plist << 'EOF'
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue