feat: update build process for Squirrel installer and add new upload steps

This commit is contained in:
litruv
2026-02-24 21:49:06 +11:00
parent 83ee6d868b
commit 39d33b9a3f
6 changed files with 130 additions and 22 deletions

View File

@@ -100,17 +100,46 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload NSIS installer
- name: Upload Squirrel Setup (x64)
uses: actions/upload-artifact@v3
with:
name: Paarrot-Windows-x64.exe
path: dist-electron/Paarrot-*-win-x64.exe
name: Paarrot-Setup-x64.exe
path: dist-electron/Paarrot-*-win-x64-Setup.exe
- name: Upload Portable
- name: Upload Squirrel Setup (arm64)
uses: actions/upload-artifact@v3
with:
name: Paarrot-Windows-x64-portable.exe
path: dist-electron/Paarrot-*-win-x64.portable.exe
name: Paarrot-Setup-arm64.exe
path: dist-electron/Paarrot-*-win-arm64-Setup.exe
- name: List build output
shell: powershell
run: |
Get-ChildItem -Path dist-electron -Recurse | Select-Object FullName
- name: Copy RELEASES file for upload
shell: powershell
run: |
if (Test-Path \"dist-electron/squirrel-windows/RELEASES\") {
Copy-Item \"dist-electron/squirrel-windows/RELEASES\" -Destination \"dist-electron/RELEASES\"
} elseif (Test-Path \"dist-electron/RELEASES\") {
Write-Output \"RELEASES file already at root\"
} else {
Write-Error \"RELEASES file not found\"
exit 1
}
- name: Upload Squirrel RELEASES
uses: actions/upload-artifact@v3
with:
name: RELEASES
path: dist-electron/RELEASES
- name: Upload Squirrel nupkg (x64)
uses: actions/upload-artifact@v3
with:
name: Paarrot-x64.nupkg
path: dist-electron/Paarrot-*-win-x64-full.nupkg
- name: Upload Windows update metadata
uses: actions/upload-artifact@v3
@@ -240,7 +269,7 @@ jobs:
- name: Prepare release files
run: |
mkdir -p release-files
find artifacts -type f \( -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" -o -name "*.rpm" -o -name "*.dmg" -o -name "*.zip" -o -name "*.yml" \) -exec cp {} release-files/ \;
find artifacts -type f \( -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" -o -name "*.rpm" -o -name "*.dmg" -o -name "*.zip" -o -name "*.yml" -o -name "*.nupkg" -o -name "RELEASES*" \) -exec cp {} release-files/ \;
ls -la release-files/
- name: Create or Update Release