Tauri 1.2 发布了,Tauri 是一个框架,用于为所有主要桌面平台构建小巧、快速的二进制文件。开发人员可以集成任何可编译为 HTML、JS 和 CSS 的前端框架,以构建他们的用户界面。应用程序的后端是一个基于 Rust 的二进制文件,带有一个前端可以与之交互的 API。
Tauri 应用程序的用户界面目前在 macOS 和 Windows 上利用 tao 作为窗口处理库,在 Linux 上通过 Tauri 团队孵化和维护的 WRY 利用 WebKit、Windows 上的 WebView2 和 Linux 上的 WebKitGTK 创建一个统一的系统 webview(和其他好东西,如菜单和任务栏)接口。
该版本改进包括:
- Add
accept_first_mouse option for macOS windows.
- 95f467ad feat(core): add window
accept_first_mouse option, closes #5347 (#5374) on 2022-10-17
- Add new app-specific
BaseDirectory enum variants AppConfig, AppData, AppLocalData, AppCache and AppLog along with equivalent functions in path module and deprecated ambiguous variants Log and App along with their equivalent functions in path module.
- Set the correct mimetype when streaming files through
asset: protocol
- 39443b43 fix(core): set correct mimetype for asset protocol streams, closes #5203 (#5210) on 2022-09-30
- 2d9c2b47 Revert "fix(core): set correct mimetype for asset protocol streams, closes #5203 (#5210)" on 2022-09-30
- 9b1a6a1c fix(core): set correct mimetype for asset protocol streams, #5203 (#5536) on 2022-11-04
- Disable automatic window tabbing on macOS when the
tabbing_identifier option is not defined, the window is transparent or does not have decorations.
- The custom protocol now validates the request URI. This has implications when using the
asset protocol without the convertFileSrc helper, the URL must now use the asset://localhost/$filePath format.
- Escape glob special characters in files/directories when dropping files or using the open/save dialogs.
- 4cbdf0fb fix(core): escape glob characters in drop/dialogs , closes #5234 (#5237) on 2022-10-05
- Properly emit events with object payload.
- 79dd6e16 fix(core): properly emit events with object payload, closes #5482 (#5492) on 2022-10-27
- Fixes access to the
WebviewWindow.getByLabel function in a tauri://window-created event listener.
- e00b1e5f fix(core): update metadata before window-created listeners, closes #5191 (#5458) on 2022-10-22
- Fixes resource reading being always rejected by the scope.
- a06dc699 fix(core): canonicalize resource dir to fix scope check, closes #5196 (#5218) on 2022-09-29
- Fixes
__TAURI_PATTERN__ object freeze.
- Readd the option to create an unfocused window via the
focused method. The focus function has been deprecated.
- 4036e15f feat(core): reimplement window initial focus flag, closes #5120 (#5338) on 2022-10-08
- Add
hidden_title option for macOS windows.
- 321f3fed feat(macos):
title_bar_style and hidden_title window options, closes #2663 (#3965) on 2022-09-30
- Custom protocol headers are now implemented on Linux when running on webkit2gtk 2.36 or above.
- Add
App::show(), AppHandle::show(), App::hide() and AppHandle::hide() for hiding/showing the entire application on macOS.
- 39bf895b feat(macOS): Add application
show and hide methods (#3689) on 2022-10-03
- Fix a deadlock when modifying the menu in the
on_menu_event closure.
-
- Resolve base system directory in shell scope.
- Added
tabbing_identifier to the window builder on macOS.
- Add
title_bar_style option for macOS windows.
- 321f3fed feat(macos):
title_bar_style and hidden_title window options, closes #2663 (#3965) on 2022-09-30
- Added methods to set the system tray title on macOS.
- 8f1ace77 feat: expose
set_title for MacOS tray (#5182) on 2022-09-30
- Added the
user_agent option when creating a window.
- a6c94119 feat(core): expose user_agent to window config (#5317) on 2022-10-02
同时发布的还有 Tauri 1.1.2.