Skip to content

Commit

Permalink
support apple silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
asrient committed Nov 20, 2023
1 parent 5663a2f commit d65aa2e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/desktop-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Desktop App CI
name: App CI

on:
push:
Expand Down Expand Up @@ -48,3 +48,13 @@ jobs:
ONEAUTH_SERVER_URL: ${{ secrets.ONEAUTH_SERVER_URL }}
ONEAUTH_APP_ID: ${{ secrets.ONEAUTH_APP_ID }}
NODE_OPTIONS: "--max_old_space_size=4096"
- name: Build and Publish - Apple Silicon
if: matrix.os == 'macos-latest'
run: npm run publish:desktop:arm64
working-directory: ./apps
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_ENV: production
ONEAUTH_SERVER_URL: ${{ secrets.ONEAUTH_SERVER_URL }}
ONEAUTH_APP_ID: ${{ secrets.ONEAUTH_APP_ID }}
NODE_OPTIONS: "--max_old_space_size=4096"
3 changes: 2 additions & 1 deletion apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"start:desktop": "npm run build && electron-forge start",
"package:desktop": "npm run build && electron-forge package",
"make:desktop": "npm run build && electron-forge make",
"publish:desktop": "npm run build && electron-forge publish"
"publish:desktop": "npm run build && electron-forge publish",
"publish:desktop:arm64": "npm run build && electron-forge publish --arch arm64"
},
"dependencies": {
"ajv": "^8.12.0",
Expand Down

0 comments on commit d65aa2e

Please sign in to comment.