Skip to content

Instantly share code, notes, and snippets.

@scheakur
Last active August 29, 2015 13:57
Show Gist options
  • Save scheakur/9784331 to your computer and use it in GitHub Desktop.
Save scheakur/9784331 to your computer and use it in GitHub Desktop.
MY=~/Applications/MyFirefoxNightly.app
ORIG=/Applications/FirefoxNightly.app
mkdir -p $MY/Contents/MacOS
mkdir -p $MY/Contents/Resources
cp $ORIG/Contents/Resources/firefox.icns $MY/Contents/Resources
cat <<EOS > $MY/Contents/MacOS/firefox.sh
#!/bin/sh
open -a $ORIG --args -P Nightly -no-remote
EOS
chmod +x $MY/Contents/MacOS/firefox.sh
cat <<EOS > $MY/Contents/Info.plist
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>Nightly</string>
<key>CFBundleExecutable</key>
<string>firefox.sh</string>
<key>CFBundleIconFile</key>
<string>firefox.icns</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>???</string>
</dict>
</plist>
EOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment