+#!/usr/bin/env sh
+
+set -e
+
+echo "Starting build with configuration ${configuration}" > /dev/stderr
+echo "Quicksilver path is: ${quicksilver_path}" > /dev/stderr
+pushd "${quicksilver_path}"
+echo "Starting build at `pwd`" > /dev/stderr
+xcodebuild \
+ -quiet \
+ -destination generic/platform=macos \
+ -configuration "${configuration}" \
+ -scheme 'Quicksilver Distribution' \
+ build
+popd
+echo "Building `pwd`" > /dev/stderr
+xcodebuild \
+ -quiet \
+ -destination generic/platform=macos \
+ -configuration "${configuration}" \
+ -scheme 'Flat Bezel' \
+ build
+
+echo "Build complete, signing." > /dev/stderr
+output_path="/tmp/QS/build/Release/Quicksilver.app/Contents/PlugIns/"
+plugin_name="Flat Bezel.qsplugin"
+codesign --force -vvv --deep --sign ${SIGNING_IDENTITY} "${output_path}${plugin_name}"
+
+echo "Signing complete, archiving." > /dev/stderr
+archive_name="Flat_Bezel.qsplugin.tar.gz"
+pushd "${output_path}"
+tar -czvf "${archive_name}" "${plugin_name}"
+popd
+mv "${output_path}${archive_name}" .
+echo "Done." > /dev/stderr