Skip to content

Commit

Permalink
TAU : Version 9.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Larpoux committed Feb 17, 2022
1 parent dba109c commit 6060afe
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 3 deletions.
147 changes: 147 additions & 0 deletions bin/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
#!/bin/bash
if [ -z "$1" ]; then
echo "Correct usage is $0 <Version> "
exit -1
fi



VERSION=$1
VERSION_CODE=${VERSION#./}
VERSION_CODE=${VERSION_CODE#+/}

bin/setver.sh $VERSION
bin/reldev.sh REL
bin/web.sh

cd flutter_sound
dart analyze lib
if [ $? -ne 0 ]; then
echo "Error"
#exit -1
fi
dart format lib
if [ $? -ne 0 ]; then
echo "Error"
#exit -1
fi

cd ..

#cp -a -v flutter_sound_web/js/flutter_sound/* flutter_sound/example/web/js/flutter_sound

#rm flutter_sound/Logotype\ primary.png
#ln -s ../doc/flutter_sound/Logotype\ primary.png flutter_sound/
#rm -rf flutter_sound_web/js
#if [ -d flutter_sound_core/web/js ]; then
#rm -rf flutter_sound_web/js
#cp -a -v flutter_sound_core/web/js flutter_sound_web

##rm -rf flutter_sound/example/web/js
#cp -a -v flutter_sound_core/web/js flutter_sound/example/web
rm -rf _*.tgz

#ln -s ../flutter_sound_core/web/js flutter_sound_web/js
#else
# ln -s ../tau_sound_core/web/js flutter_sound_web/js
#fi


cd flutter_sound_platform_interface/
#flutter clean
#flutter pub get
flutter pub publish
if [ $? -ne 0 ]; then
echo "Error"
exit -1
fi
cd ..

cd flutter_sound_web
flutter clean
flutter pub get
flutter pub publish
if [ $? -ne 0 ]; then
echo "Error"
exit -1
fi
cd ..



cd flutter_sound
dart format lib
dart format example/lib
dart analyze lib
if [ $? -ne 0 ]; then
echo "Error"
#exit -1
fi
cd ..



git add .
git commit -m "TAU : Version $VERSION"
git pull origin
git push origin
if [ ! -z "$VERSION" ]; then
git tag -f $VERSION
git push -f origin $VERSION
fi

cd flutter_sound_core
git add .
git commit -m "TAU : Version $VERSION"
git pull origin
git push origin
if [ ! -z "$VERSION" ]; then
git tag -f $VERSION
git push -f origin $VERSION
fi
cd ..

cd flutter_sound_core
pod trunk push flutter_sound_core.podspec
if [ $? -ne 0 ]; then
echo "Error"
exit -1
fi
cd ..

#cd flutter_sound_core/android
#./gradlew clean build bintrayUpload
#if [ $? -ne 0 ]; then
# echo "Error"
# exit -1
#fi
#cd ../..


git add .
git commit -m "TAU : Version $VERSION"
git pull origin
git push origin
if [ ! -z "$VERSION" ]; then
git tag -f $VERSION
git push -f origin $VERSION
fi

cd flutter_sound_core
git add .
git commit -m "TAU : Version $VERSION"
git pull origin
git push origin
if [ ! -z "$VERSION" ]; then
git tag -f $VERSION
git push -f origin $VERSION
fi
cd ..

cd flutter_sound_core/web
npm publish .

cd ../..


echo 'E.O.J'
3 changes: 3 additions & 0 deletions bin/toto.sh → bin/build2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ fi
VERSION=$1
VERSION_CODE=${VERSION#./}
VERSION_CODE=${VERSION_CODE#+/}



cd flutter_sound
#flutter clean
#flutter pub get
Expand Down
6 changes: 3 additions & 3 deletions bin/new-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ cd flutter_sound_platform_interface/
flutter pub publish
if [ $? -ne 0 ]; then
echo "Error"
//!!exit -1
exit -1
fi
cd ..

Expand All @@ -63,7 +63,7 @@ flutter pub get
flutter pub publish
if [ $? -ne 0 ]; then
echo "Error"
//!!exit -1
exit -1
fi
cd ..

Expand Down Expand Up @@ -105,7 +105,7 @@ cd flutter_sound_core
pod trunk push flutter_sound_core.podspec
if [ $? -ne 0 ]; then
echo "Error"
//!!exit -1
exit -1
fi
cd ..

Expand Down

0 comments on commit 6060afe

Please sign in to comment.