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