Skip to content

Update package.json and electron builder config #5

Update package.json and electron builder config

Update package.json and electron builder config #5

Workflow file for this run

name: Build
on:
push:
branches:
- feature/electron
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_VERSION: 18
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: src/electron
strategy:
matrix:
os: [ macos-latest, windows-latest ]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: |
npm ci
- name: Build windows
run: npm run build
if: matrix.os == 'windows-latest'
- name: Build macos
run: npm run build
if: matrix.os == 'macos-latest'
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}