mirror of
https://github.com/DeNNiiInc/Advanced-Smtp-Tester.git
synced 2026-04-17 17:35:59 +00:00
fix: Robust GitHub Actions build
- Add explicit 'package' script to package.json to avoid npx issues - Update workflow to use 'npm run package' - Use wildcard path for compression to handle folder naming variations - Add 'ls dist' for debugging
This commit is contained in:
7
.github/workflows/build-desktop.yml
vendored
7
.github/workflows/build-desktop.yml
vendored
@@ -27,10 +27,13 @@ jobs:
|
||||
run: npm ci
|
||||
|
||||
- name: Build with electron-packager
|
||||
run: npx electron-packager . "Advanced-SMTP-Tester" --platform=win32 --arch=x64 --out=dist --overwrite
|
||||
run: npm run package
|
||||
|
||||
- name: Verfiy Build
|
||||
run: ls dist
|
||||
|
||||
- name: Create ZIP archive
|
||||
run: Compress-Archive -Path "dist\Advanced-SMTP-Tester-win32-x64" -DestinationPath "Advanced-SMTP-Tester-Windows.zip"
|
||||
run: Compress-Archive -Path "dist\*-win32-x64" -DestinationPath "Advanced-SMTP-Tester-Windows.zip"
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
Reference in New Issue
Block a user