diff --git a/packaging/windows/BiLauncher.iss b/packaging/windows/BiLauncher.iss index 7e85901..4658fe2 100644 --- a/packaging/windows/BiLauncher.iss +++ b/packaging/windows/BiLauncher.iss @@ -1,11 +1,4 @@ -; Установщик BiLauncher для Windows (Inno Setup 6). - ; -; Собирается в CI после `cmake --install`: - ; iscc /DAppVersion=1.0.0 /DSourceDir=C:\...\stage /DOutputDir=C:\...\dist packaging\windows\BiLauncher.iss - ; SourceDir — префикс установки: bin\ с BiLauncher.exe и развёрнутым windeployqt Qt, - ; share\doc\BiLauncher\ с лицензиями. - -#ifndef AppVersion +#ifndef AppVersion #error Передайте версию: /DAppVersion=X.Y.Z #endif #ifndef SourceDir @@ -14,16 +7,14 @@ #ifndef OutputDir #define OutputDir "." #endif - ; VersionInfoVersion принимает только числа (X.Y.Z[.W]), поэтому у предрелиза - ; (1.0.1-rc1) суффикс отрезаем; полная версия идёт в текстовые поля. + #if Pos("-", AppVersion) > 0 #define NumericVersion Copy(AppVersion, 1, Pos("-", AppVersion) - 1) #else #define NumericVersion AppVersion #endif - [Setup] - ; AppId не менять между версиями — по нему обновление находит прежнюю установку. +[Setup] AppId={{6E0B5C1D-8F2A-4C7E-9B3D-2A1F4E5C7B90} AppName=BiLauncher AppVersion={#AppVersion} @@ -71,4 +62,4 @@ #ifexist SourceDir + "\bin\vc_redist.x64.exe" Filename: "{tmp}\vc_redist.x64.exe"; Parameters: "/install /quiet /norestart"; StatusMsg: "Установка Microsoft Visual C++ Runtime..."; Flags: waituntilterminated #endif - Filename: "{app}\bin\BiLauncher.exe"; Description: "{cm:LaunchProgram,BiLauncher}"; Flags: nowait postinstall skipifsilent \ No newline at end of file + Filename: "{app}\bin\BiLauncher.exe"; Description: "{cm:LaunchProgram,BiLauncher}"; Flags: nowait postinstall skipifsilent