From 92a58fe28529ef0d16c3dc829d3feb75939f4793 Mon Sep 17 00:00:00 2001 From: evgeny Date: Sat, 31 Oct 2026 01:03:03 +0100 Subject: [PATCH] Speed up Windows installer compression --- tools/chatgui/installer/vibechat.iss | 4 +++- tools/chatgui/package_win.sh | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/chatgui/installer/vibechat.iss b/tools/chatgui/installer/vibechat.iss index 557b75071..a9608595b 100644 --- a/tools/chatgui/installer/vibechat.iss +++ b/tools/chatgui/installer/vibechat.iss @@ -20,7 +20,9 @@ ArchitecturesInstallIn64BitMode=x64compatible MinVersion=10.0 PrivilegesRequired=admin OutputBaseFilename=VibeChat-{#AppVersion}-win64-setup -Compression=lzma2 +; Умеренное сжатие и два параллельных блока ускоряют упаковку EXE/DLL. +Compression=lzma2/normal +LZMANumBlockThreads=2 SolidCompression=yes WizardStyle=modern UninstallDisplayIcon={app}\vibechat.exe diff --git a/tools/chatgui/package_win.sh b/tools/chatgui/package_win.sh index a4b196e18..9e899d613 100644 --- a/tools/chatgui/package_win.sh +++ b/tools/chatgui/package_win.sh @@ -166,10 +166,12 @@ if [[ "$HAS_FFMPEG" = 1 ]]; then fi echo "INFO: compiling VibeChat $APP_VERSION installer (Qt package: $QT_PACKAGE)" +COMPILE_STARTED=$SECONDS # MSYS2 не должен преобразовывать ключи /D и /O; пути передаём явно в Windows-формате. MSYS2_ARG_CONV_EXCL='*' "$ISCC" "/DAppVersion=$APP_VERSION" "/DPackageDir=$(cygpath -w "$PACKAGE_DIR")" \ "/O$(cygpath -w "$STAGE/output")" "$(cygpath -w "$SRC_DIR/installer/vibechat.iss")" INSTALLER_NAME="VibeChat-$APP_VERSION-win64-setup.exe" [[ -s "$STAGE/output/$INSTALLER_NAME" ]] || { echo "ERROR: compiler did not produce $INSTALLER_NAME" >&2; exit 1; } +echo "INFO: installer compilation completed: elapsed=$((SECONDS - COMPILE_STARTED))s" mv -f "$STAGE/output/$INSTALLER_NAME" "$BUILD_DIR/installer/$INSTALLER_NAME" echo "INFO: installer created: $BUILD_DIR/installer/$INSTALLER_NAME"