We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5b2b50 + a7c5e06 commit 4ae7280Copy full SHA for 4ae7280
publish.sh
@@ -0,0 +1,19 @@
1
+#!/usr/bin/env bash
2
+
3
+if [[ "$(git update-index --refresh)" ]]; then
4
+ echo "There are changes in git, commit them first!"
5
+ exit 3
6
+fi
7
8
+echo "Removing unneeded folders"
9
+rm -rfv chrome-experimental-launch || exit 4
10
+rm -rfv scripts || exit 4
11
+rm -rfv test || exit 4
12
+rm -rfv example/test || exit 4
13
+rm -rfv .idea || exit 4
14
+rm -rfv publish.sh || exit 4
15
+echo "Running pub publish"
16
+flutter pub publish
17
18
+echo "Reverting back to HEAD"
19
+git reset --hard HEAD
0 commit comments