forked from smooth80/flutter-intellij
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
28 lines (22 loc) · 909 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Initialize everything required by the plugin tool.
setup() {
# Fail on any error.
set -e
# Display commands being run. Only do this while debugging and be careful
# that no confidential information is displayed.
# set -x
# If we move to branch-based builds we might not be able to use such a shallow clone.
git clone --depth 1 https://github.com/flutter/flutter.git ../flutter
export PATH="$PATH":`pwd`/../flutter/bin:`pwd`/../flutter/bin/cache/dart-sdk/bin
flutter config --no-analytics
flutter doctor
export FLUTTER_SDK=`pwd`/../flutter
java -version
echo "JAVA_HOME=$JAVA_HOME"
export FLUTTER_KEYSTORE_ID=74840
export FLUTTER_KEYSTORE_NAME=flutter-intellij-plugin-auth-token
export FLUTTER_KEYSTORE_JXBROWSER_KEY_NAME=flutter-intellij-plugin-jxbrowser-license-key
(cd tool/plugin; echo "pub get `pwd`"; pub get --no-precompile)
./gradlew --version
}