Stamina
Informations
Créateur | Messages |
---|---|
witalijbukatkin
|
InformationCet installateur a été accepté par l'équipe. InformationsPlate-formes : Retours d'expérience4 0 DescriptionStamina - a program for mastering the ten-finger set and the method of blind printing. Website. Stamina - это бесплатная программа для освоения метода слепой машинописи. Отличительной особенностью программы является поддержка альтернативного расположения пальцев на клавиатуре. Этот вариант я придумал для себя, чтобы меньше уставали кисти рук. Возможно вам он тоже подойдёт. Code source#!/bin/bash # # CHANGELOG # [WitalijBukatkin] (2020-05-09) # Initial writting. # [WitalijBukatkin] (2020-05-09) # Add phrases install. # [WitalijBukatkin] (2020-05-10) # Add shortcut category. # Fix charset encoding. # Set vwine version 4.0.3 # Decoding russian characters eg: # https://www.online-toolz.com/tools/text-unicode-entities-convertor.php [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Stamina" PREFIX="Stamina" function install_func { cd "$WINEPREFIX/drive_c" DOWNLOAD_URL_PREFIX="https://stamina.ru/files" POL_Download "$DOWNLOAD_URL_PREFIX/$1" POL_Wine_WaitBefore "$2" POL_Wine --ignore-errors "$1" POL_Wine_WaitExit "$2" rm "$2" } ################## # INIT # ################## POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$TITLE" "https://stamina.ru/keyboard_trainer" "WitalijBukatkin(t.me/wbkid)" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "4.0.4" POL_Call POL_Install_mfc42 install_func "StaminaSetup.exe" "$PREFIX" POL_Shortcut "Stamina.exe" "$TITLE" "" "" "Education;" ################## # PHRASES # ################## if [[ $LANG =~ "ru_RU" ]]; then TITLE_PHRASES_ADDONS=`echo -e $PREFIX' \u0424\u0440\u0430\u0437\u044B'` NAME_PHRASES_ADDONS=`echo -e '\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0440\u0430\u0437\u044B \u0434\u043B\u044F \u0434\u0440\u0443\u0433\u0438\u0445 \u044F\u0437\u044B\u043A\u043E\u0432 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u0413\u043E\u0442\u043E\u0432\u043E'` CONTINUE_PHRASES_ADDONS=`echo -e '\u0413\u043E\u0442\u043E\u0432\u043E'` else TITLE_PHRASES_ADDONS="$PREFIX Phrases" NAME_PHRASES_ADDONS="Select phrases for other languages or continue" CONTINUE_PHRASES_ADDONS="Done" fi LIST_PHRASES_ADDONS="$CONTINUE_PHRASES_ADDONS|Bulgarian BG|Czech CZ|Danish DA|Dutch NL|English(censored) EN|Finnish FI|French FR|German DE|Italian IT|Lithuanian LT|Norwegian NO|Polish PL|Romanian RO|Slovak SK|Slovenian SI|Spanish SP|Swedish SE" while [[ $APP_ANSWER != $CONTINUE_PHRASES_ADDONS ]]; do if [[ $APP_ANSWER != "" ]]; then FILE=Phrases_`echo "$APP_ANSWER" | sed -r 's/.+ //'`.exe install_func "$FILE" "$APP_ANSWER" fi POL_SetupWindow_menu "$NAME_PHRASES_ADDONS" "$TITLE_PHRASES_ADDONS" "$LIST_PHRASES_ADDONS" "|" done ################## # HELP UA # ################## if [[ $LANG =~ "ua_UA" ]]; then POL_SetupWindow_question "`echo -e '\u0425\u043E\u0442\u0438\u0442\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\3A \u0424\u0430\u0439\u043B \u043F\u043E\u043C\u043E\u0449\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 2.3 \u043D\u0430 \u0443\u043A\u0440\u0430\u0438\u043D\u0441\u043A\u043E\u043C \u044F\u0437\u044B\u043A\u0435 \28\u0437\u0430\u043C\u0435\u0449\u0430\u0435\u0442 \u0440\u0443\u0441\u0441\u043A\u0438\u0439 \u0445\u0435\u043B\u043F\29\3F'` `echo -e '\u0424\u0430\u0439\u043B \u043F\u043E\u043C\u043E\u0449\u0438'`" if [[ $APP_ANSWER == "TRUE" ]]; then install_func "Patch_UA.exe" "$APP_ANSWER" fi fi ################## # END # ################## if [[ $LANG =~ "ru_RU" ]]; then POL_SetupWindow_message "`echo -e '\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u043D\u0435\u0435 \u0441 \u043E\u0444\u0438\u0446\u0438\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u0430\u0439\u0442\u0430: https://stamina.ru/keyboard_trainer/addons'`" "`echo -e '\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u0435'`" else POL_SetupWindow_message "The program has been successfully installed. You can install add-ons for her from the official site: https://stamina.ru/keyboard_trainer/addons" "Exiting" fi POL_SetupWindow_Close exit 0 |
Contributions
Filters:
ContribuerMembre | Messages |
witalijbukatkin | Dimanche 10 Mai 2020 à 10:42 |
witalijbukatkin
|
InformationCette mise à jour a été acceptée par l'équipe MessagesSet wine version 4.0.4 Differences@@ -4,7 +4,14 @@ # [WitalijBukatkin] (2020-05-09) # Initial writting. # [WitalijBukatkin] (2020-05-09) -# Added phrases install. +# Add phrases install. +# [WitalijBukatkin] (2020-05-10) +# Add shortcut category. +# Fix charset encoding. +# Set vwine version 4.0.3 + +# Decoding russian characters eg: +# https://www.online-toolz.com/tools/text-unicode-entities-convertor.php [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" @@ -36,22 +43,22 @@ POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" -POL_Wine_PrefixCreate "4.0" +POL_Wine_PrefixCreate "4.0.4" POL_Call POL_Install_mfc42 install_func "StaminaSetup.exe" "$PREFIX" -POL_Shortcut "Stamina.exe" "$TITLE" +POL_Shortcut "Stamina.exe" "$TITLE" "" "" "Education;" ################## # PHRASES # ################## if [[ $LANG =~ "ru_RU" ]]; then - TITLE_PHRASES_ADDONS="$PREFIX ?????" - NAME_PHRASES_ADDONS="???????? ????? ??? ?????? ?????? ??? ??????? ??????" - CONTINUE_PHRASES_ADDONS="??????" + TITLE_PHRASES_ADDONS=`echo -e $PREFIX' \u0424\u0440\u0430\u0437\u044B'` + NAME_PHRASES_ADDONS=`echo -e '\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0440\u0430\u0437\u044B \u0434\u043B\u044F \u0434\u0440\u0443\u0433\u0438\u0445 \u044F\u0437\u044B\u043A\u043E\u0432 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u0413\u043E\u0442\u043E\u0432\u043E'` + CONTINUE_PHRASES_ADDONS=`echo -e '\u0413\u043E\u0442\u043E\u0432\u043E'` else TITLE_PHRASES_ADDONS="$PREFIX Phrases" NAME_PHRASES_ADDONS="Select phrases for other languages or continue" @@ -60,10 +67,9 @@ LIST_PHRASES_ADDONS="$CONTINUE_PHRASES_ADDONS|Bulgarian BG|Czech CZ|Danish DA|Dutch NL|English(censored) EN|Finnish FI|French FR|German DE|Italian IT|Lithuanian LT|Norwegian NO|Polish PL|Romanian RO|Slovak SK|Slovenian SI|Spanish SP|Swedish SE" -while [[ $APP_ANSWER != "Done" && - $APP_ANSWER != "??????" ]]; do - - if [[ "$APP_ANSWER" != "" ]]; then +while [[ $APP_ANSWER != $CONTINUE_PHRASES_ADDONS ]]; do + + if [[ $APP_ANSWER != "" ]]; then FILE=Phrases_`echo "$APP_ANSWER" | sed -r 's/.+ //'`.exe install_func "$FILE" "$APP_ANSWER" @@ -77,27 +83,22 @@ ################## if [[ $LANG =~ "ua_UA" ]]; then - TITLE_PHRASES_ADDONS="$PREFIX ?????" - NAME_PHRASES_ADDONS="???????? ????? ??? ?????? ?????? ??? ??????? ??????" - CONTINUE_PHRASES_ADDONS="??????" - - POL_SetupWindow_question "?????? ??????????: ???? ?????? ?????? 2.3 ?? ?????????? ????? (???????? ??????? ????)?" "???? ??????" + POL_SetupWindow_question "`echo -e '\u0425\u043E\u0442\u0438\u0442\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\3A \u0424\u0430\u0439\u043B \u043F\u043E\u043C\u043E\u0449\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 2.3 \u043D\u0430 \u0443\u043A\u0440\u0430\u0438\u043D\u0441\u043A\u043E\u043C \u044F\u0437\u044B\u043A\u0435 \28\u0437\u0430\u043C\u0435\u0449\u0430\u0435\u0442 \u0440\u0443\u0441\u0441\u043A\u0438\u0439 \u0445\u0435\u043B\u043F\29\3F'` `echo -e '\u0424\u0430\u0439\u043B \u043F\u043E\u043C\u043E\u0449\u0438'`" - if [[ "$APP_ANSWER" == "TRUE" ]]; then + if [[ $APP_ANSWER == "TRUE" ]]; then install_func "Patch_UA.exe" "$APP_ANSWER" fi fi +################## +# END # +################## if [[ $LANG =~ "ru_RU" ]]; then - POL_SetupWindow_message "????????? ??????? ???????????. ?? ?????? ?????????? ?????????? ??? ??? ? ???????????? ?????: https://stamina.ru/keyboard_trainer/addons" "??????????" + POL_SetupWindow_message "`echo -e '\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u043D\u0435\u0435 \u0441 \u043E\u0444\u0438\u0446\u0438\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u0430\u0439\u0442\u0430: https://stamina.ru/keyboard_trainer/addons'`" "`echo -e '\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u0435'`" else POL_SetupWindow_message "The program has been successfully installed. You can install add-ons for her from the official site: https://stamina.ru/keyboard_trainer/addons" "Exiting" fi -################## -# END # -################## - POL_SetupWindow_Close -exit 0 \ No newline at end of file +exit 0 Nouveau code source#!/bin/bash # # CHANGELOG # [WitalijBukatkin] (2020-05-09) # Initial writting. # [WitalijBukatkin] (2020-05-09) # Add phrases install. # [WitalijBukatkin] (2020-05-10) # Add shortcut category. # Fix charset encoding. # Set vwine version 4.0.3 # Decoding russian characters eg: # https://www.online-toolz.com/tools/text-unicode-entities-convertor.php [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Stamina" PREFIX="Stamina" function install_func { cd "$WINEPREFIX/drive_c" DOWNLOAD_URL_PREFIX="https://stamina.ru/files" POL_Download "$DOWNLOAD_URL_PREFIX/$1" POL_Wine_WaitBefore "$2" POL_Wine --ignore-errors "$1" POL_Wine_WaitExit "$2" rm "$2" } ################## # INIT # ################## POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$TITLE" "https://stamina.ru/keyboard_trainer" "WitalijBukatkin(t.me/wbkid)" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "4.0.4" POL_Call POL_Install_mfc42 install_func "StaminaSetup.exe" "$PREFIX" POL_Shortcut "Stamina.exe" "$TITLE" "" "" "Education;" ################## # PHRASES # ################## if [[ $LANG =~ "ru_RU" ]]; then TITLE_PHRASES_ADDONS=`echo -e $PREFIX' \u0424\u0440\u0430\u0437\u044B'` NAME_PHRASES_ADDONS=`echo -e '\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0440\u0430\u0437\u044B \u0434\u043B\u044F \u0434\u0440\u0443\u0433\u0438\u0445 \u044F\u0437\u044B\u043A\u043E\u0432 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u0413\u043E\u0442\u043E\u0432\u043E'` CONTINUE_PHRASES_ADDONS=`echo -e '\u0413\u043E\u0442\u043E\u0432\u043E'` else TITLE_PHRASES_ADDONS="$PREFIX Phrases" NAME_PHRASES_ADDONS="Select phrases for other languages or continue" CONTINUE_PHRASES_ADDONS="Done" fi LIST_PHRASES_ADDONS="$CONTINUE_PHRASES_ADDONS|Bulgarian BG|Czech CZ|Danish DA|Dutch NL|English(censored) EN|Finnish FI|French FR|German DE|Italian IT|Lithuanian LT|Norwegian NO|Polish PL|Romanian RO|Slovak SK|Slovenian SI|Spanish SP|Swedish SE" while [[ $APP_ANSWER != $CONTINUE_PHRASES_ADDONS ]]; do if [[ $APP_ANSWER != "" ]]; then FILE=Phrases_`echo "$APP_ANSWER" | sed -r 's/.+ //'`.exe install_func "$FILE" "$APP_ANSWER" fi POL_SetupWindow_menu "$NAME_PHRASES_ADDONS" "$TITLE_PHRASES_ADDONS" "$LIST_PHRASES_ADDONS" "|" done ################## # HELP UA # ################## if [[ $LANG =~ "ua_UA" ]]; then POL_SetupWindow_question "`echo -e '\u0425\u043E\u0442\u0438\u0442\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\3A \u0424\u0430\u0439\u043B \u043F\u043E\u043C\u043E\u0449\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 2.3 \u043D\u0430 \u0443\u043A\u0440\u0430\u0438\u043D\u0441\u043A\u043E\u043C \u044F\u0437\u044B\u043A\u0435 \28\u0437\u0430\u043C\u0435\u0449\u0430\u0435\u0442 \u0440\u0443\u0441\u0441\u043A\u0438\u0439 \u0445\u0435\u043B\u043F\29\3F'` `echo -e '\u0424\u0430\u0439\u043B \u043F\u043E\u043C\u043E\u0449\u0438'`" if [[ $APP_ANSWER == "TRUE" ]]; then install_func "Patch_UA.exe" "$APP_ANSWER" fi fi ################## # END # ################## if [[ $LANG =~ "ru_RU" ]]; then POL_SetupWindow_message "`echo -e '\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u043D\u0435\u0435 \u0441 \u043E\u0444\u0438\u0446\u0438\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u0430\u0439\u0442\u0430: https://stamina.ru/keyboard_trainer/addons'`" "`echo -e '\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u0435'`" else POL_SetupWindow_message "The program has been successfully installed. You can install add-ons for her from the official site: https://stamina.ru/keyboard_trainer/addons" "Exiting" fi POL_SetupWindow_Close exit 0 RéponsesMardi 12 Mai 2020 à 0:13
Edité par witalijbukatkin |
witalijbukatkin | Dimanche 10 Mai 2020 à 9:27 |
witalijbukatkin
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. Messagesescaping utf-8 characters Differences@@ -4,7 +4,13 @@ # [WitalijBukatkin] (2020-05-09) # Initial writting. # [WitalijBukatkin] (2020-05-09) -# Added phrases install. +# Add phrases install. +# [WitalijBukatkin] (2020-05-10) +# Add shortcut category. +# Fix charset encoding. + +# Decoding russian characters eg: +# https://www.online-toolz.com/tools/text-unicode-entities-convertor.php [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" @@ -42,16 +48,16 @@ install_func "StaminaSetup.exe" "$PREFIX" -POL_Shortcut "Stamina.exe" "$TITLE" +POL_Shortcut "Stamina.exe" "$TITLE" "" "" "Education;" ################## # PHRASES # ################## if [[ $LANG =~ "ru_RU" ]]; then - TITLE_PHRASES_ADDONS="$PREFIX ?????" - NAME_PHRASES_ADDONS="???????? ????? ??? ?????? ?????? ??? ??????? ??????" - CONTINUE_PHRASES_ADDONS="??????" + TITLE_PHRASES_ADDONS=`echo -e $PREFIX' \u0424\u0440\u0430\u0437\u044B'` + NAME_PHRASES_ADDONS=`echo -e '\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0440\u0430\u0437\u044B \u0434\u043B\u044F \u0434\u0440\u0443\u0433\u0438\u0445 \u044F\u0437\u044B\u043A\u043E\u0432 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u0413\u043E\u0442\u043E\u0432\u043E'` + CONTINUE_PHRASES_ADDONS=`echo -e '\u0413\u043E\u0442\u043E\u0432\u043E'` else TITLE_PHRASES_ADDONS="$PREFIX Phrases" NAME_PHRASES_ADDONS="Select phrases for other languages or continue" @@ -60,10 +66,9 @@ LIST_PHRASES_ADDONS="$CONTINUE_PHRASES_ADDONS|Bulgarian BG|Czech CZ|Danish DA|Dutch NL|English(censored) EN|Finnish FI|French FR|German DE|Italian IT|Lithuanian LT|Norwegian NO|Polish PL|Romanian RO|Slovak SK|Slovenian SI|Spanish SP|Swedish SE" -while [[ $APP_ANSWER != "Done" && - $APP_ANSWER != "??????" ]]; do - - if [[ "$APP_ANSWER" != "" ]]; then +while [[ $APP_ANSWER != $CONTINUE_PHRASES_ADDONS ]]; do + + if [[ $APP_ANSWER != "" ]]; then FILE=Phrases_`echo "$APP_ANSWER" | sed -r 's/.+ //'`.exe install_func "$FILE" "$APP_ANSWER" @@ -77,27 +82,22 @@ ################## if [[ $LANG =~ "ua_UA" ]]; then - TITLE_PHRASES_ADDONS="$PREFIX ?????" - NAME_PHRASES_ADDONS="???????? ????? ??? ?????? ?????? ??? ??????? ??????" - CONTINUE_PHRASES_ADDONS="??????" - - POL_SetupWindow_question "?????? ??????????: ???? ?????? ?????? 2.3 ?? ?????????? ????? (???????? ??????? ????)?" "???? ??????" + POL_SetupWindow_question "`echo -e '\u0425\u043E\u0442\u0438\u0442\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\3A \u0424\u0430\u0439\u043B \u043F\u043E\u043C\u043E\u0449\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 2.3 \u043D\u0430 \u0443\u043A\u0440\u0430\u0438\u043D\u0441\u043A\u043E\u043C \u044F\u0437\u044B\u043A\u0435 \28\u0437\u0430\u043C\u0435\u0449\u0430\u0435\u0442 \u0440\u0443\u0441\u0441\u043A\u0438\u0439 \u0445\u0435\u043B\u043F\29\3F'` `echo -e '\u0424\u0430\u0439\u043B \u043F\u043E\u043C\u043E\u0449\u0438'`" - if [[ "$APP_ANSWER" == "TRUE" ]]; then + if [[ $APP_ANSWER == "TRUE" ]]; then install_func "Patch_UA.exe" "$APP_ANSWER" fi fi +################## +# END # +################## if [[ $LANG =~ "ru_RU" ]]; then - POL_SetupWindow_message "????????? ??????? ???????????. ?? ?????? ?????????? ?????????? ??? ??? ? ???????????? ?????: https://stamina.ru/keyboard_trainer/addons" "??????????" + POL_SetupWindow_message "`echo -e '\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u043D\u0435\u0435 \u0441 \u043E\u0444\u0438\u0446\u0438\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u0430\u0439\u0442\u0430: https://stamina.ru/keyboard_trainer/addons'`" "`echo -e '\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u0435'`" else POL_SetupWindow_message "The program has been successfully installed. You can install add-ons for her from the official site: https://stamina.ru/keyboard_trainer/addons" "Exiting" fi -################## -# END # -################## - POL_SetupWindow_Close exit 0 \ No newline at end of file Nouveau code source#!/bin/bash # # CHANGELOG # [WitalijBukatkin] (2020-05-09) # Initial writting. # [WitalijBukatkin] (2020-05-09) # Add phrases install. # [WitalijBukatkin] (2020-05-10) # Add shortcut category. # Fix charset encoding. # Decoding russian characters eg: # https://www.online-toolz.com/tools/text-unicode-entities-convertor.php [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Stamina" PREFIX="Stamina" function install_func { cd "$WINEPREFIX/drive_c" DOWNLOAD_URL_PREFIX="https://stamina.ru/files" POL_Download "$DOWNLOAD_URL_PREFIX/$1" POL_Wine_WaitBefore "$2" POL_Wine --ignore-errors "$1" POL_Wine_WaitExit "$2" rm "$2" } ################## # INIT # ################## POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$TITLE" "https://stamina.ru/keyboard_trainer" "WitalijBukatkin(t.me/wbkid)" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "4.0" POL_Call POL_Install_mfc42 install_func "StaminaSetup.exe" "$PREFIX" POL_Shortcut "Stamina.exe" "$TITLE" "" "" "Education;" ################## # PHRASES # ################## if [[ $LANG =~ "ru_RU" ]]; then TITLE_PHRASES_ADDONS=`echo -e $PREFIX' \u0424\u0440\u0430\u0437\u044B'` NAME_PHRASES_ADDONS=`echo -e '\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0440\u0430\u0437\u044B \u0434\u043B\u044F \u0434\u0440\u0443\u0433\u0438\u0445 \u044F\u0437\u044B\u043A\u043E\u0432 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u0413\u043E\u0442\u043E\u0432\u043E'` CONTINUE_PHRASES_ADDONS=`echo -e '\u0413\u043E\u0442\u043E\u0432\u043E'` else TITLE_PHRASES_ADDONS="$PREFIX Phrases" NAME_PHRASES_ADDONS="Select phrases for other languages or continue" CONTINUE_PHRASES_ADDONS="Done" fi LIST_PHRASES_ADDONS="$CONTINUE_PHRASES_ADDONS|Bulgarian BG|Czech CZ|Danish DA|Dutch NL|English(censored) EN|Finnish FI|French FR|German DE|Italian IT|Lithuanian LT|Norwegian NO|Polish PL|Romanian RO|Slovak SK|Slovenian SI|Spanish SP|Swedish SE" while [[ $APP_ANSWER != $CONTINUE_PHRASES_ADDONS ]]; do if [[ $APP_ANSWER != "" ]]; then FILE=Phrases_`echo "$APP_ANSWER" | sed -r 's/.+ //'`.exe install_func "$FILE" "$APP_ANSWER" fi POL_SetupWindow_menu "$NAME_PHRASES_ADDONS" "$TITLE_PHRASES_ADDONS" "$LIST_PHRASES_ADDONS" "|" done ################## # HELP UA # ################## if [[ $LANG =~ "ua_UA" ]]; then POL_SetupWindow_question "`echo -e '\u0425\u043E\u0442\u0438\u0442\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\3A \u0424\u0430\u0439\u043B \u043F\u043E\u043C\u043E\u0449\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 2.3 \u043D\u0430 \u0443\u043A\u0440\u0430\u0438\u043D\u0441\u043A\u043E\u043C \u044F\u0437\u044B\u043A\u0435 \28\u0437\u0430\u043C\u0435\u0449\u0430\u0435\u0442 \u0440\u0443\u0441\u0441\u043A\u0438\u0439 \u0445\u0435\u043B\u043F\29\3F'` `echo -e '\u0424\u0430\u0439\u043B \u043F\u043E\u043C\u043E\u0449\u0438'`" if [[ $APP_ANSWER == "TRUE" ]]; then install_func "Patch_UA.exe" "$APP_ANSWER" fi fi ################## # END # ################## if [[ $LANG =~ "ru_RU" ]]; then POL_SetupWindow_message "`echo -e '\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u043D\u0435\u0435 \u0441 \u043E\u0444\u0438\u0446\u0438\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u0430\u0439\u0442\u0430: https://stamina.ru/keyboard_trainer/addons'`" "`echo -e '\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u0435'`" else POL_SetupWindow_message "The program has been successfully installed. You can install add-ons for her from the official site: https://stamina.ru/keyboard_trainer/addons" "Exiting" fi POL_SetupWindow_Close exit 0 Réponses |
witalijbukatkin | Samedi 9 Mai 2020 à 18:27 |
witalijbukatkin
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. MessagesAdded seleting phrases install Differences@@ -0,0 +1,103 @@ +#!/bin/bash +# +# CHANGELOG +# [WitalijBukatkin] (2020-05-09) +# Initial writting. +# [WitalijBukatkin] (2020-05-09) +# Added phrases install. + +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +TITLE="Stamina" +PREFIX="Stamina" + +function install_func { + cd "$WINEPREFIX/drive_c" + + DOWNLOAD_URL_PREFIX="https://stamina.ru/files" + + POL_Download "$DOWNLOAD_URL_PREFIX/$1" + + POL_Wine_WaitBefore "$2" + POL_Wine --ignore-errors "$1" + POL_Wine_WaitExit "$2" + + rm "$2" +} + +################## +# INIT # +################## + +POL_SetupWindow_Init +POL_Debug_Init +POL_SetupWindow_presentation "$TITLE" "$TITLE" "https://stamina.ru/keyboard_trainer" "WitalijBukatkin(t.me/wbkid)" "$PREFIX" + +POL_Wine_SelectPrefix "$PREFIX" +POL_System_SetArch "x86" +POL_Wine_PrefixCreate "4.0" + +POL_Call POL_Install_mfc42 + +install_func "StaminaSetup.exe" "$PREFIX" + +POL_Shortcut "Stamina.exe" "$TITLE" + +################## +# PHRASES # +################## + +if [[ $LANG =~ "ru_RU" ]]; then + TITLE_PHRASES_ADDONS="$PREFIX ?????" + NAME_PHRASES_ADDONS="???????? ????? ??? ?????? ?????? ??? ??????? ??????" + CONTINUE_PHRASES_ADDONS="??????" +else + TITLE_PHRASES_ADDONS="$PREFIX Phrases" + NAME_PHRASES_ADDONS="Select phrases for other languages or continue" + CONTINUE_PHRASES_ADDONS="Done" +fi + +LIST_PHRASES_ADDONS="$CONTINUE_PHRASES_ADDONS|Bulgarian BG|Czech CZ|Danish DA|Dutch NL|English(censored) EN|Finnish FI|French FR|German DE|Italian IT|Lithuanian LT|Norwegian NO|Polish PL|Romanian RO|Slovak SK|Slovenian SI|Spanish SP|Swedish SE" + +while [[ $APP_ANSWER != "Done" && + $APP_ANSWER != "??????" ]]; do + + if [[ "$APP_ANSWER" != "" ]]; then + FILE=Phrases_`echo "$APP_ANSWER" | sed -r 's/.+ //'`.exe + + install_func "$FILE" "$APP_ANSWER" + fi + + POL_SetupWindow_menu "$NAME_PHRASES_ADDONS" "$TITLE_PHRASES_ADDONS" "$LIST_PHRASES_ADDONS" "|" +done + +################## +# HELP UA # +################## + +if [[ $LANG =~ "ua_UA" ]]; then + TITLE_PHRASES_ADDONS="$PREFIX ?????" + NAME_PHRASES_ADDONS="???????? ????? ??? ?????? ?????? ??? ??????? ??????" + CONTINUE_PHRASES_ADDONS="??????" + + POL_SetupWindow_question "?????? ??????????: ???? ?????? ?????? 2.3 ?? ?????????? ????? (???????? ??????? ????)?" "???? ??????" + + if [[ "$APP_ANSWER" == "TRUE" ]]; then + install_func "Patch_UA.exe" "$APP_ANSWER" + fi +fi + + +if [[ $LANG =~ "ru_RU" ]]; then + POL_SetupWindow_message "????????? ??????? ???????????. ?? ?????? ?????????? ?????????? ??? ??? ? ???????????? ?????: https://stamina.ru/keyboard_trainer/addons" "??????????" +else + POL_SetupWindow_message "The program has been successfully installed. You can install add-ons for her from the official site: https://stamina.ru/keyboard_trainer/addons" "Exiting" +fi + +################## +# END # +################## + +POL_SetupWindow_Close +exit 0 \ No newline at end of file Nouveau code source#!/bin/bash # # CHANGELOG # [WitalijBukatkin] (2020-05-09) # Initial writting. # [WitalijBukatkin] (2020-05-09) # Added phrases install. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Stamina" PREFIX="Stamina" function install_func { cd "$WINEPREFIX/drive_c" DOWNLOAD_URL_PREFIX="https://stamina.ru/files" POL_Download "$DOWNLOAD_URL_PREFIX/$1" POL_Wine_WaitBefore "$2" POL_Wine --ignore-errors "$1" POL_Wine_WaitExit "$2" rm "$2" } ################## # INIT # ################## POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$TITLE" "https://stamina.ru/keyboard_trainer" "WitalijBukatkin(t.me/wbkid)" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "4.0" POL_Call POL_Install_mfc42 install_func "StaminaSetup.exe" "$PREFIX" POL_Shortcut "Stamina.exe" "$TITLE" ################## # PHRASES # ################## if [[ $LANG =~ "ru_RU" ]]; then TITLE_PHRASES_ADDONS="$PREFIX ?????" NAME_PHRASES_ADDONS="???????? ????? ??? ?????? ?????? ??? ??????? ??????" CONTINUE_PHRASES_ADDONS="??????" else TITLE_PHRASES_ADDONS="$PREFIX Phrases" NAME_PHRASES_ADDONS="Select phrases for other languages or continue" CONTINUE_PHRASES_ADDONS="Done" fi LIST_PHRASES_ADDONS="$CONTINUE_PHRASES_ADDONS|Bulgarian BG|Czech CZ|Danish DA|Dutch NL|English(censored) EN|Finnish FI|French FR|German DE|Italian IT|Lithuanian LT|Norwegian NO|Polish PL|Romanian RO|Slovak SK|Slovenian SI|Spanish SP|Swedish SE" while [[ $APP_ANSWER != "Done" && $APP_ANSWER != "??????" ]]; do if [[ "$APP_ANSWER" != "" ]]; then FILE=Phrases_`echo "$APP_ANSWER" | sed -r 's/.+ //'`.exe install_func "$FILE" "$APP_ANSWER" fi POL_SetupWindow_menu "$NAME_PHRASES_ADDONS" "$TITLE_PHRASES_ADDONS" "$LIST_PHRASES_ADDONS" "|" done ################## # HELP UA # ################## if [[ $LANG =~ "ua_UA" ]]; then TITLE_PHRASES_ADDONS="$PREFIX ?????" NAME_PHRASES_ADDONS="???????? ????? ??? ?????? ?????? ??? ??????? ??????" CONTINUE_PHRASES_ADDONS="??????" POL_SetupWindow_question "?????? ??????????: ???? ?????? ?????? 2.3 ?? ?????????? ????? (???????? ??????? ????)?" "???? ??????" if [[ "$APP_ANSWER" == "TRUE" ]]; then install_func "Patch_UA.exe" "$APP_ANSWER" fi fi if [[ $LANG =~ "ru_RU" ]]; then POL_SetupWindow_message "????????? ??????? ???????????. ?? ?????? ?????????? ?????????? ??? ??? ? ???????????? ?????: https://stamina.ru/keyboard_trainer/addons" "??????????" else POL_SetupWindow_message "The program has been successfully installed. You can install add-ons for her from the official site: https://stamina.ru/keyboard_trainer/addons" "Exiting" fi ################## # END # ################## POL_SetupWindow_Close exit 0 RéponsesSamedi 9 Mai 2020 à 18:30
|
witalijbukatkin | Samedi 9 Mai 2020 à 14:50 |
witalijbukatkin
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. Differences@@ -0,0 +1,35 @@ +#!/bin/bash +# +# CHANGELOG +# [WitalijBukatkin] (2020-05-09) +# Initial writting. + +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +TITLE="Stamina" +PREFIX="Stamina" +FILE="StaminaSetup.exe" + +POL_SetupWindow_Init +POL_Debug_Init +POL_SetupWindow_presentation "$TITLE" "$TITLE" "https://stamina.ru/keyboard_trainer" "WitalijBukatkin(t.me/wbkid)" "$PREFIX" + +POL_Wine_SelectPrefix "$PREFIX" +POL_System_SetArch "x86" +POL_Wine_PrefixCreate "4.0" + +POL_Call POL_Install_mfc42 + +cd "$WINEPREFIX/drive_c" +POL_Download "https://stamina.ru/files/StaminaSetup.exe" + +POL_Wine_WaitBefore "$TITLE" +POL_Wine --ignore-errors "$FILE" +POL_Wine_WaitExit "$TITLE" + +rm StaminaSetup.exe + +POL_Shortcut "Stamina.exe" "$TITLE" +POL_SetupWindow_Close +exit 0 \ No newline at end of file Nouveau code source#!/bin/bash # # CHANGELOG # [WitalijBukatkin] (2020-05-09) # Initial writting. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Stamina" PREFIX="Stamina" FILE="StaminaSetup.exe" POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$TITLE" "https://stamina.ru/keyboard_trainer" "WitalijBukatkin(t.me/wbkid)" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "4.0" POL_Call POL_Install_mfc42 cd "$WINEPREFIX/drive_c" POL_Download "https://stamina.ru/files/StaminaSetup.exe" POL_Wine_WaitBefore "$TITLE" POL_Wine --ignore-errors "$FILE" POL_Wine_WaitExit "$TITLE" rm StaminaSetup.exe POL_Shortcut "Stamina.exe" "$TITLE" POL_SetupWindow_Close exit 0 Réponses |
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com