Skip to content

Commit

Permalink
86du677v4 - NEON3 - Implement alternative for Electron-Builder to gen…
Browse files Browse the repository at this point in the history
…erate our MacOS build with CircleCI
  • Loading branch information
ricardoak25 committed Aug 20, 2024
1 parent 946627a commit d98d44e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ jobs:
- checkout
- node/install:
node-version: '18.14.2'
- run: npm ci --timeout 1500000
- run: |
brew install pyenv
pyenv install 3.11.6
pyenv global 3.11.6
- run: npm ci
- run: npm run build:mac
- store_artifacts:
path: dist
Expand Down Expand Up @@ -115,24 +119,9 @@ workflows:
deploy:
jobs:
# build artifacts only on tags with name v.*
- build_macos:
filters:
branches:
ignore: /.*/
tags:
only: /v.*/
- build_win:
filters:
branches:
ignore: /.*/
tags:
only: /v.*/
- generate_checksums:
requires:
- build_macos
- build_win
filters:
branches:
ignore: /.*/
tags:
only: /v.*/
38 changes: 38 additions & 0 deletions .github/workflows/release_mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Release macOS

on:
push:
tags:
- 'v*'

jobs:
build_macos:
runs-on: macos-latest
env:
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
DEBUG: ${{ secrets.DEBUG }}
VITE_SENTRY_DNS: ${{ secrets.VITE_SENTRY_DNS }}
NODE_OPTIONS: ${{ secrets.NODE_OPTIONS }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.14.2'

- name: Install dependencies
run: brew install python-setuptools

- name: Install dependencies
run: npm ci

- name: Build macOS app
run: npm run build:mac

0 comments on commit d98d44e

Please sign in to comment.