mirror of
https://github.com/DeNNiiInc/Advanced-Smtp-Tester.git
synced 2026-04-17 17:35:59 +00:00
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
This commit is contained in:
22
.github/workflows/build-desktop.yml
vendored
22
.github/workflows/build-desktop.yml
vendored
@@ -26,28 +26,26 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Build with electron-builder
|
- name: Build with electron-packager
|
||||||
run: npm run build
|
run: npx electron-packager . "Advanced-SMTP-Tester" --platform=win32 --arch=x64 --out=dist --overwrite
|
||||||
env:
|
|
||||||
CSC_IDENTITY_AUTO_DISCOVERY: false
|
|
||||||
|
|
||||||
- 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
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: windows-installer
|
name: windows-desktop-app
|
||||||
path: |
|
path: Advanced-SMTP-Tester-Windows.zip
|
||||||
dist/*.exe
|
|
||||||
dist/*.zip
|
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
- name: Create Release (on tag)
|
- name: Create Release (on tag)
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: Advanced-SMTP-Tester-Windows.zip
|
||||||
dist/*.exe
|
|
||||||
dist/*.zip
|
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user