If no params passed, default to web
This commit is contained in:
parent
fcc2384a5e
commit
c0cae9fcb7
10
build.sh
10
build.sh
@ -20,13 +20,9 @@ done < .env
|
|||||||
|
|
||||||
# Check if device parameter is provided
|
# Check if device parameter is provided
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "Usage: ./build.sh <device_id_or_name>"
|
echo "No device specified. Building for web..."
|
||||||
echo "Example: ./build.sh chrome"
|
flutter build web "${ARGS[@]}"
|
||||||
echo "Example: ./build.sh 'iPhone 15'"
|
exit 0
|
||||||
echo ""
|
|
||||||
echo "Available devices:"
|
|
||||||
flutter devices
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DEVICE_NAME="$1"
|
DEVICE_NAME="$1"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user