-
Notifications
You must be signed in to change notification settings - Fork 1
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
8 changed files
with
184 additions
and
102 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#run in root like this: ./terminalCommands/1_dry_run_release.sh | ||
|
||
cd terminalCommands | ||
|
||
versionRaw=$(flutter pub add atreeon_datagrid_responsive --dry-run) | ||
versionPub=$(echo "$versionRaw" | grep -o '+ atreeon_datagrid_responsive [0-9.]*' | awk '{print $3}') | ||
versionLocal=$(grep 'version:' "../pubspec.yaml" | awk '{print $2}') | ||
|
||
cd ../ | ||
|
||
echo "Ready to upload atreeon_datagrid_responsive version $versionLocal updating $versionPub" | ||
|
||
read -p "Is this correct? (y/n): " choice | ||
|
||
if [ "$choice" = "y" ]; then | ||
clear | ||
echo "Continuing..." | ||
else | ||
exit 0 | ||
fi | ||
|
||
flutter pub get | ||
flutter pub run test | ||
|
||
read -p "Did the tests pass? (y/n): " choice | ||
if [ "$choice" = "y" ]; then | ||
clear | ||
echo "Continuing..." | ||
else | ||
exit 0 | ||
fi | ||
|
||
flutter pub publish --dry-run | ||
|
||
read -p "Ready? (y/n): " choice | ||
if [ "$choice" = "y" ]; then | ||
clear | ||
echo "All ready to upload..." | ||
else | ||
exit 0 | ||
fi | ||
|
||
|
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,28 @@ | ||
#run in root like this: ./terminalCommands/2_release.sh | ||
|
||
echo blah | ||
|
||
#cd terminalCommands || exit | ||
#./1_dry_run_release.sh | ||
#cd ../ | ||
# | ||
#read -p "Do you want to publish atreeon_datagrid_responsive? (y/n): " choice | ||
#if [ "$choice" = "y" ]; then | ||
# clear | ||
# flutter pub publish | ||
#else | ||
# exit 0 | ||
#fi | ||
|
||
|
||
versionLocal=$(grep 'version:' "pubspec.yaml" | awk '{print $2}') | ||
|
||
read -p "Do you want to tag atreeon_datagrid_responsive as $versionLocal? (use 'i' to insert, 'esc' to finish editing, ':' for console, 'wq' to save (y/n): " choice | ||
if [ "$choice" = "y" ]; then | ||
clear | ||
git tag "$versionLocal" -a | ||
else | ||
exit 0 | ||
fi | ||
|
||
echo "now please commit and push" |
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
name: dummy | ||
|
||
environment: | ||
sdk: ">=2.17.0 <4.0.0" | ||
flutter: ">=3.0.0" | ||
|
||
dependencies: | ||
flutter: | ||
sdk: flutter |