Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

27139 Posts in 1556 Topics- by 2037 Members - Latest Member: Porkley

June 19, 2013, 11:57:38 AM
Team Meat ForumsSuper Meat BoyTech SupportSimple launcher for Mac version
Pages: [1]
Print
Author Topic: Simple launcher for Mac version  (Read 606 times)
phobius
Fresh Meat

Posts: 1


View Profile WWW
« on: December 27, 2011, 03:01:19 AM »

Hello peoples,

I decided to use my coffee break to whip up a (slightly) less kludgy way of launching the (non-DRM) Mac version.

Currently it's just two simple things: a shell script which lives in the application bundle (eg. /Applications/SuperMeatBoy.app/Contents/MacOS/SuperMeatConfig):

Code:
#!/bin/bash

BASEDIR="$(dirname "$0")"
CONFIG_FILE="meat_config.txt"

cd "$BASEDIR"

if [ ! -f $CONFIG_FILE ]
then
echo "creating default configuration file"
echo "-highdetail" > $CONFIG_FILE
fi

./SuperMeatBoy `cat $CONFIG_FILE`



And a text file which contains the arguments to apply to the original application (the shell script creates it the first time it's run)


(Additionally the bundle's Info.plist file needs to be modified to point to the shell script instead of the SuperMeatBoy binary.)


I get that this is a bit too much work for most users, so I'm going to wrestle with Apple's "Package Maker" app and see if I can't make this a little more accessible.


edit: minor formatting concerns
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by padexx