Skip to content

Commit 2425ed2

Browse files
committed
try to send zip instead of exe
1 parent 62c1fe5 commit 2425ed2

1 file changed

Lines changed: 24 additions & 10 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -516,16 +516,30 @@ jobs:
516516
github-token: ${{ secrets.GITHUB_TOKEN }}
517517
output-artifact-directory: dist-signed
518518

519-
- name: List signed artifact
520-
run: |
521-
Get-ChildItem -Path "dist-signed"
522-
523-
- name: Upload signed Windows installer
524-
uses: actions/upload-artifact@v4
525-
with:
526-
name: jubler-signed-windows-${{ needs.prepare.outputs.version }}
527-
path: dist-signed/*
528-
retention-days: 30
519+
- name: List signed artifact
520+
run: |
521+
Get-ChildItem -Path "dist-signed"
522+
523+
- name: Package signed EXE in ZIP for release
524+
run: |
525+
New-Item -ItemType Directory -Force -Path "dist-signed-zip"
526+
$signedExe = Get-ChildItem -Path "dist-signed" -Filter "*.exe" | Select-Object -First 1
527+
if (-not $signedExe) {
528+
Write-Error "Signed EXE not found in dist-signed"
529+
exit 1
530+
}
531+
Write-Host "Packaging signed EXE: $($signedExe.Name)"
532+
$zipName = "$($signedExe.BaseName).zip"
533+
Compress-Archive -Path $signedExe.FullName -DestinationPath "dist-signed-zip/$zipName" -Force
534+
Write-Host "Created: dist-signed-zip/$zipName"
535+
Get-ChildItem -Path "dist-signed-zip"
536+
537+
- name: Upload signed Windows installer
538+
uses: actions/upload-artifact@v4
539+
with:
540+
name: jubler-signed-windows-${{ needs.prepare.outputs.version }}
541+
path: dist-signed-zip/*
542+
retention-days: 30
529543

530544
release:
531545
needs: [prepare, build-platform, sign-macos, sign-windows]

0 commit comments

Comments
 (0)