diff --git a/image/animator.png b/image/animator.png new file mode 100644 index 0000000..a75813d Binary files /dev/null and b/image/animator.png differ diff --git a/image/ol.png b/image/ol.png new file mode 100644 index 0000000..48029db Binary files /dev/null and b/image/ol.png differ diff --git a/image/resmanagdb.png b/image/resmanagdb.png new file mode 100644 index 0000000..83e20d6 Binary files /dev/null and b/image/resmanagdb.png differ diff --git a/image/sdedit.png b/image/sdedit.png new file mode 100644 index 0000000..0243ca4 Binary files /dev/null and b/image/sdedit.png differ diff --git a/image/sexplore.png b/image/sexplore.png new file mode 100644 index 0000000..ec4931f Binary files /dev/null and b/image/sexplore.png differ diff --git a/image/simswitch.png b/image/simswitch.png new file mode 100644 index 0000000..74119ac Binary files /dev/null and b/image/simswitch.png differ diff --git a/image/swimitator.png b/image/swimitator.png new file mode 100644 index 0000000..50cd982 Binary files /dev/null and b/image/swimitator.png differ diff --git a/testinstall/swman-modus b/testinstall/swman-modus new file mode 100644 index 0000000..1288b03 --- /dev/null +++ b/testinstall/swman-modus @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +# info_ru: Программный комплекс для энергетики. +######################################################################## +export WH_WINE_USE="wine-9.0.14-alt1-amd64" +export WINEPREFIX="swmanmodus" +export BASE_PFX="none" +export WH_WINDOWS_VER="10" +export WINEARCH="win64" +# export INSTALL_DLL="" + +prepair_wine +# Ссылка для загрузки дистрибутива меняется в зависимости от версии +AUTOINSTALL_EXE="${WH_TMP_DIR}/modus710.msi" +DRIVE_C_MODUS="$DRIVE_C/Program Files (x86)/Modus 7.10/bin" + +if try_download "https://www.swman.ru/download/710/modus710.msi" "${AUTOINSTALL_EXE}" ; then + wine_run_install "${AUTOINSTALL_EXE}" /q + try_remove_file "$AUTOINSTALL_EXE" + + declare -a PROG_NAME=("Аниматор" "Диспетчер" "Графический Редактор" "Имитатор АРМ" "Просмотрщик" "Просмот Результатов" "Тренажер") + + declare -a PROG_ICON=("animator" "ol" "sdedit" "swimitator" "sexplore" "resmanagdb" "simswitch") + + declare -a WIN_FILE_EXEC=("${DRIVE_C_MODUS}/Animator.exe" "${DRIVE_C_MODUS}/OL.exe" "${DRIVE_C_MODUS}/Sdedit32.exe" "${DRIVE_C_MODUS}/SwImitator.exe" "${DRIVE_C_MODUS}/SExplore.exe" "${DRIVE_C_MODUS}/ResManagDB.exe" "${DRIVE_C_MODUS}/SimSwitch.exe") + + for i in "${!PROG_NAME[@]}"; do + create_desktop "${PROG_NAME[i]}" "${WIN_FILE_EXEC[i]}" "${PROG_ICON[i]}" + done +fi