Skip to content

Commit

Permalink
publish universal mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Nadler committed Feb 7, 2024
1 parent 80c1cf1 commit 8fffac4
Showing 1 changed file with 3 additions and 50 deletions.
53 changes: 3 additions & 50 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- release

jobs:
publish-apple-silicon:
publish-mac-universal:
permissions:
contents: write
strategy:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
- name: install frontend dependencies
run: npm install # change this to npm or pnpm depending on which one you use

- name: Build Apple Silicon
- name: Build Mac Universal
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -52,54 +52,7 @@ jobs:
releaseBody: 'Development version - WORK IN PROGRESS'
releaseDraft: true
prerelease: true
args: --target aarch64-apple-darwin

publish-mac-x86_64:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [self-hosted]

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: install frontend dependencies
run: npm install # change this to npm or pnpm depending on which one you use

- name: Build Intel
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'v__VERSION__'
releaseBody: 'Development version - WORK IN PROGRESS'
releaseDraft: true
prerelease: true
args: --target x86_64-apple-darwin
args: --target universal-apple-darwin

publish-windows:
permissions:
Expand Down

0 comments on commit 8fffac4

Please sign in to comment.