Speed up Windows installer compression
This commit is contained in:
1 parent
2d92a003fc
commit
92a58fe285
2 files changed
+5
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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"
|
||||
Reference in new issue
Block a user