Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update dependencies #10

Update dependencies

Update dependencies #10

name: Build Electron App for All Platforms
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
script: build
- os: macos-13
script: build-mac
- os: ubuntu-latest
script: build-linux
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies on macOS (force x64)
if: matrix.os == 'macos-13'
env:
npm_config_arch: x64
run: |
arch -x86_64 brew install coreutils || true
arch -x86_64 npm ci
- name: Install dependencies on Windows/Linux
if: matrix.os != 'macos-13'
run: npm ci
- name: Build Electron App (${{ matrix.os }})
run: npm run ${{ matrix.script }}
- name: Upload build artifacts
if: success()
uses: actions/upload-artifact@v4
with:
name: electron-build-${{ matrix.os }}
path: |
dist/*.AppImage
dist/*.deb
dist/*.exe
dist/*.dmg
dist/*.zip