Skip to content

Commit a39ec45

Browse files
ParthJadhavclaude
andcommitted
Fix cross-platform build: move macos-haptics permission to macOS-only capability
The macos-haptics:default permission was in the shared capability file, causing builds to fail on Windows and Linux where the plugin isn't available. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8e93942 commit a39ec45

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

src-tauri/capabilities/default.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"notification:allow-is-permission-granted",
1515
"notification:allow-request-permission",
1616
"notification:allow-notify",
17-
"core:window:allow-start-dragging",
18-
"macos-haptics:default"
19-
]
17+
"core:window:allow-start-dragging"
18+
],
19+
"platforms": ["linux", "macOS", "windows"]
2020
}

src-tauri/capabilities/macos.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"identifier": "macos-only",
3+
"description": "macOS-specific capabilities",
4+
"windows": ["main"],
5+
"permissions": [
6+
"macos-haptics:default"
7+
],
8+
"platforms": ["macOS"]
9+
}

0 commit comments

Comments
 (0)