From 34e4c5a2ee2381268ecbd7568f3b86c521eec261 Mon Sep 17 00:00:00 2001 From: Danijel Micic Date: Mon, 15 Dec 2025 18:57:34 +1100 Subject: [PATCH] fix: Update GitHub Actions to use electron-packager - Replace electron-builder with electron-packager to avoid code signing issues - Simplify build process - Create ZIP archive for distribution --- .github/workflows/build-desktop.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-desktop.yml b/.github/workflows/build-desktop.yml index fa8b78d..2b2e6d0 100644 --- a/.github/workflows/build-desktop.yml +++ b/.github/workflows/build-desktop.yml @@ -26,28 +26,26 @@ jobs: - name: Install dependencies run: npm ci - - name: Build with electron-builder - run: npm run build - env: - CSC_IDENTITY_AUTO_DISCOVERY: false + - name: Build with electron-packager + run: npx electron-packager . "Advanced-SMTP-Tester" --platform=win32 --arch=x64 --out=dist --overwrite - - name: Upload installer artifact + - name: Create ZIP archive + run: Compress-Archive -Path "dist\Advanced-SMTP-Tester-win32-x64" -DestinationPath "Advanced-SMTP-Tester-Windows.zip" + + - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: windows-installer - path: | - dist/*.exe - dist/*.zip + name: windows-desktop-app + path: Advanced-SMTP-Tester-Windows.zip retention-days: 30 - name: Create Release (on tag) if: startsWith(github.ref, 'refs/tags/v') uses: softprops/action-gh-release@v1 with: - files: | - dist/*.exe - dist/*.zip + files: Advanced-SMTP-Tester-Windows.zip draft: false prerelease: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +