From 0822150255617d7313ba2c2eebfa4f4ce5e96dd8 Mon Sep 17 00:00:00 2001 From: iosdeveloper Date: Mon, 22 Feb 2016 19:14:26 +0100 Subject: [PATCH] added bundler script --- Scripts/bitbar-bundler | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 Scripts/bitbar-bundler 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"