added autoinstall:
t-flex-cad18-applications t-flex-cad18-resources t-flex-cad2d+18 t-flex-viewer18
This commit is contained in:
52
autoinstall/t-flex-cad18-applications
Normal file
52
autoinstall/t-flex-cad18-applications
Normal file
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env bash
|
||||
# info_ru: Приложения для T-FLEX CAD 18 (T-FLEX Анализ 18, T-FLEX Динамика 18, T-FLEX Детали машин 18, T-FLEX Раскрой 18, T-FLEX VR 18, T-FLEX Печатные платы 18)
|
||||
########################################################################
|
||||
export PROG_URL="https://www.tflexcad.ru"
|
||||
export PROG_NAME="Приложения для T-FLEX CAD 18"
|
||||
export PROG_ICON="tflexcad"
|
||||
export WH_WINDOWS_VER="10"
|
||||
export WH_WINE_USE="wine_wh_tflex_10-9_amd64"
|
||||
export BASE_PFX="tflex_pfx_x64_v03"
|
||||
export WINEARCH="win64"
|
||||
export WINEPREFIX="tflex"
|
||||
export WH_XDG_OPEN="log"
|
||||
export WH_USE_MESA_GL_OVERRIDE="1"
|
||||
|
||||
check_prefix_var
|
||||
if [[ ! -f "$WINEPREFIX/drive_c/Program Files/T-FLEX CAD 18/Program/TFlexCad.exe" ]]
|
||||
then fatal "Изначально установите T-FLEX CAD 18."
|
||||
fi
|
||||
|
||||
BASE_URL="https://www.tflex.ru/downloads/V18"
|
||||
FILES=(
|
||||
"T-FLEX Analysis 18.zip"
|
||||
"T-FLEX Dynamics 18.zip"
|
||||
"T-FLEX Machinery 18.zip"
|
||||
"T-FLEX Nesting 18.zip"
|
||||
"T-FLEX VR 18.zip"
|
||||
"T-FLEX Circuits 18.zip"
|
||||
)
|
||||
UNPACK_APP="${WH_TMP_DIR}/unpack_applications"
|
||||
|
||||
prepair_wine
|
||||
|
||||
# Скачивание всех файлов
|
||||
for file_name in "${FILES[@]}" ; do
|
||||
local output="${WH_TMP_DIR}/${file_name// /_}"
|
||||
|
||||
if try_download "$BASE_URL/$file_name" "$output" ; then
|
||||
unpack "$output" "${UNPACK_APP}"
|
||||
fi
|
||||
try_remove_file "$output"
|
||||
done
|
||||
|
||||
# Установка .msi файлов
|
||||
for msi_file in "${UNPACK_APP}"/*/*.msi ; do
|
||||
if [[ -f "$msi_file" ]] ; then
|
||||
wine_run_install "$msi_file" /q
|
||||
else
|
||||
fatal "Нет .msi файлов для установки в ${UNPACK_APP}/*."
|
||||
fi
|
||||
done
|
||||
|
||||
try_remove_dir "${UNPACK_APP}"
|
Reference in New Issue
Block a user