aboutsummaryrefslogtreecommitdiff
path: root/scripts/build.sh
blob: 37d4ab9fe8e0aedacc850bb389dc137e1db48d9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/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 'Liquid Glass Bezel' \
	build

echo "Build complete, signing." > /dev/stderr
output_path="/tmp/QS/build/Release/Quicksilver.app/Contents/PlugIns/"
plugin_name="Liquid Glass Bezel.qsplugin"
codesign --force -vvv --deep --sign ${SIGNING_IDENTITY} "${output_path}${plugin_name}"

echo "Signing complete, archiving." > /dev/stderr
archive_name="Liquid_Glass_Bezel.qsplugin.tar.gz"
pushd "${output_path}"
tar -czvf "${archive_name}" "${plugin_name}"
popd
mv "${output_path}${archive_name}" .
echo "Done." > /dev/stderr