Skip to content

Commit 941c157

Browse files
author
Ricardo Wagemaker
committed
MacOS package build script
1 parent 3cbdf71 commit 941c157

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

build-darwin.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ BINARY_NAME="weatherwidget"
99
BUNDLE_ID="com.weatherwidget"
1010
CMD_PATH="./cmd/weatherwidget/"
1111
APP_ICON="assets/icons/clear.png"
12-
VERSION="${1:-dev}"
12+
VERSION=$(cat release 2>/dev/null | tr -d '[:space:]')
13+
if [ -z "$VERSION" ]; then
14+
echo "Error: could not read version from 'release' file"
15+
exit 1
16+
fi
1317

1418
echo "==> Building WeatherWidget $VERSION for macOS..."
1519

0 commit comments

Comments
 (0)