Skip to content

Instantly share code, notes, and snippets.

@devoncarew
Last active May 11, 2016 23:12
Show Gist options
  • Save devoncarew/9f57408c7e7cc7f2c5a8fed3914b0dd8 to your computer and use it in GitHub Desktop.
Save devoncarew/9f57408c7e7cc7f2c5a8fed3914b0dd8 to your computer and use it in GitHub Desktop.
Flutter kiosk setup
#!/bin/bash
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
export FLUTTER_ROOT=$HOME/flutter
if [ ! -f "$FLUTTER_ROOT" ]; then
echo Cloning Flutter repo...
git clone -b codelab https://github.com/flutter/flutter.git $FLUTTER_ROOT
else
echo Updating Flutter repo...
(cd $FLUTTER_ROOT; git pull)
fi
echo Running Flutter setup...
rm -f $HOME/.flutter
(cd $FLUTTER_ROOT; ./bin/flutter setup)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment