#!/usr/bin/env bash
# info_ru: Конвертер в формат АВС_ERP_BIM_XML.
########################################################################
export WH_WINE_USE="wine-9.0.14-alt1-amd64"
export WINEPREFIX="abccenter"
export PROG_NAME="Конвертер в формат АВС_ERP_BIM_XML"
export PROG_ICON="abc-erp-bim"
export BASE_PFX="none"
export WH_WINDOWS_VER="10"
export WINEARCH="win64"
# export INSTALL_DLL=""

prepair_wine
AUTOINSTALL_EXE="${WH_TMP_DIR}/abc_erp_bim_converter.exe"

if try_download "https://abccenter.ru/wp-content/soft/abc_erp_bim_converter.exe" "${AUTOINSTALL_EXE}" ; then
    mkdir -p "$DRIVE_C/ABC-Soft/abc_erp_bim_converter"
    try_copy_file "${AUTOINSTALL_EXE}" "$DRIVE_C/ABC-Soft/abc_erp_bim_converter"

    try_remove_file "$AUTOINSTALL_EXE"

    WIN_FILE_EXEC="$DRIVE_C/ABC-Soft/abc_erp_bim_converter.exe"
    create_desktop "$PROG_NAME" "$WIN_FILE_EXEC" "$PROG_ICON"
fi
