Skip to content

Commit 6e9ea2b

Browse files
mojtabakarimiclaude
andcommitted
Fix release: re-upload signed installer to replace unsigned one
The tauri-action uploads the unsigned exe first. After Authenticode signing, re-upload the signed exe with --clobber to replace it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cab660d commit 6e9ea2b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,20 @@ jobs:
185185
timestamp-rfc3161: http://timestamp.acs.microsoft.com
186186
timestamp-digest: SHA256
187187

188+
- name: Re-upload signed system installer
189+
if: matrix.target == 'windows-system'
190+
shell: pwsh
191+
env:
192+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
193+
run: |
194+
$VERSION = "${{ needs.create-release.outputs.version }}"
195+
$NSIS_DIR = "target/release/bundle/nsis"
196+
$EXE = Get-ChildItem "$NSIS_DIR/*-setup.exe" | Select-Object -First 1
197+
if ($EXE) {
198+
Write-Host "Re-uploading signed installer: $($EXE.Name)"
199+
gh release upload $VERSION "$($EXE.FullName)" --clobber --repo "${{ github.repository }}"
200+
}
201+
188202
- name: Upload user installer to release
189203
if: matrix.target == 'windows-user'
190204
shell: pwsh

0 commit comments

Comments
 (0)