diff --git a/Scripts/bitbar-bundler b/Scripts/bitbar-bundler new file mode 100755 index 000000000..085e380b5 --- /dev/null +++ b/Scripts/bitbar-bundler @@ -0,0 +1,12 @@ +#!/bin/bash +[ "$#" -ge "2" ] || { echo "usage: $0 /path/to/BitBar.app /path/to/first-plugin /path/to/second-plugin ..."; exit 1; } + +app="$1/Contents/MacOS/" + +shift + +# copy plugins into the app's executables directory +cp -v "$@" "$app" + +# ensure they are executable +chmod -R +x "$app"