Skip to content

Commit 6060afe

Browse files
committed
TAU : Version 9.1.3
1 parent dba109c commit 6060afe

File tree

3 files changed

+153
-3
lines changed

3 files changed

+153
-3
lines changed

bin/build.sh

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
#!/bin/bash
2+
if [ -z "$1" ]; then
3+
echo "Correct usage is $0 <Version> "
4+
exit -1
5+
fi
6+
7+
8+
9+
VERSION=$1
10+
VERSION_CODE=${VERSION#./}
11+
VERSION_CODE=${VERSION_CODE#+/}
12+
13+
bin/setver.sh $VERSION
14+
bin/reldev.sh REL
15+
bin/web.sh
16+
17+
cd flutter_sound
18+
dart analyze lib
19+
if [ $? -ne 0 ]; then
20+
echo "Error"
21+
#exit -1
22+
fi
23+
dart format lib
24+
if [ $? -ne 0 ]; then
25+
echo "Error"
26+
#exit -1
27+
fi
28+
29+
cd ..
30+
31+
#cp -a -v flutter_sound_web/js/flutter_sound/* flutter_sound/example/web/js/flutter_sound
32+
33+
#rm flutter_sound/Logotype\ primary.png
34+
#ln -s ../doc/flutter_sound/Logotype\ primary.png flutter_sound/
35+
#rm -rf flutter_sound_web/js
36+
#if [ -d flutter_sound_core/web/js ]; then
37+
#rm -rf flutter_sound_web/js
38+
#cp -a -v flutter_sound_core/web/js flutter_sound_web
39+
40+
##rm -rf flutter_sound/example/web/js
41+
#cp -a -v flutter_sound_core/web/js flutter_sound/example/web
42+
rm -rf _*.tgz
43+
44+
#ln -s ../flutter_sound_core/web/js flutter_sound_web/js
45+
#else
46+
# ln -s ../tau_sound_core/web/js flutter_sound_web/js
47+
#fi
48+
49+
50+
cd flutter_sound_platform_interface/
51+
#flutter clean
52+
#flutter pub get
53+
flutter pub publish
54+
if [ $? -ne 0 ]; then
55+
echo "Error"
56+
exit -1
57+
fi
58+
cd ..
59+
60+
cd flutter_sound_web
61+
flutter clean
62+
flutter pub get
63+
flutter pub publish
64+
if [ $? -ne 0 ]; then
65+
echo "Error"
66+
exit -1
67+
fi
68+
cd ..
69+
70+
71+
72+
cd flutter_sound
73+
dart format lib
74+
dart format example/lib
75+
dart analyze lib
76+
if [ $? -ne 0 ]; then
77+
echo "Error"
78+
#exit -1
79+
fi
80+
cd ..
81+
82+
83+
84+
git add .
85+
git commit -m "TAU : Version $VERSION"
86+
git pull origin
87+
git push origin
88+
if [ ! -z "$VERSION" ]; then
89+
git tag -f $VERSION
90+
git push -f origin $VERSION
91+
fi
92+
93+
cd flutter_sound_core
94+
git add .
95+
git commit -m "TAU : Version $VERSION"
96+
git pull origin
97+
git push origin
98+
if [ ! -z "$VERSION" ]; then
99+
git tag -f $VERSION
100+
git push -f origin $VERSION
101+
fi
102+
cd ..
103+
104+
cd flutter_sound_core
105+
pod trunk push flutter_sound_core.podspec
106+
if [ $? -ne 0 ]; then
107+
echo "Error"
108+
exit -1
109+
fi
110+
cd ..
111+
112+
#cd flutter_sound_core/android
113+
#./gradlew clean build bintrayUpload
114+
#if [ $? -ne 0 ]; then
115+
# echo "Error"
116+
# exit -1
117+
#fi
118+
#cd ../..
119+
120+
121+
git add .
122+
git commit -m "TAU : Version $VERSION"
123+
git pull origin
124+
git push origin
125+
if [ ! -z "$VERSION" ]; then
126+
git tag -f $VERSION
127+
git push -f origin $VERSION
128+
fi
129+
130+
cd flutter_sound_core
131+
git add .
132+
git commit -m "TAU : Version $VERSION"
133+
git pull origin
134+
git push origin
135+
if [ ! -z "$VERSION" ]; then
136+
git tag -f $VERSION
137+
git push -f origin $VERSION
138+
fi
139+
cd ..
140+
141+
cd flutter_sound_core/web
142+
npm publish .
143+
144+
cd ../..
145+
146+
147+
echo 'E.O.J'

bin/toto.sh renamed to bin/build2.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ fi
99
VERSION=$1
1010
VERSION_CODE=${VERSION#./}
1111
VERSION_CODE=${VERSION_CODE#+/}
12+
13+
14+
1215
cd flutter_sound
1316
#flutter clean
1417
#flutter pub get

bin/new-version.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ cd flutter_sound_platform_interface/
5353
flutter pub publish
5454
if [ $? -ne 0 ]; then
5555
echo "Error"
56-
//!!exit -1
56+
exit -1
5757
fi
5858
cd ..
5959

@@ -63,7 +63,7 @@ flutter pub get
6363
flutter pub publish
6464
if [ $? -ne 0 ]; then
6565
echo "Error"
66-
//!!exit -1
66+
exit -1
6767
fi
6868
cd ..
6969

@@ -105,7 +105,7 @@ cd flutter_sound_core
105105
pod trunk push flutter_sound_core.podspec
106106
if [ $? -ne 0 ]; then
107107
echo "Error"
108-
//!!exit -1
108+
exit -1
109109
fi
110110
cd ..
111111

0 commit comments

Comments
 (0)