We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cbdf71 commit 941c157Copy full SHA for 941c157
1 file changed
build-darwin.sh
@@ -9,7 +9,11 @@ BINARY_NAME="weatherwidget"
9
BUNDLE_ID="com.weatherwidget"
10
CMD_PATH="./cmd/weatherwidget/"
11
APP_ICON="assets/icons/clear.png"
12
-VERSION="${1:-dev}"
+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
17
18
echo "==> Building WeatherWidget $VERSION for macOS..."
19
0 commit comments