Skip to content

Commit

Permalink
Display version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankFlitton committed Dec 12, 2020
1 parent 232898c commit acfcd7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions build-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ vercomp() {

# Display update prompt

UPDATE_PROMPT="🎉🦋 A new version of Flutter For Web Build Script is availible!\nVisit https://github.com/FrankFlitton/Flutter-for-web-deploy-script to update."
NO_UPDATE_PROMPT="👍 You are on the latest version of Flutter For Web Build Script. \n Beginning build now..."
UPDATE_PROMPT="🎉🦋 A new version of Flutter For Web Build Script is availible!
\nInstalled: $CURRENT_VERSION. Current: $REMOTE_VERSION.
\nVisit https://github.com/FrankFlitton/Flutter-for-web-deploy-script to update.\n"
NO_UPDATE_PROMPT="👍 You are on the latest version of Flutter For Web Build Script. \n Beginning build now...\n"
vercomp $CURRENT_VERSION $REMOTE_VERSION && echo $NO_UPDATE_PROMPT || echo $UPDATE_PROMPT

# Begin to build the app for prod
Expand Down
6 changes: 4 additions & 2 deletions example_app/build-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ vercomp() {

# Display update prompt

UPDATE_PROMPT="🎉🦋 A new version of Flutter For Web Build Script is availible!\nVisit https://github.com/FrankFlitton/Flutter-for-web-deploy-script to update."
NO_UPDATE_PROMPT="👍 You are on the latest version of Flutter For Web Build Script. \n Beginning build now..."
UPDATE_PROMPT="🎉🦋 A new version of Flutter For Web Build Script is availible!
\nInstalled: $CURRENT_VERSION. Current: $REMOTE_VERSION.
\nVisit https://github.com/FrankFlitton/Flutter-for-web-deploy-script to update.\n"
NO_UPDATE_PROMPT="👍 You are on the latest version of Flutter For Web Build Script. \n Beginning build now...\n"
vercomp $CURRENT_VERSION $REMOTE_VERSION && echo $NO_UPDATE_PROMPT || echo $UPDATE_PROMPT

# Begin to build the app for prod
Expand Down

0 comments on commit acfcd7b

Please sign in to comment.