CEF4Delphi/demos/Lazarus_any_OS/BrowserWindowDom/create_mac_helper.sh

14 lines
397 B
Bash
Raw Normal View History

2021-03-04 01:44:02 +01:00
#!/bin/sh
CDIR=$(pwd)
cd "$(dirname "$0")"
./AppHelper/create_mac_helper_apps.sh ../../../bin/BrowserWindowDom.app
if [ "$(grep -i TCrCocoaApplication ../../../bin/BrowserWindowDom.app/Contents/Info.plist)" = "" ];
then
sed -i '' "1,4s/<dict>/<dict>\n <key>NSPrincipalClass<\/key>\n <string>TCrCocoaApplication<\/string>/" ../../../bin/BrowserWindowDom.app/Contents/Info.plist
fi
cd "$CDIR"