-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
153 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters