diff --git a/BuildTrio.sh b/BuildTrio.sh index ac95e99..6e0b068 100755 --- a/BuildTrio.sh +++ b/BuildTrio.sh @@ -828,6 +828,26 @@ function select_special_branch() { branch_select ${URL_THIS_SCRIPT} ${special_branch_name} ${app_name}_${special_branch_name} } +function special_message_0.2_to_0.7() { + echo -e "" + echo -e "For those who were running versions of Trio starting with 0.2," + echo -e " when you build main, you will advance to version 0.7:" + echo -e " As part of this, you will go through an onboarding step" + echo -e " ${INFO_FONT} STOP NOW${NC}" + echo -e "Read this information first, then come back and build" + echo -e " https://triodocs.org/configuration/migration/trio-02x-migration/" +} + +function special_message_howto_build_feature_branch() { + echo -e "" + echo -e "For those who want to build a special feature branch, you must use" + echo -e " the BuildTrio script and indicate the desired branch." + echo -e "${INFO_FONT}Make sure you join Discord; and before you build, " + echo -e " read about the new pump or cgm being tested in that feature branch${NC}" + echo -e "Read this section of LoopDocs and just use BuildTrio instead of BuildLoop." + echo -e " https://loopkit.github.io/loopdocs/build/build-dev-mac/#build-other-branches" +} + if [ -z "$CUSTOM_BRANCH" ]; then while [ -z "$BRANCH" ]; do section_separator @@ -838,23 +858,21 @@ if [ -z "$CUSTOM_BRANCH" ]; then echo -e " Discord : ${URL_FOR_DISCORD}" echo -e " Documentation : ${URL_FOR_DOCS}" echo -e "" - echo -e " ${INFO_FONT}Trio dev is recommended${NC}" - echo -e " ${INFO_FONT}* Check the settings screen frequently${NC}" - echo -e " ${INFO_FONT}* Download/rebuild when latest dev is at a higher version${NC}" - echo -e "" - echo -e " If you insist on building Trio main, you can no longer use this script." - echo -e " Ask a mentor for help." + echo -e " ${INFO_FONT}Option 1: Trio main is recommended${NC}" + echo -e " ${INFO_FONT}Join Discord before using dev or building a feature branch${NC}" + special_message_0.2_to_0.7 + special_message_howto_build_feature_branch echo -e "" echo -e "Before you continue, please ensure" echo -e " you have Xcode and Xcode command line tools installed\n" options=(\ - #"${app_name} main" \ + "${app_name} main" \ "${app_name} dev" \ # "${app_name} ${special_branch_name}" \ "$(exit_or_return_menu)") actions=(\ - #"select_main" \ + "select_main" \ "select_dev" \ # "select_special_branch" \ "exit_script") diff --git a/src/BuildTrio.sh b/src/BuildTrio.sh index 841eab0..7504ea9 100644 --- a/src/BuildTrio.sh +++ b/src/BuildTrio.sh @@ -58,6 +58,26 @@ function select_special_branch() { branch_select ${URL_THIS_SCRIPT} ${special_branch_name} ${app_name}_${special_branch_name} } +function special_message_0.2_to_0.7() { + echo -e "" + echo -e "For those who were running versions of Trio starting with 0.2," + echo -e " when you build main, you will advance to version 0.7:" + echo -e " As part of this, you will go through an onboarding step" + echo -e " ${INFO_FONT} STOP NOW${NC}" + echo -e "Read this information first, then come back and build" + echo -e " https://triodocs.org/configuration/migration/trio-02x-migration/" +} + +function special_message_howto_build_feature_branch() { + echo -e "" + echo -e "For those who want to build a special feature branch, you must use" + echo -e " the BuildTrio script and indicate the desired branch." + echo -e "${INFO_FONT}Make sure you join Discord; and before you build, " + echo -e " read about the new pump or cgm being tested in that feature branch${NC}" + echo -e "Read this section of LoopDocs and just use BuildTrio instead of BuildLoop." + echo -e " https://loopkit.github.io/loopdocs/build/build-dev-mac/#build-other-branches" +} + if [ -z "$CUSTOM_BRANCH" ]; then while [ -z "$BRANCH" ]; do section_separator @@ -68,23 +88,21 @@ if [ -z "$CUSTOM_BRANCH" ]; then echo -e " Discord : ${URL_FOR_DISCORD}" echo -e " Documentation : ${URL_FOR_DOCS}" echo -e "" - echo -e " ${INFO_FONT}Trio dev is recommended${NC}" - echo -e " ${INFO_FONT}* Check the settings screen frequently${NC}" - echo -e " ${INFO_FONT}* Download/rebuild when latest dev is at a higher version${NC}" - echo -e "" - echo -e " If you insist on building Trio main, you can no longer use this script." - echo -e " Ask a mentor for help." + echo -e " ${INFO_FONT}Option 1: Trio main is recommended${NC}" + echo -e " ${INFO_FONT}Join Discord before using dev or building a feature branch${NC}" + special_message_0.2_to_0.7 + special_message_howto_build_feature_branch echo -e "" echo -e "Before you continue, please ensure" echo -e " you have Xcode and Xcode command line tools installed\n" options=(\ - #"${app_name} main" \ + "${app_name} main" \ "${app_name} dev" \ # "${app_name} ${special_branch_name}" \ "$(exit_or_return_menu)") actions=(\ - #"select_main" \ + "select_main" \ "select_dev" \ # "select_special_branch" \ "exit_script")