Tauri 1.2 发布,桌面应用开发框架
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. - Add new app-specific
BaseDirectory
enum variantsAppConfig
,AppData
,AppLocalData
,AppCache
andAppLog
along with equivalent functions inpath
module and deprecated ambiguous variantsLog
andApp
along with their equivalent functions inpath
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 theconvertFileSrc
helper, the URL must now use theasset://localhost/$filePath
format. - Escape glob special characters in files/directories when dropping files or using the open/save dialogs.
- Properly emit events with object payload.
- Fixes access to the
WebviewWindow.getByLabel
function in atauri://window-created
event listener. - Fixes resource reading being always rejected by the scope.
- Fixes
__TAURI_PATTERN__
object freeze. - Readd the option to create an unfocused window via the
focused
method. Thefocus
function has been deprecated. - Add
hidden_title
option for macOS windows. - Custom protocol headers are now implemented on Linux when running on webkit2gtk 2.36 or above.
- Add
App::show()
,AppHandle::show()
,App::hide()
andAppHandle::hide()
for hiding/showing the entire application on macOS. - 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. - Added methods to set the system tray title on macOS.
- Added the
user_agent
option when creating a window.
同时发布的还有 Tauri 1.1.2.

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
- 上一篇
.NET 跨平台全能 Cron 解析库 TimeCrontab v3.1.0 发布
TimeCrontab 是为 Furion 全新的定时任务准备的,将在本周发布分布式毫秒级定时任务。 TimeCrontab .NET 全能 Cron 表达式解析库,支持 Cron 所有特性。 特性 支持 Cron 所有特性 超高性能 易拓展 很小,仅4KB 无第三方依赖 跨平台 高质量代码和良好单元测试 支持.NET Framework 3.5+及后续版本 安装 Package Manager Install-Package TimeCrontab .NET CLI dotnet add package TimeCrontab 快速入门 我们在主页上有不少例子,这是让您入门的第一个: 常规格式:分 时 天 月 周 var crontab = Crontab.Parse("* * * * *"); var nextOccurrence = crontab.GetNextOccurrence(DateTime.Now); 支持年份:分 时 天 月 周 年 var crontab = Crontab.Parse("* * * * * *", CronStringF...
- 下一篇
CrateDB 5.1.1 发布,分布式 SQL 数据库
CrateDB 是一个分布式的 SQL 数据库,使得实时存储和分析大量的机器数据变得简单。CrateDB 提供了通常与 NoSQL 数据库相关的可扩展性和灵活性,最小的 CrateDB 集群可以轻松地每秒摄取数万条记录。这些数据可以在整个集群中实时地、临时地、并行地进行查询。 CrateDB 5.1.1 正式发布,该版本更新内容如下: 注意事项:如果你正在升级一个集群,你必须在升级到 5.1.1 之前运行 CrateDB 4.0.2 或更高版本。官方建议你在升级到 5.1.1 之前,先升级到最新的 5.0 版本。支持从 5.0.x 滚动升级到 5.1.1。在升级之前,应该备份你的数据。 警告:在 CrateDB 4.x 之前创建的表在 5.x 版本中无法使用,在迁移到 5.x.x 之前必须重新创建。 修复 修复了阻止_idIN(SELECT...)匹配记录的问题。 修复了在TEXT或VARCHAR类型的列上使用ORDER BY时可能导致class_cast_exception错误的问题。 更改了解析函数的逻辑。以前,在查找用户定义的函数之前,它会首先在搜索路径中查找所有模式的内置函数。...
相关文章
文章评论
共有0条评论来说两句吧...