您现在的位置是:首页 > 文章详情

Tauri 1.2 发布,桌面应用开发框架

日期:2022-11-14点击:733

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.
    • 5d89905e feat(api): add app-specific directory APIs, closes #5263 (#5272) on 2022-09-28
  • 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.
    • 357480f4 feat(core): custom protocol headers on Linux, closes #4496 (#5421) on 2022-10-17
  • 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.
    • 357480f4 feat(core): custom protocol headers on Linux, closes #4496 (#5421) on 2022-10-17
  • 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.
    • ae65951b fix(core): fix deadlock in on_menu_event, closes #5254 (#5257) on 2022-09-28
  • Resolve base system directory in shell scope.
    • 99fe1c56 fix(core): resolve base dir in shell scope, closes #5480 (#5508) on 2022-11-04
  • 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. 

原文链接:https://www.oschina.net/news/217721/tauri-1-2-released
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章