Skip to content

Commit d714355

Browse files
committed
feat: show helpful warning message if guix deps missing
1 parent 9217f52 commit d714355

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/build_app.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,14 @@ if [ "$BUILD_WITH_GUIX" -eq 1 ]; then
8080
echo "Error: -g (Guix build) is only supported with -p linux"
8181
exit 1
8282
fi
83+
GUIX_BUILD="${APP_PROJECT_ROOT_DIR}/contrib/guix/guix-build"
84+
if [ ! -x "$GUIX_BUILD" ]; then
85+
echo "guix-build not found at: $GUIX_BUILD"
86+
echo "Ensure contrib/guix/ exists (e.g. feat/guix branch)."
87+
exit 1
88+
fi
8389
export SOURCE_DIR="$APP_PROJECT_ROOT_DIR"
84-
exec "${APP_PROJECT_ROOT_DIR}/contrib/guix/guix-build" \
90+
exec "$GUIX_BUILD" \
8591
--app "$APP_NAMED_ID" \
8692
--version "$APP_VERSION_STRING" \
8793
--build-number "$APP_BUILD_NUMBER"

0 commit comments

Comments
 (0)