t-flex-cad17: used only one settings file and fixed open log

This commit is contained in:
Mikhail Tergoev
2025-06-19 16:22:06 +03:00
parent dac6ec13dc
commit fc7374fb54
11 changed files with 166 additions and 235 deletions

View File

@ -6,6 +6,12 @@ export WH_WINE_USE="wine_x_tkg_10-0_amd64"
export BASE_PFX="tflex17_pfx_x64_v01"
export WINEARCH="win64"
export WINEPREFIX="tflex17"
export WH_XDG_OPEN="log"
check_prefix_var
if [[ ! -f "$WINEPREFIX/drive_c/Program Files/T-FLEX CAD 17/Program/TFlexCad.exe" ]]
then fatal "Изначально установите T-FLEX CAD 17."
fi
BASE_URL="https://www.tflex.ru/downloads"
FILES=(
@ -26,7 +32,6 @@ prepair_wine
for file_name in "${FILES[@]}" ; do
local output="${WH_TMP_DIR}/${file_name// /_}"
print_info "Скачивание $file_name..."
if try_download "$BASE_URL/$file_name" "$output" ; then
unpack "$output" "${UNPACK_APP}"
fi
@ -36,7 +41,6 @@ done
# Установка .msi файлов
for msi_file in "${UNPACK_APP}"/*/*.msi ; do
if [[ -f "$msi_file" ]] ; then
print_info "Установка $msi_file ..."
wine_run_install "$msi_file" /q
else
fatal "Нет .msi файлов для установки в ${UNPACK_APP}/*."