diff --git a/packages/app-cli/tests/support/plugins/updatePlugins.sh b/packages/app-cli/tests/support/plugins/updatePlugins.sh index 5f9ffb58d..f048ae32b 100755 --- a/packages/app-cli/tests/support/plugins/updatePlugins.sh +++ b/packages/app-cli/tests/support/plugins/updatePlugins.sh @@ -1,23 +1,40 @@ #!/bin/bash SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -cd "$SCRIPT_DIR/jpl_test/" && yo joplin --update --skip-install --silent +update_plugin() { + echo "Updating $1..." + cd "$SCRIPT_DIR/$1" && yo joplin --update --skip-install --silent + echo "Done." +} + +update_plugin jpl_test sed -i /*.jpl/d .gitignore -cd "$SCRIPT_DIR/codemirror_content_script/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/content_script/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/dialog/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/editor_context_menu/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/events/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/json_export/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/menu/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/multi_selection/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/register_command/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/selected_text/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/settings/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/toc/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/withExternalModules/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/post_messages/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/nativeModule/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/external_assets/" && yo joplin --update --skip-install --silent -cd "$SCRIPT_DIR/user_data/" && yo joplin --update --skip-install --silent +PLUGINS_TO_UPDATE=( + "clipboard" + "codemirror6" + "codemirror_content_script" + "content_script" + "dialog" + "editor_context_menu" + "events" + "external_assets" + "imaging" + "json_export" + "load_css" + "menu" + "multi_selection" + "nativeModule" + "note_list_renderer" + "post_messages" + "register_command" + "selected_text" + "settings" + "toc" + "user_data" + "withExternalModules" +) + +for PLUGIN in ${PLUGINS_TO_UPDATE[@]}; do + update_plugin "$PLUGIN" +done \ No newline at end of file