From 0eabf32a7c8b6ffad9e2935690a7aa3c7866264b Mon Sep 17 00:00:00 2001 From: tsoolgee <291792265+tsoolgee@users.noreply.github.com> Date: Tue, 17 Nov 2026 19:38:01 +0200 Subject: [PATCH] fix: compress the installer with zip so it installs about twice as fast Measured on windows-latest: almost all of the install time is spent unpacking TypesetOK.exe (168 MB). zip extracts it far faster than lzma2: fresh install 3.9 s instead of 6.5-8.7 s, build 16 s instead of ~60 s, at the cost of a 100 MB installer instead of 75 MB. Refs #37 --- scripts/installer.iss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/installer.iss b/scripts/installer.iss index 6b59532..0d90d7b 100644 --- a/scripts/installer.iss +++ b/scripts/installer.iss @@ -14,8 +14,11 @@ #define MyAppExeName "TypesetOK.exe" #define SourceDir "..\dist\TypesetOK-v" + MyAppVersion + "-windows-x64" +; zip extracts about twice as fast as lzma2; most of the install time is spent +; unpacking the 168 MB Electron executable. Pass /DCompressionLevel=lzma2 for a +; smaller (75 MB vs 100 MB) but slower installer. #ifndef CompressionLevel - #define CompressionLevel "lzma2" + #define CompressionLevel "zip" #endif [Setup]