#!/bin/sh CDIR=$(pwd) cd "$(dirname "$0")" ../AppHelper/create_mac_helper_apps.sh ../../../bin/BrowserWindow.app if [ "$(grep -i TCrCocoaApplication ../../../bin/BrowserWindow.app/Contents/Info.plist)" = "" ]; then sed -i '' "1,4s//\n NSPrincipalClass<\/key>\n TCrCocoaApplication<\/string>/" ../../../bin/BrowserWindow.app/Contents/Info.plist fi cd "$CDIR"