feat(bundler): support Liquid Glass icons, closes #14207#14671
Conversation
the `icon` config now supports loading an Assets.car directly or a `.icon` (Icon Composer asset) that gets compiled into an Assets.car file
Package Changes Through 5893c4fThere are 9 changes which include tauri-macos-sign with patch, tauri-build with patch, tauri with minor, tauri-bundler with minor, tauri-cli with patch, @tauri-apps/cli with patch, tauri-runtime-wry with minor, tauri-runtime with minor, tauri-utils with minor Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
Will this appear in 2.9.6? :) |
| if let Some(assets_car_file) = assets_car_file { | ||
| if let Some(icon_name) = app_icon_name_from_assets_car(&assets_car_file) { | ||
| plist.insert("CFBundleIconName".into(), icon_name.clone().into()); | ||
| plist.insert("CFBundleIconFile".into(), icon_name.into()); |
There was a problem hiding this comment.
Do we set the name for the .Icon / Assets.car thingy? Just concerned about breaking the .icns fallback here
There was a problem hiding this comment.
I've pushed a fix for it, looks like that's the appropriate way to manage this
CFBundleIconName for the CAR, CFBundleIconFile for the ICNS
i tested this by deleting the Assets.car file, running touch my.app and rerunning it, it picks up the icns then
alternatively we could make sure the file names always match (which means renaming the icns file to AppIcon.icns), that's what the Icon Composer app does anyway
|
Is this still planned/being worked on? @lucasfernog |
|
planned for 2.11 |
…auri-apps#14671) * feat(bundler): support Liquid Glass icons, closes tauri-apps#14207 the `icon` config now supports loading an Assets.car directly or a `.icon` (Icon Composer asset) that gets compiled into an Assets.car file * fmt * fix build * add version checks * fmt * fix icns fallback * fmt
…auri-apps#14671) * feat(bundler): support Liquid Glass icons, closes tauri-apps#14207 the `icon` config now supports loading an Assets.car directly or a `.icon` (Icon Composer asset) that gets compiled into an Assets.car file * fmt * fix build * add version checks * fmt * fix icns fallback * fmt
the
iconconfig now supports loading an Assets.car directly or a.icon(Icon Composer asset) that gets compiled into an Assets.car filehere's a dramatic demo:
Screen.Recording.2025-12-18.at.09.20.00.mov