fix: pass version to installer, silent update, launch after install

This commit is contained in:
edde746
2026-02-24 14:05:46 +01:00
parent 6af3a2974e
commit eea98e0cc9
2 changed files with 12 additions and 4 deletions
+10 -2
View File
@@ -405,8 +405,15 @@ jobs:
name: windows-arm64-build name: windows-arm64-build
path: build-arm64 path: build-arm64
- name: Read version from pubspec
id: version
shell: pwsh
run: |
$v = (Select-String -Path pubspec.yaml -Pattern '^version:\s*(\S+)').Matches[0].Groups[1].Value -replace '\+.*'
echo "version=$v" >> $env:GITHUB_OUTPUT
- name: Build installer and portables - name: Build installer and portables
run: .\windows\build-installer.ps1 -X64BuildDir "build-x64" -Arm64BuildDir "build-arm64" run: .\windows\build-installer.ps1 -X64BuildDir "build-x64" -Arm64BuildDir "build-arm64" -Version "${{ steps.version.outputs.version }}"
- name: Sign installer for WinSparkle (EdDSA) - name: Sign installer for WinSparkle (EdDSA)
if: env.SPARKLE_PRIVATE_KEY != '' if: env.SPARKLE_PRIVATE_KEY != ''
@@ -761,7 +768,8 @@ jobs:
<sparkle:os>windows</sparkle:os> <sparkle:os>windows</sparkle:os>
<enclosure url="https://github.com/edde746/plezy/releases/download/${VERSION}/plezy-windows-installer.exe" <enclosure url="https://github.com/edde746/plezy/releases/download/${VERSION}/plezy-windows-installer.exe"
length="${WIN_INSTALLER_SIZE}" type="application/octet-stream" length="${WIN_INSTALLER_SIZE}" type="application/octet-stream"
sparkle:edSignature="${WIN_ED_SIG}" /> sparkle:edSignature="${WIN_ED_SIG}"
sparkle:installerArguments="/SILENT /SP-" />
</item> </item>
XMLEOF XMLEOF
fi fi
+2 -2
View File
@@ -149,7 +149,7 @@ Name: "{group}\{cm:UninstallProgram,{#Name}}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\{#Name}"; Filename: "{app}\{#ExeName}"; Tasks: desktopicon Name: "{autodesktop}\{#Name}"; Filename: "{app}\{#ExeName}"; Tasks: desktopicon
[Run] [Run]
Filename: "{app}\{#ExeName}"; Description: "{cm:LaunchProgram,{#Name}}"; Flags: nowait postinstall skipifsilent Filename: "{app}\{#ExeName}"; Description: "{cm:LaunchProgram,{#Name}}"; Flags: nowait postinstall
[Code] [Code]
function IsX64: Boolean; function IsX64: Boolean;
@@ -205,7 +205,7 @@ Name: "{group}\{cm:UninstallProgram,{#Name}}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\{#Name}"; Filename: "{app}\{#ExeName}"; Tasks: desktopicon Name: "{autodesktop}\{#Name}"; Filename: "{app}\{#ExeName}"; Tasks: desktopicon
[Run] [Run]
Filename: "{app}\{#ExeName}"; Description: "{cm:LaunchProgram,{#Name}}"; Flags: nowait postinstall skipifsilent Filename: "{app}\{#ExeName}"; Description: "{cm:LaunchProgram,{#Name}}"; Flags: nowait postinstall
"@ "@
} }