Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/desktop-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ on:
push:
branches:
- master
pull_request:
branches:
- master
paths:
- '.github/workflows/desktop-release.yml'
- 'apps/desktop/**'
- 'packages/**'
- 'package.json'
- 'pnpm-lock.yaml'
workflow_dispatch:

env:
Expand Down Expand Up @@ -146,8 +155,14 @@ jobs:

- name: Build universal macOS installer
if: runner.os == 'macOS'
shell: bash
working-directory: apps/desktop
run: pnpm tauri build --target universal-apple-darwin
run: |
if [[ "$APPLE_SIGNING_MODE" == "developer-id" ]]; then
pnpm tauri build --target universal-apple-darwin
else
pnpm tauri build --target universal-apple-darwin --config src-tauri/tauri.adhoc.conf.json
fi

- name: Verify Windows installers and configured signatures
if: runner.os == 'Windows'
Expand Down Expand Up @@ -216,6 +231,7 @@ jobs:

publish:
name: Publish GitHub Release
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
needs: build
env:
Expand Down
8 changes: 8 additions & 0 deletions apps/desktop/src-tauri/tauri.adhoc.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://schema.tauri.app/config/2",
"bundle": {
"macOS": {
"signingIdentity": "-"
}
}
}