Created
July 14, 2020 00:08
-
-
Save richard-flosi/766040cec9bd2ea5da7a33bc01706de4 to your computer and use it in GitHub Desktop.
Build Script to Deploy Flutter Web app on Netlify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get flutter | |
git clone https://github.com/flutter/flutter.git | |
FLUTTER=flutter/bin/flutter | |
# Configure flutter | |
FLUTTER_CHANNEL=master | |
FLUTTER_VERSION=v1.17.0 | |
$FLUTTER channel $FLUTTER_CHANNEL | |
$FLUTTER version $FLUTTER_VERSION | |
$FLUTTER config --enable-web | |
# Build flutter for web | |
$FLUTTER build web | |
echo "OK" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[build] | |
command = "./build.sh" | |
publish = "build/web" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, @Gene-Dana
Got the app live and running.