Skip to content

Commit c0cae9f

Browse files
committed
If no params passed, default to web
1 parent fcc2384 commit c0cae9f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

build.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,9 @@ done < .env
2020

2121
# Check if device parameter is provided
2222
if [ -z "$1" ]; then
23-
echo "Usage: ./build.sh <device_id_or_name>"
24-
echo "Example: ./build.sh chrome"
25-
echo "Example: ./build.sh 'iPhone 15'"
26-
echo ""
27-
echo "Available devices:"
28-
flutter devices
29-
exit 1
23+
echo "No device specified. Building for web..."
24+
flutter build web "${ARGS[@]}"
25+
exit 0
3026
fi
3127

3228
DEVICE_NAME="$1"

0 commit comments

Comments
 (0)