Skip to content

Instantly share code, notes, and snippets.

@ohaiibuzzle
Last active August 5, 2023 23:24
Show Gist options
  • Save ohaiibuzzle/71a0bff04956af7540156a30896e4bfd to your computer and use it in GitHub Desktop.
Save ohaiibuzzle/71a0bff04956af7540156a30896e4bfd to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Please make sure GPTK dmg is mounted"
read -p "Press enter to continue"
# Install GPTK
ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ ~/Library/Application\ Support/Whisky/Libraries/Wine/lib
cd ~/Library/Application\ Support/Whisky/Libraries/Wine/lib
# Make a dupe of the GPTK lib
cp -r external/* .
# Fix up symlinks
cd external/D3DMetal.framework
rm -rf D3DMetal Resources
ln -sf Versions/A/D3DMetal
ln -sf Versions/A/Resources
cd ../..
cd D3DMetal.framework
rm -rf D3DMetal Resources
ln -sf Versions/A/D3DMetal
ln -sf Versions/A/Resources
cd ..
# Unquarantine everything
xattr -d -r com.apple.quarantine external
xattr -d -r com.apple.quarantine D3DMetal.framework
xattr -d com.apple.quarantine libd3dshared.dylib
# Set things executable
chmod +x external/D3DMetal.framework/D3DMetal
chmod +x D3DMetal.framework/D3DMetal
chmod +x libd3dshared.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment