]> git.r.bdr.sh - rbdr/Flat-Bezel.qsplugin/blame_incremental - scripts/build.sh
Prep version 1.1.0
[rbdr/Flat-Bezel.qsplugin] / scripts / build.sh
... / ...
CommitLineData
1#!/usr/bin/env sh
2
3set -e
4
5echo "Starting build with configuration ${configuration}" > /dev/stderr
6echo "Quicksilver path is: ${quicksilver_path}" > /dev/stderr
7pushd "${quicksilver_path}"
8echo "Starting build at `pwd`" > /dev/stderr
9xcodebuild \
10 -quiet \
11 -destination generic/platform=macos \
12 -configuration "${configuration}" \
13 -scheme 'Quicksilver Distribution' \
14 build
15popd
16echo "Building `pwd`" > /dev/stderr
17xcodebuild \
18 -quiet \
19 -destination generic/platform=macos \
20 -configuration "${configuration}" \
21 -scheme 'Flat Bezel' \
22 build
23
24echo "Build complete, signing." > /dev/stderr
25output_path="/tmp/QS/build/Release/Quicksilver.app/Contents/PlugIns/"
26plugin_name="Flat Bezel.qsplugin"
27codesign --force -vvv --deep --sign ${SIGNING_IDENTITY} "${output_path}${plugin_name}"
28
29echo "Signing complete, archiving." > /dev/stderr
30archive_name="Flat_Bezel.qsplugin.tar.gz"
31pushd "${output_path}"
32tar -czvf "${archive_name}" "${plugin_name}"
33popd
34mv "${output_path}${archive_name}" .
35echo "Done." > /dev/stderr