Skip to content

Update forge.config.ts with new packagerConfig options #52

Update forge.config.ts with new packagerConfig options

Update forge.config.ts with new packagerConfig options #52

Workflow file for this run

name: Release
on:
push:
branches:
- release
jobs:
release:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
arch: [x64, arm64]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Set up Electron dependencies on macOS
if: runner.os == 'macOS'
run: |
brew install --cask wine-stable
brew install mono
- name: Build Electron app
run: |
npm run make -- --arch=${{ matrix.arch }}
env:
ELECTRON_CACHE: ${{ runner.temp }}/electron
npm_config_arch: ${{ matrix.arch }}
npm_config_platform: ${{ matrix.os }}
- name: Publish to GitHub Releases
run: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}