#!/bin/bash

set -e

DS_BUILT_BUNDLE_CONTENTS=DerivedData/DeliciousSafari/Build/Products/Debug/DeliciousSafari.bundle/Contents
DS_DST_CONTENTS=/Library/InputManagers/DeliciousSafari/DeliciousSafari.bundle/Contents

sudo cp $DS_BUILT_BUNDLE_CONTENTS/MacOS/DeliciousSafari $DS_DST_CONTENTS/MacOS/DeliciousSafari
sudo cp -R $DS_BUILT_BUNDLE_CONTENTS/Resources/*.nib $DS_DST_CONTENTS/Resources

echo OK

#!/bin/bash

set -e

SRC=DerivedData/DeliciousSafari/Build/Products/Debug/DeliciousSafari.bundle
DST_FOLDER=/Library/InputManagers/DeliciousSafari

sudo rm -rf "$DST_FOLDER/DeliciousSafari.bundle"
sudo cp -R "$SRC" "$DST_FOLDER"

echo OK

Copy the entire bundle now that you're code signing. Otherwise Safari will crash if something in bundle doesn't match signature.
Copy the entire bundle now that you're code signing. Otherwise Safari will crash if something in bundle doesn't match signature.
