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
43 additions
and
9 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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
flutter clean | ||
flutter pub get | ||
sh test.sh | ||
#!/bin/bash | ||
set -e | ||
|
||
sh test.sh --clean --pub_get --delete_conflicting_outputs | ||
|
||
echo 'Creating android bundle...' | ||
flutter build appbundle |
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
flutter clean | ||
flutter pub get | ||
sh test.sh | ||
#!/bin/bash | ||
set -e | ||
|
||
sh test.sh --clean --pub_get --delete_conflicting_outputs | ||
|
||
echo 'Building windows app...' | ||
flutter build windows | ||
|
||
echo 'Creating windows installer...' | ||
flutter pub run msix:create |
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 |
---|---|---|
@@ -1,4 +1,30 @@ | ||
flutter clean | ||
flutter pub get | ||
flutter pub run build_runner build --delete-conflicting-outputs | ||
#!/bin/bash | ||
set -e | ||
|
||
while [[ "$#" -gt 0 ]]; do | ||
case $1 in | ||
--clean) clean=1; ;; | ||
--pub_get) pub_get=1; ;; | ||
--delete_conflicting_outputs) delete_conflicting_outputs=1; ;; | ||
*) echo "Unknown parameter passed: $1"; exit 1 ;; | ||
esac | ||
shift | ||
done | ||
|
||
if [ "$clean" = 1 ]; then | ||
echo 'Cleaning project...' | ||
flutter clean | ||
fi | ||
|
||
if [ "$pub_get" = 1 ]; then | ||
echo 'Retrieving packages...' | ||
flutter pub get | ||
fi | ||
|
||
if [ "$delete_conflicting_outputs" = 1 ]; then | ||
echo 'Deleting conflicting outputs...' | ||
flutter pub run build_runner build --delete-conflicting-outputs | ||
fi | ||
|
||
echo 'Running tests...' | ||
flutter test |