Skip to content

Commit 99259fe

Browse files
authored
fix(macos): set LSUIElement in the assembled Tauri app's Info.plist (#1494)
aw-tauri 039de33 marks the app LSUIElement (tray app, no Dock icon) in src-tauri/Info.plist, but build_app_tauri.sh writes the shipped ActivityWatch.app's Info.plist from scratch, so the key never reached the DMG or the updater bundle (checked in v0.14.0b10).
1 parent 372e180 commit 99259fe

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎scripts/package/build_app_tauri.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ cat > "dist/${APP_NAME}.app/Contents/Info.plist" << EOF
128128
<string>NSApplication</string>
129129
<key>LSMinimumSystemVersion</key>
130130
<string>${MACOSX_DEPLOYMENT_TARGET:-12.0}</string>
131+
<!-- Tray app: no Dock icon at launch (mirrors aw-tauri/src-tauri/Info.plist; this
132+
plist replaces the one Tauri generates, so the key must be set here) -->
133+
<key>LSUIElement</key>
134+
<true/>
131135
</dict>
132136
</plist>
133137
EOF

0 commit comments

Comments
 (0)