Skip to content

Commit

Permalink
fix(electron): snap build issues + github workflow error
Browse files Browse the repository at this point in the history
  • Loading branch information
flawiddsouza committed Aug 31, 2022
1 parent ac7c766 commit f28caa5
Show file tree
Hide file tree
Showing 4 changed files with 2,823 additions and 530 deletions.
54 changes: 47 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,61 @@ name: Publish Electron Binaries
on:
workflow_dispatch:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build-electron-linux:
runs-on: ubuntu-latest
defaults:
run:
steps:
- uses: actions/checkout@v3
- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build UI
working-directory: ./ui
run: |
npm ci
npm run build
- name: Build deb, rpm
working-directory: ./electron
run: |
npm ci
npm run publish
build-electron-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
- name: Build UI
working-directory: ./ui
run: |
npm ci
npm run build
- name: Build windows installer
working-directory: ./electron
run: |
npm ci
npm run publish
build-electron-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node 16
uses: actions/setup-node@v3
with:
use_lxd: true
- run: npm run publish
node-version: 16
- name: Build UI
working-directory: ./ui
run: |
npm ci
npm run build
- name: Build macos binaries
working-directory: ./electron
run: |
npm ci
npm run publish
1 change: 1 addition & 0 deletions electron/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
out/
dist/
ui/
Loading

0 comments on commit f28caa5

Please sign in to comment.