install win cades if WH_USE_CPCSP_CADES=1

This commit is contained in:
Mikhail Tergoev
2025-12-22 14:23:31 +03:00
parent 659b0b1f5b
commit ce1fb05fc7

View File

@@ -144,6 +144,7 @@ check_variables WH_WINE_USE "wine_x_tkg_10-0_amd64" # or system
check_variables WH_USE_CPCSP_PROXY "0"
check_variables CPCSP_PROXY_X86_64_VER "0.6.1-alt1"
check_variables CPCSP_PROXY_WOW64_VER "0.7.7-alt1-wow64"
check_variables WH_USE_CPCSP_CADES "0"
check_variables WH_USE_EXTRA_FONTS "0"
check_variables EXTRA_FONTS_VER "01"
@@ -1292,6 +1293,7 @@ init_wineprefix () {
# настраиваем префикс для работы с cpcsp_proxy
if [[ $WH_USE_CPCSP_PROXY == "1" ]] ; then
if [[ $WH_USE_CPCSP_CADES == "1" ]] ; then
local cades_ver="release_2_0_14892"
local url_cades_dll="https://cryptopro.ru/sites/default/files/products/cades/$cades_ver"
@@ -1311,6 +1313,7 @@ init_wineprefix () {
print_info "Установка КриптоПро ЭЦП Runtime ($msi_cades64)"
WINEDLLOVERRIDES="msxml3=b" wine_run "$WH_TMP_DIR/$msi_cades64" /q
fi
fi
if ! grep -q "cpcsp_proxy.dll" "$WINEPREFIX/system.reg" ; then
print_info "Запускаем настройку cpcsp_proxy..."