Skip to content

Commit

Permalink
Add macOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
6c65726f79 committed Jan 30, 2022
1 parent ea29c20 commit b0bf26c
Show file tree
Hide file tree
Showing 6 changed files with 5,333 additions and 45 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,43 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-electron-mac:
name: Build Electron macOS
needs: dependencies
runs-on: macos-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '14'

- uses: c-hive/gha-npm-cache@v1

- name: Install dependencies
run: |
npm ci
- name: Build and sync web assets
run: |
npm run build --prod
npx cap sync @capacitor-community/electron
npx cap copy @capacitor-community/electron
- name: Post-build
run: npm run-script postbuild:electron

- name: Install electron dependencies
working-directory: ./electron
run: npm ci

- name: Build and publish electron
working-directory: ./electron
run: npm run-script electron:publish-mac
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-android:
name: Build Android
needs: dependencies
Expand Down

0 comments on commit b0bf26c

Please sign in to comment.