diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..496ee2c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store \ No newline at end of file diff --git a/MAME.app/Contents/Info.plist b/MAME.app/Contents/Info.plist new file mode 100644 index 0000000..f0374d3 --- /dev/null +++ b/MAME.app/Contents/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundlePackageType + APPL + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + MAME + CFBundleExecutable + run.command + CFBundleIdentifier + MAME + CFBundleVersion + 1.0 + CFBundleIconFile + ApplicationIcon.icns + CFBundleShortVersionString + 1.0 + + diff --git a/MAME.app/Contents/MacOS/run.command b/MAME.app/Contents/MacOS/run.command new file mode 100755 index 0000000..71ace70 --- /dev/null +++ b/MAME.app/Contents/MacOS/run.command @@ -0,0 +1,4 @@ +#!/bin/bash +chgdir="$(dirname $0)/../Resources/" +cd $chgdir +./mame -window \ No newline at end of file diff --git a/MAME.app/Contents/Resources/ApplicationIcon.icns b/MAME.app/Contents/Resources/ApplicationIcon.icns new file mode 100644 index 0000000..9fcac1a Binary files /dev/null and b/MAME.app/Contents/Resources/ApplicationIcon.icns differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..d46eda3 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +A .app template for MAME on macOS, allowing for easier and more elegant launch of MAME. + +**NOTE:** I advise against placing the app in `/Applications` as this may cause permission issues. + +## Instructions +* If you haven't already, download the SDL2 **Runtime Binaries** [here](http://www.libsdl.org/download-2.0.php) and follow the included readme to install it. +* Download MAME from [here](https://sdlmame.lngn.net/). +* Extract the downloaded MAME files into this repository's .app bundle (MAME.app/Contents/Resources/) as shown: +![preview screenshot](extraction.png). +* Move the bundle to anywhere you'd like, keeping my note in mind. \ No newline at end of file diff --git a/extraction.png b/extraction.png new file mode 100644 index 0000000..dd60080 Binary files /dev/null and b/extraction.png differ