hotfix abc programs

This commit is contained in:
Sergey Palcheh
2025-06-26 17:28:52 +06:00
parent 206e6f5467
commit b257dbaa7e
9 changed files with 33 additions and 103 deletions

View File

@ -2,7 +2,7 @@
# info_ru: Программный комплекс АВС-Рекомпозитор.
########################################################################
export WH_WINE_USE="wine-9.0.14-alt1-amd64"
export WINEPREFIX="abc"
export WINEPREFIX="abccenter"
export PROG_NAME="АВС Рекомпозитор"
export PROG_ICON="abc-recomposerwl"
export BASE_PFX="none"
@ -11,17 +11,10 @@ export WINEARCH="win64"
# export INSTALL_DLL=""
prepair_wine
ABC_FILE="${WH_TMP_DIR}/abcrecomposer.html"
curl -o "$ABC_FILE" -A "Mozilla/5.0 (compatible; Konqueror/2.1.1; X11)" "https://abccenter.ru/download-ru/"
if [[ ! -f "$ABC_FILE" ]] \
|| grep -q "Forbidden" "$ABC_FILE"
then
fatal "Страница сайта не доступна, или превышено количество запросов к странице."
fi
VERDATE=$(grep -oP 'abcrecomposer_\K\d+[._]\d+[._]\d+-\d+-\d+' "$ABC_FILE")
VERSION=$(grep -oP 'abcrecomposer_\K\d+[._]\d+' "$ABC_FILE" | sed -E 's/[._]/./g')
# Возможны точки либо нижнее подчеркивание в URL-адресе
try_get_page "https://abccenter.ru/download-ru/"
VERDATE=$(read_page | grep -oP 'abcrecomposer_\K\d+[._]\d+[._]\d+-\d+-\d+')
VERSION=$(read_page | grep -oP 'abcrecomposer_\K\d+[._]\d+' | sed -E 's/[._]/./g')
AUTOINSTALL_EXE="${WH_TMP_DIR}/Setup_ABC-RU_${VERDATE}.exe"
if try_download "https://abccenter.ru/wp-content/soft/abcrecomposer_${VERDATE}.exe" "${AUTOINSTALL_EXE}" ; then