Jump to content
  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 

3 posts in this topic

Recommended Posts

Hi!

 

I sometimes use Steam for games on my Hackintosh, but I partitioned my disk as Mac OS Extended (Case-sensitive, Journaled) which is incompatible with Steam. Instead of creating a whole new partition table for a small application, you can create a disk image of a case-insensitive format and run Steam from there. These Terminal commands will create this disk image. If you do not create a separate SteamApps folder, replace 500m (on row 26) with a byte size that can fit your games aswell, eg 40g.

#!/bin/bash
mkdir -p /Applications/Steam.app/Contents/Resources
mkdir -p /Applications/Steam.app/Contents/MacOS
plist=/Applications/Steam.app/Contents/Info.plist
/usr/libexec/PlistBuddy -c "Add CFBundleExecutable string 'Steam'" $plist
/usr/libexec/PlistBuddy -c "Add CFBundleInfoDictionaryVersion string '1.0'" $plist
/usr/libexec/PlistBuddy -c "Add CFBundlePackageType string 'APPL'" $plist
/usr/libexec/PlistBuddy -c "Add CFBundleSignature string '????'" $plist
/usr/libexec/PlistBuddy -c "Add CFBundleVersion string '1.0'" $plist
/usr/libexec/PlistBuddy -c "Add CFBundleIconFile string 'steam.icns'" $plist
bin=/Applications/Steam.app/Contents/MacOS/Steam
echo '#!/bin/bash'                                                                               > $bin
echo 'hdiutil detach /Volumes/Steam'                                                            >> $bin
echo 'if [ != /Volumes/Steam ]'                                                                 >> $bin
echo '  then hdiutil detach -force /Volumes/Steam'                                              >> $bin
echo 'fi'                                                                                       >> $bin
echo ''                                                                                         >> $bin
echo 'hdiutil attach -noverify -nobrowse /Applications/Steam.app/Contents/Resources/Steam.dmg'  >> $bin
echo '/Volumes/Steam/Steam.app/Contents/MacOS/steam.sh'                                         >> $bin
echo ''                                                                                         >> $bin
echo 'hdiutil detach /Volumes/Steam'                                                            >> $bin
echo 'if [ -e /Volumes/Steam ]'                                                                 >> $bin
echo '  then hdiutil detach -force /Volumes/Steam'                                              >> $bin
echo 'fi'                                                                                       >> $bin
chmod +x /Applications/Steam.app/Contents/MacOS/Steam
hdiutil create -size 500m -fs "Journaled HFS+" -volname Steam /Applications/Steam.app/Contents/Resources/Steam.dmg
hdiutil attach -noverify -nobrowse /Applications/Steam.app/Contents/Resources/Steam.dmg
mkdir -p /Volumes/Steam/Steam
ln -s /Volumes/Steam/Steam $HOME/Library/Application\ Support/Steam
curl http://media.steampowered.com/client/installer/steam.dmg -o $TMPDIR/steam.dmg
hdiutil attach -noverify -nobrowse $TMPDIR/steam.dmg
cp -RX /Volumes/Steam\ 1/Steam.app /Volumes/Steam/
cp -X /Volumes/Steam\ 1/Steam.app/Contents/Resources/steam.icns /Applications/Steam.app/Contents/Resources/
chmod +x /Volumes/Steam/Steam.app/Contents/MacOS/steam.sh
rm $TMPDIR/steam.dmg
hdiutil detach /Volumes/Steam
if [ -e /Volumes/Steam ]
  then hdiutil detach -force /Volumes/Steam
fi
hdiutil detach /Volumes/Steam\ 1
if [ -e /Volumes/Steam\ 1 ]
  then hdiutil detach -force /Volumes/Steam\ 1
fi

When you are prompted to accept a license, just press QY and , in chronological order. After running all the commands, reboot and start Steam from the application in /Applications. You may have to create a firewall exception, by opening System Preferences, Security & Privacy, Firewall and Firewall Options…

Share this post


Link to post
Share on other sites

To save all the rigmarole , try "Source Finagler.app", allows you to put SteamApps folder to different location.

 

Good tute, script none the less.

Share this post


Link to post
Share on other sites

IIRC, the SteamApps folder can reside on a case-sensitive partition without affecting Steam. You can also add alternate SteamApps directories from the native Steam Preferences, in the Downloads section.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×