diff --git a/scripts/easy-docker/config/apps.tsv b/scripts/easy-docker/config/apps.tsv index bbce0ae4..3ed9591c 100644 --- a/scripts/easy-docker/config/apps.tsv +++ b/scripts/easy-docker/config/apps.tsv @@ -1,7 +1,7 @@ # id label repo default_branch branches_csv -erpnext ERPNext https://github.com/frappe/erpnext develop version-15,version-16,develop -crm CRM https://github.com/frappe/crm develop develop,version-16,version-15 +erpnext ERPNext https://github.com/frappe/erpnext develop develop,version-15,version-16 +crm CRM https://github.com/frappe/crm develop develop,main hrms HRMS https://github.com/frappe/hrms develop develop,version-16,version-15 -lms LMS https://github.com/frappe/lms develop develop,version-16,version-15 -helpdesk Helpdesk https://github.com/frappe/helpdesk develop develop,version-16,version-15 -drive Drive https://github.com/frappe/drive develop develop,version-16,version-15 +lms LMS https://github.com/frappe/lms develop develop,main +helpdesk Helpdesk https://github.com/frappe/helpdesk develop develop,main +drive Drive https://github.com/frappe/drive develop develop diff --git a/scripts/easy-docker/lib/app/wizard/common/apps.sh b/scripts/easy-docker/lib/app/wizard/common/apps.sh index b9ecd802..7c23a198 100755 --- a/scripts/easy-docker/lib/app/wizard/common/apps.sh +++ b/scripts/easy-docker/lib/app/wizard/common/apps.sh @@ -689,6 +689,7 @@ build_stack_apps_json_content_from_metadata_apps() { local custom_apps_lines="" local predefined_branch="" local preset_branch="" + local catalog_default_branch="" local app="" local line="" local repo="" @@ -721,8 +722,14 @@ build_stack_apps_json_content_from_metadata_apps() { fi predefined_branch="$(get_metadata_apps_predefined_branch_for_id "${metadata_path}" "${app}" || true)" + if [ -z "${predefined_branch}" ]; then - predefined_branch="${preset_branch}" + catalog_default_branch="$(get_predefined_app_default_branch_by_id "${app}" || true)" + if [ -n "${catalog_default_branch}" ]; then + predefined_branch="${catalog_default_branch}" + else + predefined_branch="${preset_branch}" + fi fi escaped_url="$(json_escape_string "${url}")" diff --git a/scripts/easy-docker/lib/app/wizard/env/apps.sh b/scripts/easy-docker/lib/app/wizard/env/apps.sh index dc6a1ef8..6b2d1939 100755 --- a/scripts/easy-docker/lib/app/wizard/env/apps.sh +++ b/scripts/easy-docker/lib/app/wizard/env/apps.sh @@ -174,7 +174,6 @@ choose_predefined_app_branch() { local status_text="" local selection="" local default_hint="" - local preferred_found=0 local -a branch_options=() if ! get_predefined_app_branch_lines_by_id branches_lines "${app_id}"; then @@ -186,20 +185,11 @@ choose_predefined_app_branch() { if [ -z "${branch}" ]; then continue fi - if [ "${branch}" = "${preferred_branch}" ]; then - branch_options=("${branch}" "${branch_options[@]}") - preferred_found=1 - else - branch_options+=("${branch}") - fi + branch_options+=("${branch}") done <