变更日志
本文件记录了该项目所有值得注意的变更。
格式基于 Keep a Changelog,该项目遵循 语义版本控制。
新增
用于新增功能。变更
用于现有功能的变更。弃用
用于即将删除的功能。删除
用于现已删除的功能。修复
用于任何错误修复。安全
用于漏洞。
[未发布]
新增
- 新增在 Windows 上设置窗口类名的选项。由 @APshenkin 在 PR 中添加。
修复
变更
- 允许外部指定 macOS 最小版本。由 @APshenkin 在 PR 中实现。
v2.9.2 - 2024-09-18
修复
- 修复了由 @leaanthony 在 PR 中修复的 Darwin 上的 CGO 内存问题。
- 修复了当作者姓名包含不适合 JSON 的字符串时出现的错误。由 @taiseiotsuka 在 PR 中修复。
- 修复了 macOS 构建以使用 wails.json 中的
outputfilename
。 #3200 - 修复了 Windows 上的文件拖放事件。由 @FrancescoLuzzi 在 PR 中修复。
- 修复了 doctor 命令在 Solus 上找不到 pkg-config 的问题。 PR #3670 由 @ianmjones 修复。
- 修复了对导出但没有 JSON 标签的结构体字段的绑定。 PR #3678
- 修复了 Windows 上的文件拖放事件,由 @FrancescoLuzzi 在 PR 中修复。
- 修改了
ZoomFactor
和IsZoomControlEnabled
选项,使其在 PR#3644 中成为 Windows 专属选项,由 @levinit 修改。 - 为 Windows 上的拖放添加了 nil 检查。由 @leaanthony 在 PR 中修复,基于 @Alpa-1 在 #3596 中的建议。
- 修复了各种 .mdx 文件中的错别字。 PR #3628 由 @deining 修复。
- 修复了在终止发射期间发生的
notifyListeners()
竞争条件。 PR 由 @mrf345 修复。 - 修复了在使用 Go 1.23 时 Windows 中的对话框问题。由 @leaanthony 在 PR 中修复。
- 为 Go 1.23 支持添加了更多系统调用修复。由 @leaanthony 在 PR 中修复。
- 修复了拖放缺少光标图标的问题。 PR 由 @mrf345 修复。
- 修复了 macOS 上当 wails.json 中的
outputfilename
和name
字段不同时发生的构建错误。由 @nickisworking 在 PR 中修复。
变更
- 修改了文档以反映
gon-sign.json
文件的正确密码语法。由 @ignasbernotas 在 PR 中修改。 - 更新了针对最新 Linux 操作系统版本和 libwebkit 问题的安装文档。由 @pratikmota 在 PR 中修改。
v2.9.1 - 2024-06-18
修复
- 修复了某些 glibc 版本的 Linux 上的构建问题。由 @leaanthony 在 PR 中修复。
v2.9.0 - 2024-06-16
新增
- 为 Windows 和 Linux 添加了拖放(文件或文件夹)支持。由 @lyimmi 在 PR 中添加,基于 @ayatkyo 在 PR 中为 Windows 完成的工作。
- 为 macOS 添加了拖放(文件或文件夹)支持。由 @APshenkin 在 PR 中添加。
- 支持使用
libwebkit2gtk-4.1
而不是4.0
编译,以便支持最新的 Ubuntu 版本。由 atterpac 在 #3465 中添加。 - 使用 Svelte 示例扩展了路由指南。由 @stanislav-zeman 在 #3481 中添加。
- 为修复 #3476 添加了单元测试。由 gjergj 在 #3485 中添加。
- 由 Zeiichenfolge 在 #3483 中添加了德语自述文件翻译。
- 添加了对为没有字段的结构体生成绑定的支持。由 gjergj 在 PR 中添加。
变更
- 更新了网站上“它是如何工作的?”页面中的一些损坏的链接。由 @oguz-yilmaz 在 PR #3469 中修改。
- 由 @leaanthony 在 #3473 中将 CI 中的 Go 版本升级到了 1.22。
修复
- 修复了拖放 JS 运行时问题。由 @jakubpeleska 添加,由 Beam Transfer 在 PR 中提供。
- 修复了可选类型生成问题,其中在字段名内部而不是外部放置了额外的
?
,例如"field?"?
与"field"?
。由 @atterpac 在 #3476 中修复。 - 修复了
WindowGetPosition
和WindowSetPosition
值在 macOS 上不一致的问题。由 @cenan 修复。 - 修复了 scoop 命令使用中的错别字。由 @fieu 在 #3501 中修复。
- 修复了 macOS 单实例锁定一段时间后重置的问题。由 @APshenkin 在 PR 中修复。
v2.8.2 - 2024-05-08
重大变更
-noPackage
标志被误命名,现已重命名为nopackage
,以匹配其他标志。由 @leaanthony 在 PR 中修改。
新增
- 添加了对将资产请求代理到外部服务器的支持。由 @leaanthony 在 PR 中添加。
修复
- 修复了 Windows 上缺少图标的问题。由 @APshenkin 修复。
v2.8.1 - 2024-04-11
新增
- 添加了文档帮助以指示在 IDE 选项中可以选择 vscode 或 goland。由 @DiegPS 在 PR 中添加。
- 添加了文档帮助以解决 NixOs/Wayland 字体大小 CSS 问题。由 @atterpac 在 PR 中添加。
- 由 @te5se 在 PR 中将 -m(跳过
go mod tidy
)标志添加到 dev 命令中。 - 添加了 mac 选项
DisableZoom
以移除缩放按钮。由 @wizzymore 在 PR 中添加。
修复
- 修复了嵌入指令使用模式化路径会创建非法目录的问题。由 @twonull 在 PR 中修改。
- 修复了在 TypeScript 中某些调用 createFrom 失败的问题。由 @twonull 在 PR 中更改。
- 修复了注释中的一些拼写错误。由 @reallylowest 在 PR 中更改。
- 修复了复制后目标文件未正确关闭的问题。由 @testwill 在 PR 中更改。
- 修复了
xattr
调用无法工作的问题。由 @leaanthony 修复。 - 在文档中警告,必须在使用之前提取修复版本的 WebView 2 运行时。由 @ALizarazoTellez 在 PR 中记录。
更改
v2.8.0 - 2024-02-08
添加
- 添加 Windows 选项支持
DisablePinchZoom
配置。由 @tuuzed 在 PR 中添加。 - 将 Apple Silicon 硬件检测添加到
wails doctor
。由 @almas1992 在 PR 中更改。 - 删除 macOS 二进制文件上的隔离属性。由 @leaanthony 在 PR 中更改。
- 添加了有关 Linux 系统上常见的 GStreamer 错误的文档。由 @mkwsnyder 在 PR 中更改。
- 添加了有关显式导入 JS 运行时的示例文档。由 @danawoodman 在 PR 中更改。
- 添加了由 @almas1992 在 PR 中添加的 Dock 图标右键退出处理。
修复
- 修复了 vue-ts 模板构建错误。由 @atterpac 在 PR 中修复。
- IsZoomControlEnabled 和 ZoomFactor 的文档。由 @leaanthony 在 PR 中修复。
- 修复了
wails build
、wails dev
和wails generate module
的-compiler
标志。由 @xtrafrancyz 在 PR 中修复。 - 修复了 Linux 和 Windows 上未初始化的
SecondInstanceData.WorkingDirectory
(#3154). - 修复了 React 路由文档,添加了 'Routes' 和 'Route'。由 @doracpphp 在 PR 中修复。
- 修复了由 @almas1992 在 PR 中修复的保存文件对话框在 Windows 上不会自动追加文件扩展名的问题。
- 修复了用 Go 1.22 及更高版本构建的 wails cli 的兼容性问题。由 @stffabi 在 PR 中修复。
- 修复了 Window API 返回类型文档。由 @jangler 在 PR 中修复。
v2.7.1 - 2023-12-10
修复
- 当 GPU 设备信息未提供时,
wails doctor
中的段错误。感谢 @atterpac 的修复 (#3108). - 修复了 macOS 11 上的构建。更新了其他构建防护。由 @leaanthony 在 #3111 中修复。
更改
- Go 1.20 现在是最小支持的 Go 版本。
v2.7.0 - 2023-12-09
添加
- 更新文档中
ZoomFactor
和IsZoomControlEnabled
属性的描述。由 @biuaxia 在 PR 中添加。 - 添加了对将参数传递给第一个实例的单实例锁定支持。由 @APshenkin 在 PR 中添加。
- 添加了对 Windows WebView2 的启用/禁用滑动手势的支持。由 @leaanthony 在 PR 中添加。
- 使用
-devtools
标志构建时,可以使用 CMD/CTRL+SHIFT+F12 打开开发者工具。由 @leaanthony 在 PR 中添加 - 添加了对 macOS 和 Windows 的文件关联支持。由 @APshenkin 在 PR 中添加。 - 添加了对在 Mac 上设置一些 Webview 首选项的支持,
textInteractionEnabled
和tabFocusesLinks
。由 @fkhadra 在 PR 中添加。 - 添加了对在 Mac 上启用/禁用 Webview 全屏的支持。由 @fkhadra 在 PR 中添加。
- 添加了法语 README.fr.md 页面。由 @nejos97 在 PR 中添加。
- 为 linting v2 创建了新任务
task v2:lint
。工作流程已更新以运行该任务。由 @mikeee 在 PR 中添加。 - 添加了新的社区模板 wails-htmx-templ-chi-tailwind。由 @pylotlight 在 PR 中添加。
- 添加了对
wails doctor
的 CPU/GPU/内存检测。由 @leaanthony 在 #d51268b8d0680430f3a614775b13e6cd2b906d1c 中添加。 - 现在,AssetServer 将运行时/IPC 注入到所有 index html 文件中,以及在请求文件夹路径时返回的所有 html 文件中。由 @stffabi 在 PR 中添加。
- 添加了对 macOS 和 Windows 的自定义协议方案关联支持。由 @APshenkin 在 PR 中添加 - 添加了对 TS 接口生成作为选项的支持。添加了对 TS 类型中枚举的支持。由 @APshenkin 在 PR 中添加。
更改
- 现在在 Windows 上,AssetServer 请求以异步方式处理,不会阻塞主线程。由 @stffabi 在 PR 中更改。
- 现在通过为每个请求生成一个 goroutine 来并发处理 AssetServer 请求。由 @stffabi 在 PR 中更改。
- 现在使用
-devtools
标志构建不会启用默认上下文菜单。由 @mmghv 在 PR 中更改。 - 更改窗口级别。由 @almas1992 在 PR 中更改。
修复
- 修复了 docs/reference/options 页面的拼写错误。由 @pylotlight 在 PR 中添加。
- 修复了在 openSUSE-Tumbleweed 上 npm 被称为 npm20 的问题。由 @TuffenDuffen 在 PR 中修复。
- 修复了在 Windows 上使用加速键时的内存损坏问题。由 @stffabi 在 PR 中修复。
- 修复了混淆构建的绑定映射,当绑定位于不同的结构体中时。由 @APshenkin 在 PR 中修复。
- 修复了 wails.json 中混淆设置的问题。由 @APshenkin 在 PR 中修复。
v2.6.0 - 2023-09-06
重大变更
- AssetServer RequestURI 和 URL 现在符合 RFC 和 Go 文档规范,用于服务器请求。这意味着不再提供 Scheme、Host 和 Fragments。由 @stffabi 在 PR 中更改。
修复
- 避免 Linux GTK 密钥为空时应用程序崩溃。由 @aminya 在 PR 中修复。
- 修复了如果未设置 $DISPLAY 环境变量,应用程序将在 Linux 上在 main() 之前退出。由 @phildrip 在 PR 中修复。
- 修复了在 Linux 上放置窗口时的竞争条件。由 @lyimmi 在 PR 中添加。
- 修复了
SetBackgroundColour
,使其将窗口的背景颜色设置为减少 Linux 上的调整大小闪烁。由 @lyimmi 在 PR 中添加。 - 修复了禁用窗口调整大小选项以及启用时错误的初始窗口大小。由 @lyimmi 在 PR 中添加。
- 修复了构建挂钩命令解析。由 @smac89 在 PR 中添加。
- 修复了文件系统监视器,如果二进制名称包含在 .gitignore 中,则会过滤顶级项目目录。由 @haukened 在 PR #2869 中添加。
- 修复了
-reloaddir
标志以监视其他目录(非递归)。@haukened 在 PR #2871 中添加。 - 修复了对 Go 1.21
go.mod
文件的支持。由 @stffabi 在 PR 中修复。
添加
- 添加了 Fedora 38 的 DNF 包管理器的正确 NodeJS 和 Docker 包名称。由 @aranggitoar 在 PR 中添加。
- 添加了
-devtools
生产构建标志。由 @mmghv 在 PR 中添加。 - 添加了
EnableDefaultContextMenu
选项,允许在生产环境中启用浏览器的默认右键菜单。由 @mmghv 在 PR 中添加。 - 为生产环境中的默认右键菜单添加了智能功能,并使用 CSS 样式来控制它。由 @mmghv 在 PR 中添加。
- 添加了自定义错误格式,允许将结构化错误传递回前端。
- 添加了 sveltekit.mdx 指南。由 @figuerom16 在 PR 中添加。
- 添加了
ProgramName
选项到 linux.Options。由 @lyimmi 在 PR 中添加。 - 添加了新的社区模板 wails-sveltekit-ts。由 @haukened 在 PR 中添加。
- 添加了对在屏幕 api 中检索逻辑和物理屏幕尺寸的支持。由 @stffabi 在 PR 中添加。
- 添加了新的社区模板 wails-sveltekit-tailwind。由 @pylotlight 在 PR 中添加。
- 添加了对打印对话框的支持。由 @aangelisc 在 PR 中添加。
- 添加了新的
wails dev -nogorebuild
标志,以防止在后端文件更改时重启。由 @haukened 在 PR #2870 中添加。 - 添加了指南来描述使用 GitHub Actions 的跨平台构建。由 @dennypenta 在 PR 中添加。
更改了
- 现在使用新的
go-webview2
模块。由 @leaanthony 在 PR 中添加。 - 更改了
doctor
命令的样式。由 @MarvinJWendt 在 PR 中更改。 - 在 windows nsis 安装程序中默认启用 HiDPI 选项。由 @5aaee9 在 PR 中更改。
- 现在调试构建包含未压缩版本的运行时 JS,以及源映射。由 @mmghv 在 PR 中更改。
v2.5.1 - 2023-05-16
重大变更
- Go WebView2Loader 允许环境变量和注册表覆盖更改 WebView2 的行为。这在使用 Wails 的本机 WebView2Loader 时是不可能的,并且根据 PR 也不应该允许。由 @stffabi 在 PR 中更改。
wails dev
现在在 macOS 和 Linux 上对所有 Vite 版本使用自定义方案wails://
。这还解决了在 Linux 和 Windows 上多次快速保存后缺少重新加载的问题。由 @stffabi 在 PR 中更改。
修复了
- 修复了在 macOS 上快速重新加载请求期间的段错误。由 @stffabi 在 PR 中修复。
- 修复了 Linux 上针对旧的 WebKit2GTK 版本< 2.36 的开发服务器。由 @stffabi 在 PR 中修复。
- 修复了 Windows 上可能导致 WebView2 陷入挂起状态的开发服务器。由 @stffabi 在 PR 中修复。
v2.5.0 - 2023-05-13
重大变更
wails dev
现在在 macOS 和 Linux 上使用自定义方案wails://
,前提是使用 Vite >=v3.0.0
。这使得开发应用程序的行为与最终的生产应用程序一致,并修复了一些长期存在的 inconsistencies。由 @stffabi 在 PR 中更改。
添加了
- 在
wails doctor
中添加了 Nodejs 版本。由 @misitebao 在 PR 中添加。 - 添加了对 Linux 上 WebKit2GTK 2.40+ 的支持。这为 AssetServer 带来了更多功能,例如对 HTTP 请求体的支持。应用程序必须使用 Go 构建标签
webkit2_40
编译才能激活对这些功能的支持。这也将应用程序的 WebKit2GTK 最低要求提升到 2.40。由 @stffabi 在此 PR 中添加。 - macOS:添加了窗口菜单角色,以及众所周知的快捷键“最小化、全屏和缩放”。由 @stffabi 在 PR 中添加。
- macOS:添加了“隐藏、隐藏其他、显示全部”到应用程序菜单。由 @stffabi 在 PR 中添加。
- Windows:添加了标志以禁用 WebView2 的
RendererCodeIntegrity
检查,请查看标志上的注释以了解更多信息。由 @stffabi 在 PR 中添加。 - Windows:添加了对 WebView2 进程崩溃的处理,对于无法恢复的错误,将显示一条错误消息,提示需要重新启动应用程序。如果发生错误,并显示一个 chromium 错误页面,请确保窗口和 WebView2 可见。由 @stffabi 在 PR 中添加。
更改了
修复了
- 修复了
wails generate template
中的控制台打印。由 @misitebao 在 PR 中修复。 - 修复了针对多字符字符的字符串的 unicode 编码。由 @joshbuddy 在 PR 中修复。
- 修复了
wails dev
中的-skipbindings
标志。由 @stffabi 在 PR 中修复。 - 修复了 macOS 上的
runtime.MenuUpdateApplicationMenu
。由 @stffabi 在 PR 中修复。 - 修复了
libwebkit
/pkg-config
的包名添加,并在zypper.go
中使用 shell.RunCommandWithENV 而不是 shell.RunCommand。由 @wgjtyu 在 PR 中修复。 - 确保在 Windows 的主线程上启动 CommonFileDialogs。由 @stffabi 在 PR 中修复。
- 修复了生成的 TypeScript 绑定。由 @dominictwlee 在 PR 中修复。
- 修复了
StartHidden
选项在 Linux 上无法正常工作的问题。由 @LGiki 在 PR 中修复。
v2.4.1 - 2023-03-20
更改了
- 再次在 Windows 上支持对带有
--wails-draggable: drag
的项目的单次点击。由 @stffabi 在 PR 中更改。
修复了
- 修复了在使用
wails dev
时,AssetServer 尝试向记录器记录时发生的恐慌。由 @stffabi 在 PR 中修复。 - 修复了与 WebView2 运行时>
110.0.1587.69
的兼容性,该版本在重新加载前端之前显示了一个连接拒绝
html 页面。由 @stffabi 在 PR 中修复。
v2.4.0 - 2023-03-08
添加了
- 为 Windows 和 Linux 添加了 Webview GPU 加速选项。由 @Lyimmi 在 PR 中添加。
- 添加了
EnableFraudulentWebsiteDetection
选项,以选择加入扫描服务以查找欺诈性内容,例如恶意软件或网络钓鱼企图。旧版本默认激活了扫描服务。由 @stffabi 在 PR 中添加。 - 允许 AssetServer 中间件 指定由 Assets
fs.FS
提供的文件的Content-Type
。由 @stffabi 在 PR 中添加。 - AssetServer 现在通过扩展名检测更多 mimetype,例如
.mjs
。由 @stffabi 在 PR 中添加。
更改了
- 改进了 Windows 上无边框窗口的全屏模式。由 @stffabi 在 PR、PR 和 PR 中更改。
- 在 Windows 上,当窗口处于全屏模式时,取消最大化窗口不再有任何影响,这使其与 macOS 等操作系统一致。由 @stffabi 在 PR 中更改。
- 无边框调整大小现在将光标设置在 documentElement 上,否则调整大小光标将不会在主体矩形之外显示。由 @stffabi 在 PR 中更改。
- 改进了
--wails-draggable
体验,使其更具反应性。由 @stffabi 在 PR 中更改。 - NSIS 模板现在为所有用户安装快捷方式,而不仅仅是当前用户。由 @stffabi 在 PR 中更改。
修复了
- 修复了当
build/bin
丢失时失败的构建钩子。由 @Lyimmi 在 PR 中修复。 - 修复了 Windows 上无边框窗口的全屏模式,使其在从最大化状态更改为全屏状态时完全覆盖任务栏。由 @stffabi 在 PR 中修复。
- 修复了在 Windows 上通过运行时设置颜色时设置窗口背景颜色。由 @stffabi 在 PR 中修复。
- 修复了当
DisableWindowIcon
在 Windows 上处于活动状态时,在全屏窗口周围有时会出现白色边框的问题。由 @stffabi 在 PR 中修复。 - 修复了 Windows 上使用
--wails-draggable
时有时出现的拖动体验滞后问题。由 @stffabi 在 PR 中修复。 - 修复了在 wails cli 中将默认架构应用于平台标志的问题。如果只提供了一个
GOOS
作为平台标志,例如wails build --platform windows
,则当前架构不会应用,并且构建失败。由 @stffabi 在 PR 中修复。 - 修复了在较旧的 macOS 版本上打开检查器时的段错误。由 @stffabi 在 PR 中修复。
- 修复了 macos 单架构构建未遵守使用 '-o' 标志指定的输出文件名的问题。由 @gwynforthewyn 在 PR 中修复。
- 修复了 macOS 上的
undo
/redo
。由 @stffabi 在 PR 中修复。 - 修复了 JavaScript 中的
Events*
运行时函数未返回取消监视器的函数的问题。由 @zllovesuki 在 PR 中修复。 - 修复了使用自定义日志记录器时,AppOptions 合并默认值的问题。由 @stffabi 在 PR 中修复。
- 修复了事件处理中的竞争条件和互斥锁的未解锁问题。由 @stffabi 在 PR 中修复。
v2.3.0 - 2022-12-29
添加了
- 将
OpenInspectorOnStartup
添加到调试选项,允许在调试模式下应用程序启动期间打开 WebInspector。由 @stffabi 在 PR 中添加。 - 在 macOS 上,
wails doctor
现在还会显示已安装的 Xcode 版本。由 @stffabi 在 PR 中添加。 - 如果 Assets
fs.FS
提供io.ReadSeeker
,则 AssetServer 现在支持处理范围请求。由 @stffabi 在 PR 中添加。 - 为
wails.json
配置文件添加新属性 -bindings
。有关新属性的更多信息,请参阅更新后的 schema。属性prefix
和suffix
允许您控制在model.ts
文件中生成的 TypeScript 实体名称。由 @OlegGulevskyy 在 PR 中添加。 WindowSetAlwaysOnTop
方法现在已公开在 JS 运行时中。由 @gotid 在 PR 中修复。- 当请求目录时,AssetServer 现在支持提供 index.html 文件。由 @stffabi 在 PR 中添加。
- 添加了对 Linux 上的 WebKit2GTK 2.36+ 的支持。这为 AssetServer 带来了额外的功能,例如对 HTTP 方法和标头的支持。应用程序必须使用 Go 构建标签
webkit2_36
编译才能激活对这些功能的支持。这也将应用程序的 WebKit2GTK 最低要求提升到 2.36。由 @stffabi 在此 PR 中修复。 - 添加了对 macOS 上的文件输入选择的支持。由 @stffabi 在 PR 中添加。
- 添加了对 macOS 上的 AssetServer 的请求/响应流的支持。由 @stffabi 在 PR 中添加。
- 添加了对 AssetServer 的请求路径检查。由 @stffabi 在 PR 中添加。
- 添加了新的 App Store 指南。由 @achhabra2 在 PR 中添加。
- 添加了对 dnf 包管理器(最新 Fedora 所需)的额外 libwebkit 检查。由 @NullCode1337 在此 PR 中修复。
- 添加了新的
-nomodsync
标志来禁用go.mod
文件的自动同步。由 @leaanthony 在 PR 中添加。 - 添加了对向生成的 Typescript 类添加前缀和后缀文本的支持。由 @OlegGulevskyy 在 PR 中添加。
- 添加了对 NSIS 作为可选依赖项的引用。由 @acheong08 在 PR 中添加。
- 为网站添加了韩语翻译。由 @cybertramp 在 PR 中添加。
修复了
- wails dev 中的
noreload
标志未应用。由 @stffabi 在此 PR 中修复。 build/bin
文件夹在wails dev
模式下每次重新加载都会自行复制。由 @OlegGulevskyy 在此 PR 中修复。- 防止在 Windows 上无边框窗口底部出现细白线。由 @stffabi 在此 PR 中修复。
- 改进了 Linux 的信号处理。由 @leaanthony 在此 PR 中修复。
- 由于强制 Crowdin 令牌要求,在本地运行文档失败。由 @OlegGulevskyy 在此 PR 中修复。
- 为返回单个错误的 Go 函数生成的 typescript 不正确。由 @ATenderholt 在此 PR 中修复。
- Linux 的右键单击事件未被正确触发。由 @leaanthony 在此 PR 中修复。
- 在查询
go.mod
时,删除 Wails 版本中的多余空格。由 @matholt 在此 PR 中修复。 - 修复了 Mac 上的 go 测试失败。由 @avengerweb 在此 PR 中修复。
- 修复了 go 测试错误。由 @misitebao 和 @avengerweb 在 这些 PR 中修复。
- 将
WindowSetAlwaysOnTop
添加到 JS 运行时。由 @gotid 在 PR 中修复。 - 修复了文档中混淆的标志拼写错误。由 @ckilb 在 PR 中修复。
- 修复了文档中的 React Hash Router 链接。由 @marvinhosea 在 PR 中修复。
改变了
- 如果在资产中找不到
index.html
,则改进错误消息,并验证 assetserver 选项。由 @stffabi 在此 PR 中更改。 - 将 Go WebView2Loader 从实验性提升到稳定版。这意味着现在默认情况下,所有 Wails 构建都使用
v2.2.0
引入的新加载器。旧加载器在接下来的几个版本中仍可以使用构建标签native_webview2loader
。由 @stffabi 在此 PR 中更改。 - 重构了 CLI。由 @leaanthony 在此 PR 中更改。
- 删除了不可达代码。由 @tmclane 在此 PR 中更改。
v2.2.0 - 2022-11-09
添加了
- Wails 现在使用 Microsoft 的 webview2loader dll 的专门构建的本机 Go 实现。这意味着不再需要将
Webview2Loader.dll
文件嵌入到二进制文件中,这意味着文件大小将减少约 130k!感谢 @stffabi 的 出色贡献! - 此版本通过新的 AssetServer 选项提供了对自定义资产处理的更多控制。这使您可以提供自己的自定义资产处理程序并通过中间件挂钩到请求链中。感谢 @stffabi 的 出色贡献 以及 @mholt 的 最初的想法 和大量测试。
- 现在可以使用
wails.json
中的两个新选项来自定义 Wails 项目的布局build:dir
可用于指定构建文件所在的目录frontend:dir
可用于指定前端文件所在的目录- 如果在与
wails.json
相同的目录中找不到go.mod
,则 cli 将向上查找父目录以找到它。由 @leaanthony 在此 PR 中修复。
- 现在可以使用
--nocolor
标志关闭 CLI 中的彩色输出。这对于 CI/CD 管道很有用。感谢 @scottopell 的 PR - 已添加
wails.json
文件的 JSON 模式定义。IDE 现在应该在编辑wails.json
时提供代码完成。感谢 @binyamin 的 PR EventsOn*
方法现在返回一个可以调用以取消注册侦听器的函数。感谢 @joshbuddy 的 PR
修复了
- Windows 上的 Webview2 在以这种方式定义样式时返回一个潜在的空格:style="--wails-draggable: drag"。由 @stffabi 在 https://github.com/wailsapp/wails/pull/1989 中修复。
- 具有
struct{}
字段类型的绑定结构会导致 TypeScript 生成失败。感谢 @ParkourLiu 的 PR - 在使用多个显示器将无边框窗口最大化到 Windows 时,窗口有时可能会变为空白。感谢 @stffabi 的 修复
改变了
已弃用
- 已弃用 AssetsHandler 选项。请改用 AssetServer 选项。
新贡献者
- @willdot 在 https://github.com/wailsapp/wails/pull/2000 中做出了首次贡献
- @ParkourLiu 在 https://github.com/wailsapp/wails/pull/1999 中做出了首次贡献
- @binyamin 在 https://github.com/wailsapp/wails/pull/1864 中做出了首次贡献
- @joshbuddy 在 https://github.com/wailsapp/wails/pull/1969 中做出了首次贡献
- @sgosiaco 在 https://github.com/wailsapp/wails/pull/2062 中做出了首次贡献
v2.1.0 - 2022-10-18
已移除
options.App
中的RGBA
选项现已移除。请使用BackgroundColour
代替。
新增
- 支持在 Windows 对话框中默认使用“否”按钮 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1875 中提交
- 为 Linux 上的无边框窗口添加缺少的调整大小功能 - @Lyimmi 在 https://github.com/wailsapp/wails/pull/1918 中提交
- 为 Linux 添加窗口透明度 - @Lyimmi 在 https://github.com/wailsapp/wails/pull/1926 中提交
- 添加 WindowExecJS 方法 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1927 中提交
- 添加对 macOS 上的
Info.dev.plist
的支持 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1960 中提交 - 添加 ZoomFactor 获取/设置,以及相应的仅限 Windows 的选项 - @pierrejoye 在 https://github.com/wailsapp/wails/pull/1463 中提交
修复
- 如果不存在,则自动创建嵌入式目录 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1983 中提交
- 如果命令参数包含空格,则用引号括起来 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1892 中提交
- 修复 Linux 无边框窗口拖动 - @Lyimmi 在 https://github.com/wailsapp/wails/pull/1916 中提交
- 修复 gtk_window_begin_resize_drag 的鼠标按钮 - @Lyimmi 在 https://github.com/wailsapp/wails/pull/1920 中提交
- 修复绑定生成特殊情况 - @JulioDRF 在 https://github.com/wailsapp/wails/pull/1902 中提交
- 从模板中移除
.git
目录 - @misitebao 在 https://github.com/wailsapp/wails/pull/1929 中提交 - 修复 wails dev - @JulioDRF 在 https://github.com/wailsapp/wails/pull/1931 中提交
- 修复开发文件系统监视器对新
go
文件的考虑 - @scottopell 在 https://github.com/wailsapp/wails/pull/1946 中提交 - 防止类型解析干扰 TypeScript 包名称 - @ValentinTrinque 在 https://github.com/wailsapp/wails/pull/1942 中提交
- [开发]当使用前端开发服务器时,不要尝试从 fs.FS 推断 assetdir - @stffabi 在 https://github.com/wailsapp/wails/pull/1972 中提交
- 修复 wails help 消息中未列出 init 命令 - @lyon-lee-dev 在 https://github.com/wailsapp/wails/pull/1976 中提交
更改
- 添加 PR 检查 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1879 中提交
- 自动标记项目卡片 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1881 中提交
- 添加问题翻译器 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1891 中提交
- 更新问题模板中的标签名称 - @misitebao 在 https://github.com/wailsapp/wails/pull/1893 中提交
- 文档中使用 obfuscated 代替 obfuscate - @arifali123 在 https://github.com/wailsapp/wails/pull/1895 中提交
- [assetHandler]移除冗余的日志前缀 - @stffabi 在 https://github.com/wailsapp/wails/pull/1896 中提交
- [开发]不要在开发应用程序本身中生成绑定 - @stffabi 在 https://github.com/wailsapp/wails/pull/1899 中提交
- 更新中文翻译 - @almas1992 在 https://github.com/wailsapp/wails/pull/1894 中提交
- 重构应用程序 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1909 中提交
- 更新文档 - @misitebao 在 https://github.com/wailsapp/wails/pull/1907 https://github.com/wailsapp/wails/pull/1936 中提交
- 添加教程链接 - @raguay 在 https://github.com/wailsapp/wails/pull/1903 中提交
- 添加 react-ts-vite-tailwind 模板 - @hotafrika 在 https://github.com/wailsapp/wails/pull/1930 中提交
- 更新 README.zh-Hans.md - @o8x 在 https://github.com/wailsapp/wails/pull/1949 中提交
- 添加 Elm Tailwind CSS 社区模板 - @rnice01 在 https://github.com/wailsapp/wails/pull/1939 中提交
- Chore/generate sponsors - @leaanthony 在 https://github.com/wailsapp/wails/pull/1965 中提交
- 为网站使用 swc + pnpm - @leaanthony 在 https://github.com/wailsapp/wails/pull/1966 中提交
- 对 models.ts 中的结构进行排序 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1961 中提交
- 更新赞助商图片 - @github-actions 在 https://github.com/wailsapp/wails/pull/1973 中提交
- docs: 同步文档 - @misitebao 在 https://github.com/wailsapp/wails/pull/1968 中提交
- 更新 events.mdx - @cuigege 在 https://github.com/wailsapp/wails/pull/1979 中提交
新贡献者
- @arifali123 在 https://github.com/wailsapp/wails/pull/1895 中贡献了他们的第一个代码
- @almas1992 在 https://github.com/wailsapp/wails/pull/1894 中贡献了他们的第一个代码
- @JulioDRF 在 https://github.com/wailsapp/wails/pull/1902 中贡献了他们的第一个代码
- @hotafrika 在 https://github.com/wailsapp/wails/pull/1930 中贡献了他们的第一个代码
- @scottopell 在 https://github.com/wailsapp/wails/pull/1946 中贡献了他们的第一个代码
- @o8x 在 https://github.com/wailsapp/wails/pull/1949 中贡献了他们的第一个代码
- @rnice01 在 https://github.com/wailsapp/wails/pull/1939 中贡献了他们的第一个代码
- @cuigege 在 https://github.com/wailsapp/wails/pull/1979 中贡献了他们的第一个代码
- @lyon-lee-dev 在 https://github.com/wailsapp/wails/pull/1976 中贡献了他们的第一个代码
v2.0.0 - 2022-09-22
修复
- 修复 @stffabi 在 https://github.com/wailsapp/wails/pull/1858 中提交的 buildtags 解析问题,如果只指定一个标签
- 使用 embed all 将所有文件包含在模板中 - @stffabi 在 https://github.com/wailsapp/wails/pull/1862 中提交
更改
- 将最低要求的 Go 版本提升至 1.18 - @stffabi 在 https://github.com/wailsapp/wails/pull/1854 中提交
- 添加对最低要求的 Go 版本的检查 - @stffabi 在 https://github.com/wailsapp/wails/pull/1853 中提交
- chore: 更新 README 和工作流程 - @misitebao 在 https://github.com/wailsapp/wails/pull/1848 中提交
- 更新 introduction.mdx - @ParvinEyvazov 在 https://github.com/wailsapp/wails/pull/1863 中提交
- Releasetest/release 工作流程 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1869 中提交
- 优化文档网站 - @misitebao 在 https://github.com/wailsapp/wails/pull/1849 中提交
新贡献者
- @ParvinEyvazov 在 https://github.com/wailsapp/wails/pull/1863 中贡献了他们的第一个代码
v2.0.0-rc.1 - 2022-09-13
已弃用
wails dev
命令的-noGen
标志已被-skipbindings
替换。这是为了与wails build
命令保持一致。
新增
- 添加 garble 支持 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1793 中提交
- 使可拖动 CSS 属性可定制 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1828 中提交
- 添加一些窗口状态 - @zandercodes 在 https://github.com/wailsapp/wails/pull/1349 中提交
- 使 EventsOff 能够移除多个监听器 - @Lyimmi 在 https://github.com/wailsapp/wails/pull/1822 中提交
修复
- 当 Go 例程没有输出时,使用
Promise<void>
- @SheetJSDev 在 https://github.com/wailsapp/wails/pull/1821 中提交 - preact-ts 模板构建修复 - @Debdut 在 https://github.com/wailsapp/wails/pull/1781 中提交
- 修复 frontend/tsconfig.js - @Lyimmi 在 https://github.com/wailsapp/wails/pull/1795 中提交
- 修复:修复网站中的错误 - @misitebao 在 https://github.com/wailsapp/wails/pull/1810 中提交
- 修复 vue-ts 模板 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1813 中提交
- 移除 win32/window.go 中的重复定义 - @AlbinoDrought 在 https://github.com/wailsapp/wails/pull/1832 中提交
更改
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1744 中将 React 升级到使用 Vite v3
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1745 中将 Lit 升级到使用 Vite v3
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1746 中为 Vue 添加了 vite3 支持
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1770 中为 vite 3 添加了 Preact 模板
- @stffabi 在 https://github.com/wailsapp/wails/pull/1771 中防止环境变量和注册表覆盖更改行为
- @stffabi 在 https://github.com/wailsapp/wails/pull/1790 中使用 go 实现来检索固定运行时的版本
- @misitebao 在 https://github.com/wailsapp/wails/pull/1777 中将贡献指南类型从“doc”更改为“page”
- @misitebao 在 https://github.com/wailsapp/wails/pull/1775 中修复了文档内容(feat(website): repair document content)
- @misitebao 在 https://github.com/wailsapp/wails/pull/1776 中整理了文件(chore: sort out files)
- @jaesung9507 在 https://github.com/wailsapp/wails/pull/1774 中为文档添加了韩语
- @shinshin86 在 https://github.com/wailsapp/wails/pull/1783 中添加了 README.ja.md
- @misitebao 在 https://github.com/wailsapp/wails/pull/1784 中重新组织了贡献指南页面
- @misitebao 在 https://github.com/wailsapp/wails/pull/1785 中修复了链接(fix(website): fix link)
- @KiddoV 在 https://github.com/wailsapp/wails/pull/1799 中更新了 templates.mdx
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1827 中改进了观察器
- @prurigro 在 https://github.com/wailsapp/wails/pull/1811 中仅在 GDK_BACKEND 未设置且 XDG_SESSION_TYPE 不为“wayland”时将 GDK_BACKEND 设置为“x11”
- @imgbot 在 https://github.com/wailsapp/wails/pull/1812 中优化了图片
新贡献者
- @shinshin86 在 https://github.com/wailsapp/wails/pull/1783 中做出了首次贡献
- @Debdut 在 https://github.com/wailsapp/wails/pull/1781 中做出了首次贡献
- @KiddoV 在 https://github.com/wailsapp/wails/pull/1799 中做出了首次贡献
- @zandercodes 在 https://github.com/wailsapp/wails/pull/1349 中做出了首次贡献
- @prurigro 在 https://github.com/wailsapp/wails/pull/1811 中做出了首次贡献
- @SheetJSDev 在 https://github.com/wailsapp/wails/pull/1821 中做出了首次贡献
- @AlbinoDrought 在 https://github.com/wailsapp/wails/pull/1832 中做出了首次贡献
- @imgbot 在 https://github.com/wailsapp/wails/pull/1812 中做出了首次贡献
v2.0.0-beta.44 - 2022-08-20
弃用
data-wails-drag
属性即将被弃用,取而代之的是以下 CSS 样式:style="--wails-draggable:drag"
。可以使用 style="--wails-draggable:no-drag"
禁用拖动行为。仅在本版本中,可以通过设置以下应用程序选项来测试此功能
Experimental: &options.Experimental{
UseCSSDrag: true,
},
新增
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1763 中为生成的文件设置了文件权限
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1750 中实验性地支持 CSS 拖动检测
修复
- @stffabi 在 https://github.com/wailsapp/wails/pull/1715 中修复了为平台收集输出二进制文件的错误
- @ValentinTrinque 在 https://github.com/wailsapp/wails/pull/1727 中修复了公开字段的注册
- @ianmjones 在 https://github.com/wailsapp/wails/pull/1717 中修复了 doctor 命令依赖项表的列宽
- 不再为
OnBeforeClose
方法生成绑定
更改
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1713 中进行了代码重构和删除
- @Maicarons2022 在 https://github.com/wailsapp/wails/pull/1755 中将 react-router 添加到 routing.mdx
- @RyoTagami 在 https://github.com/wailsapp/wails/pull/1716 中为文档添加了日语
- @raguay 在 https://github.com/wailsapp/wails/pull/1728 中添加了 EmailIt 和 Modal File Manager
- @raguay 在 https://github.com/wailsapp/wails/pull/1761 中添加了我的 ScriptBar 程序
- @stffabi 在 https://github.com/wailsapp/wails/pull/1764 中链接到通用 webview2 运行时下载页面,而不是特定语言的页面
- 在 https://github.com/wailsapp/wails/pull/1719 和 https://github.com/wailsapp/wails/pull/1720 中更新了翻译
- @DragoSpiro98 在 https://github.com/wailsapp/wails/pull/1765 中删除了样式括号外的文本
新贡献者
- @RyoTagami 在 https://github.com/wailsapp/wails/pull/1716 中做出了首次贡献
- @raguay 在 https://github.com/wailsapp/wails/pull/1728 中做出了首次贡献
- @Maicarons2022 在 https://github.com/wailsapp/wails/pull/1755 中做出了首次贡献
- @DragoSpiro98 在 https://github.com/wailsapp/wails/pull/1765 中做出了首次贡献
v2.0.0-beta.43 - 2022-08-08
新增
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1679 中添加了从 Github 获取发行说明的支持
- @LGiki 在 https://github.com/wailsapp/wails/pull/1666 中添加了
frontend:dev:install
配置
修复
- @stffabi 在 https://github.com/wailsapp/wails/pull/1665 中修复了某些错误消息的格式
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1662 中修复了当窗口尚未可见时 Windows 对话框现在可以工作
- @stffabi 在 https://github.com/wailsapp/wails/pull/1668 和 https://github.com/wailsapp/wails/pull/1681 中修复了 MacOS 资源请求的多个错误
- @stffabi 在 https://github.com/wailsapp/wails/pull/1689 中修复了 Go 1.19 的问题
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1656 中删除了 Linux 警告
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1704 中改进了对拖动区域中的双击事件的支持
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1705 中允许 MacOS 无边框窗口最小化
更改
- @h8gi 在 https://github.com/wailsapp/wails/pull/1671 中添加了 wails-sveltekit-template
- @stffabi 在 https://github.com/wailsapp/wails/pull/1673 中使 wails doctor 现在报告正确的 MacOS 操作系统 ID
- @SamHennessy 在 https://github.com/wailsapp/wails/pull/1682 中更新了 application-development.mdx
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1684 中将 SetMin/Max 调用移至主线程
- @LGiki 在 https://github.com/wailsapp/wails/pull/1691 中将
frontend:dev
更改为frontend:dev:build
- @stffabi 在 https://github.com/wailsapp/wails/pull/1694 中在启动开发观察器命令之前仅构建前端
- @stffabi 在 https://github.com/wailsapp/wails/pull/1711 中改进了在没有开发观察器的情况下自动发现开发服务器的错误消息
新贡献者
- @h8gi 在 https://github.com/wailsapp/wails/pull/1671 中做出了首次贡献
- @SamHennessy 在 https://github.com/wailsapp/wails/pull/1682 中做出了首次贡献
v2.0.0-beta.42 - 2022-07-25
新增
- @leaanthony 添加了
options.NewRGBA
和options.NewRGB
函数来创建*options.RGBA
修复
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1650 中修复了在使用
wails dev
创建新项目时前端的初始构建 - @stffabi 在 https://github.com/wailsapp/wails/pull/1651 中忽略了在运行
wails dev
时空安装命令 - 修复了模板中的错误报告
- BackgroundColour 文档修复
- 将手动编译步骤通用化[文档]@acheong08 在 https://github.com/wailsapp/wails/pull/1644 中进行了更改
v2.0.0-beta.40 - 2022-07-24
新增
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1599 中将 Show() 和 Hide() 添加到运行时以显示/隐藏应用程序
- 通过 GOOS 和 GOARCH 环境变量覆盖目标平台/架构 by @leaanthony in https://github.com/wailsapp/wails/pull/1618
- 在开发模式下添加跳过前端重建的选项 by @leaanthony in https://github.com/wailsapp/wails/pull/1632
修复
- 更新 svelte 模板以使用 vite 3 by @leaanthony in https://github.com/wailsapp/wails/pull/1643
- 修复 plain 模板 by @stffabi in https://github.com/wailsapp/wails/pull/1609
- 修复网站布局 by @leaanthony in https://github.com/wailsapp/wails/pull/1616
- 修复文档页面 docs/howdoesitwork 中的拼写错误 by @MyNameIsAres in https://github.com/wailsapp/wails/pull/1636
- 在设置最小/最大窗口时使用缩放 by @leaanthony in https://github.com/wailsapp/wails/pull/1557
更改
- 在启动开发模式之前安装开发依赖项 by @leaanthony in https://github.com/wailsapp/wails/pull/1615
- 翻译和修复网站文本 by @misitebao in https://github.com/wailsapp/wails/pull/1525
- docs: 将 MyNameIsAres 添加为文档贡献者 by @allcontributors in https://github.com/wailsapp/wails/pull/1638
- 弃用 Fullscreen 应用程序选项 by @acheong08 in https://github.com/wailsapp/wails/pull/1640
已弃用
Fullscreen
应用程序选项已弃用。请使用WindowStartState
代替。
新的贡献者
- @MyNameIsAres 在 https://github.com/wailsapp/wails/pull/1636 中做出了他们的首次贡献
v2.0.0-beta.39.2 - 2022-07-20
添加
- 更新 macOS 菜单示例 by @acheong08 in https://github.com/wailsapp/wails/pull/1600
修复
- 恢复 Go 1.17 兼容性 by @leaanthony in https://github.com/wailsapp/wails/pull/1605
v2.0.0-beta.39 - 2022-07-19
添加
- 新的屏幕尺寸运行时 API by @skamensky in https://github.com/wailsapp/wails/pull/1519
- 自动发现 vite devserver 端口 by @leaanthony in https://github.com/wailsapp/wails/pull/1547
- 将 nixpkgs 支持添加到 doctor 命令中。 by @ianmjones in https://github.com/wailsapp/wails/pull/1551
- 新的预构建钩子功能 by @leaanthony in https://github.com/wailsapp/wails/pull/1578
- 新的生产日志级别选项 by @leaanthony in https://github.com/wailsapp/wails/pull/1555
修复
- 修复在 Windows 上使用 ICoreWebView2HttpHeadersCollectionIterator 时发生的堆栈损坏 by @stffabi in https://github.com/wailsapp/wails/pull/1589
- 将 WindowGet*移动到主线程 by @leaanthony in https://github.com/wailsapp/wails/pull/1464
- 允许 -appargs 标志将标志传递给二进制文件。 by @ianmjones in https://github.com/wailsapp/wails/pull/1534
- 修复在非英语会话中检查已安装的 apt 包。 by @ianmjones in https://github.com/wailsapp/wails/pull/1548
- 修复 Mac 的 OnBeforeClose 代码 by @leaanthony in https://github.com/wailsapp/wails/pull/1558
- 在 TS 转换中支持 Maps by @leaanthony in https://github.com/wailsapp/wails/pull/1435
- 在扫描本地 devserver url 时检查行长 by @leaanthony in https://github.com/wailsapp/wails/pull/1566
- 删除 winc 中对 unsafe.Pointer 的使用 by @stffabi 和 @leaanthony in https://github.com/wailsapp/wails/pull/1556
更改
- 重命名 WindowSetRGBA -> WindowSetBackgroundColour by @leaanthony in https://github.com/wailsapp/wails/pull/1506
- 改进开发命令 by @stffabi in https://github.com/wailsapp/wails/pull/1510
- 更新 vscode 模板 by @leaanthony in https://github.com/wailsapp/wails/pull/1398
- 将 svelte 从 3.42.2 提升到 3.49.0 in /v2/internal/frontend/runtime/dev by @dependabot in https://github.com/wailsapp/wails/pull/1572
- 将 svelte 从 3.42.5 提升到 3.49.0 in /v2/internal/frontend/runtime by @dependabot in https://github.com/wailsapp/wails/pull/1573
- 添加
Not Found
错误的故障排除 by @acheong08 in https://github.com/wailsapp/wails/pull/1586 - Docs/更好的主页 by @leaanthony in https://github.com/wailsapp/wails/pull/1591
新的贡献者
- @skamensky 在 https://github.com/wailsapp/wails/pull/1519 中做出了他们的首次贡献
- @acheong08 在 https://github.com/wailsapp/wails/pull/1586 中做出了他们的首次贡献
完整变更日志: https://github.com/wailsapp/wails/compare/v2.0.0-beta.38...v2.0.0-beta.39
v2.0.0-beta.38 - 2022-06-27
添加
- 将竞争检测器添加到构建和开发中 by @Lyimmi in https://github.com/wailsapp/wails/pull/1426
- [linux]支持
linux/arm
架构 by @Lyimmi in https://github.com/wailsapp/wails/pull/1427 - 使用
-g
选项时创建 gitignore by @jaesung9507 in https://github.com/wailsapp/wails/pull/1430 - [windows]添加 Suspend/Resume 回调支持 by @leaanthony in https://github.com/wailsapp/wails/pull/1474
- 添加运行时函数
WindowSetAlwaysOnTop
by @chenxiao1990 in https://github.com/wailsapp/wails/pull/1442 - [windows]允许设置浏览器路径 by @NanoNik in https://github.com/wailsapp/wails/pull/1448
修复
- [linux]改进切换到回调的主线程 by @stffabi in https://github.com/wailsapp/wails/pull/1392
- [windows]修复 WebView2 最小运行时版本检查 by @stffabi in https://github.com/wailsapp/wails/pull/1456
- [linux]修复 apt 命令语法 (#1458) by @abtin in https://github.com/wailsapp/wails/pull/1461
- [windows]如果提供则设置窗口背景颜色 + 防抖重绘选项 by @leaanthony in https://github.com/wailsapp/wails/pull/1466
- 修复文档中的小错误 by @LukenSkyne in https://github.com/wailsapp/wails/pull/1449
- 修复指向 surge 的 url by @andywenk in https://github.com/wailsapp/wails/pull/1460
- 修复运行时主题更改 by @leaanthony in https://github.com/wailsapp/wails/pull/1473
- 修复:如果无法删除临时绑定构建,则不要停止 by @leaanthony in https://github.com/wailsapp/wails/pull/1465
- [windows]将正确的 installationStatus 传递给 webview 安装策略 by @stffabi in https://github.com/wailsapp/wails/pull/1483
- [windows]使
SetBackgroundColour
与windows/386
兼容 by @stffabi in https://github.com/wailsapp/wails/pull/1493 - 修复 lit-ts 模板 by @Orijhins in https://github.com/wailsapp/wails/pull/1494
更改
- [windows]仅从嵌入式加载 WebView2 加载程序 by @stffabi in https://github.com/wailsapp/wails/pull/1432
- 添加 10 月的展示条目 + 更新主页轮播条目以显示 10 月 by @marcus-crane in https://github.com/wailsapp/wails/pull/1436
- 始终在包装方法中使用 return by @leaanthony in https://github.com/wailsapp/wails/pull/1410
- [windows]在完成本机调用后解锁 OSThread by @stffabi in https://github.com/wailsapp/wails/pull/1441
- 添加
BackgroundColour
并弃用RGBA
by @leaanthony in https://github.com/wailsapp/wails/pull/1475 - AssetsHandler 在开发模式下删除重试逻辑 by @stffabi in https://github.com/wailsapp/wails/pull/1479
- 将 Solid JS 模板添加到文档 by @sidwebworks in https://github.com/wailsapp/wails/pull/1492
- 更好的信号处理 by @leaanthony in https://github.com/wailsapp/wails/pull/1488
- Chore/react 18 创建根 by @tomanagle in https://github.com/wailsapp/wails/pull/1489
新贡献者
- @jaesung9507 在 https://github.com/wailsapp/wails/pull/1430 中做出了他们的第一次贡献
- @LukenSkyne 在 https://github.com/wailsapp/wails/pull/1449 中做出了他们的第一次贡献
- @andywenk 在 https://github.com/wailsapp/wails/pull/1460 中做出了他们的第一次贡献
- @abtin 在 https://github.com/wailsapp/wails/pull/1461 中做出了他们的第一次贡献
- @chenxiao1990 在 https://github.com/wailsapp/wails/pull/1442 中做出了他们的第一次贡献
- @NanoNik 在 https://github.com/wailsapp/wails/pull/1448 中做出了他们的第一次贡献
- @sidwebworks 在 https://github.com/wailsapp/wails/pull/1492 中做出了他们的第一次贡献
- @tomanagle 在 https://github.com/wailsapp/wails/pull/1489 中做出了他们的第一次贡献
v2.0.0-beta.37 - 2022-05-26
新增
- @mondy 在 https://github.com/wailsapp/wails/pull/1413 中为 wails dev 命令添加了
nogen
标志 - @leaanthony 在 https://github.com/wailsapp/wails/pull/1400 中为 Windows 预览版添加了对新原生半透明的支持
修复
- @leaanthony 在 https://github.com/wailsapp/wails/pull/1383 中修复了 Bugfix/incorrect bindings
- @polikow 在 https://github.com/wailsapp/wails/pull/1369 中修复了 runtime.js 事件
- @antimatter96 在 https://github.com/wailsapp/wails/pull/1372 中修复了文档格式
- @lambdajack 在 https://github.com/wailsapp/wails/pull/1390 中修复了 Events | fixes #1388
- @tmclane 在 https://github.com/wailsapp/wails/pull/1391 中修复了 bugfix: correct typo
- @LGiki 在 https://github.com/wailsapp/wails/pull/1393 中修复了文档中的拼写错误
- @rayshoo 在 https://github.com/wailsapp/wails/pull/1406 中修复了文档中的拼写错误 bindings.js to ipc.js
- @stffabi 在 https://github.com/wailsapp/wails/pull/1403 中确保在新的 goroutine 上执行菜单回调
- @Yz4230 在 https://github.com/wailsapp/wails/pull/1421 中更新了 runtime.d.ts & templates
- @edwardbrowncross 在 https://github.com/wailsapp/wails/pull/1419 中为 React 和 Preact 模板中的 input 添加了缺失的 className
变更
- @stffabi 在 https://github.com/wailsapp/wails/pull/1373 中改进了多平台构建
- @stffabi 在 https://github.com/wailsapp/wails/pull/1385 中在 wails dev 期间,如果未使用 AssetsHandler,则仅使用重新加载逻辑
- @Junkher 在 https://github.com/wailsapp/wails/pull/1387 中更新了 events.mdx
- @LGiki 在 https://github.com/wailsapp/wails/pull/1394 中添加了 Next.js 模板
- @TechplexEngineer 在 https://github.com/wailsapp/wails/pull/1414 中添加了 wails generate 模块的文档
- @daodao97 在 https://github.com/wailsapp/wails/pull/1423 中添加了 macos 自定义菜单 EditMenu 提示
新贡献者
- @polikow 在 https://github.com/wailsapp/wails/pull/1369 中做出了他们的第一次贡献
- @antimatter96 在 https://github.com/wailsapp/wails/pull/1372 中做出了他们的第一次贡献
- @Junkher 在 https://github.com/wailsapp/wails/pull/1387 中做出了他们的第一次贡献
- @lambdajack 在 https://github.com/wailsapp/wails/pull/1390 中做出了他们的第一次贡献
- @LGiki 在 https://github.com/wailsapp/wails/pull/1393 中做出了他们的第一次贡献
- @rayshoo 在 https://github.com/wailsapp/wails/pull/1406 中做出了他们的第一次贡献
- @TechplexEngineer 在 https://github.com/wailsapp/wails/pull/1414 中做出了他们的第一次贡献
- @mondy 在 https://github.com/wailsapp/wails/pull/1413 中做出了他们的第一次贡献
- @Yz4230 在 https://github.com/wailsapp/wails/pull/1421 中做出了他们的第一次贡献
- @daodao97 在 https://github.com/wailsapp/wails/pull/1423 中做出了他们的第一次贡献
- @edwardbrowncross 在 https://github.com/wailsapp/wails/pull/1419 中做出了他们的第一次贡献
v2.0.0-beta.36 - 2022-04-27
修复
- [v2]@stffabi 在 https://github.com/wailsapp/wails/pull/1359 中验证 devServer 属性是否为正确格式
- [v2, darwin]@stffabi 在 https://github.com/wailsapp/wails/pull/1362 中在堆栈上初始化原生变量,以防止出现段错误
- Vue-TS 模板修复
变更
- 将
OnStartup
方法添加回默认模板
v2.0.0-beta.35 - 2022-04-27
重大变更
- 当数据被发送到
EventsOn
回调时,它被发送为值切片,而不是方法的可选参数。EventsOn
现在按预期工作,但如果您当前使用它,则需要更新您的代码。 更多信息 - 损坏的
bindings.js
和bindings.d.ts
文件已被新的 JS/TS 代码生成系统替换。 更多细节 在此
新增
- 新模板:Svelte、React、Vue、Preact、Lit 和 Vanilla 模板,JS 和 TS 版本都有。
wails init -l
获取更多信息。 - 默认模板现在由 Vite 提供支持。 当您使用
wails dev
时,这将使您能够以闪电般的速度重新加载! - @stffabi 添加了对外部前端开发服务器的支持。 请参阅项目配置中的
frontend:dev:serverUrl
- 项目配置 - 完全可配置的深色模式 适用于 Windows。
- 极大地改进了 WailsJS 生成(JavaScript 和 TypeScript)
- @stffabi Wails doctor 现在报告有关 wails 安装的信息
- @gardc 添加了有关 代码签名 和 NSIS 安装程序 的文档
- 添加了对
-trimpath
构建标志 的支持 - @stffabi 添加了对默认 AssetsHandler 的支持
修复
- @napalu 改进了针对 BOM 标记和注释的 mimetype 检测
- @napalu 移除重复的 mimetype 条目
- @adalessa 在生成的定义文件中删除了重复的 TypeScript 导入
- @adalessa 添加了缺少的方法声明
- @napalu 修复了 Linux 启动时出现的 sigabrt
- @jicg 双击事件现在可以在具有
data-wails-drag
属性的元素上工作 - @stffabi 在无边框窗口最小化期间抑制调整大小
- 修复了针对没有返回值的 Go 方法的 TS/JS 生成
- 修复了在项目目录中生成 WailsJS 的问题
变更
- 网站文档现在已版本化
- 改进了
runtime.Environment
调用 - 改进了 Mac 的关闭操作
- 一堆 dependabot 安全更新
- @misitebao 改进了网站内容
- @misitebao 升级了问题模板
- 将不需要版本管理的文档转换为单个页面
- 网站现在使用 Algolia 搜索
v2.0.0-beta.34 - 2022-03-26
新增
- @napalu 在 #1249 中添加了对 linux 上 'DomReady' 回调的支持
- @leaanthony 在 #1228 中添加了 MacOS - 默认情况下显示扩展名
修复
- [v2, nsis]在 #1227 中,@stffabi 指出,似乎 / 作为路径分隔符仅在跨平台情况下对某些指令有效。
- 在 #123 中,@adalessa 实现了在绑定定义中导入模型。
- 在 #1234 中,@leaanthony 在网站上实现了本地搜索功能。
- 在 #1240 中,@napalu 确保了二进制资源可以被正常提供。
- 在 #1241 中,@leaanthony 实现了仅在从磁盘加载时重试加载资源的功能。
- [v2, windows]在 #1243 中,@stffabi 修复了最大化启动状态的问题。
- 在 #1245 中,@ianmjones 确保了 Linux IsFullScreen 正确地使用 GDK_WINDOW_STATE_FULLSCREEN 位掩码。
- 在 #1230 中,@leaanthony 修复了 ExecJS 在 Mac 上的内存泄漏问题。
- 在 #1247 中,@BillBuilt 修复了 (#1232) 中的问题,或者至少提供了一个解决方法。
- [v2]使用 os.Args[0]在 #1258 中,@stffabi 为自启动的 wails 程序添加了该功能。
- [v2, windows]在 #1255 中,@stefpap 将 Windows 切换方案从 https 更改为 http。
- 在 #1257 中,@leaanthony 确保了 Webview2 在按下 Tab 键时能重新获得焦点。
- 在 #1212 中,@leaanthony 尝试在调用 Show() 时聚焦窗口。
- 在 #1180 中,@leaanthony 检查系统以查找用户安装的 Linux 依赖项。
已更改
- 在 #1215 中,@misitebao 添加了网站功能:同步文档和添加内容。
- 在 #1214 中,@misitebao 重构了 CLI,优化了默认模板。
- 在 #1216 中,@leaanthony 实现了在初始构建后运行观察程序的功能。
- 在 #1218 中,@leaanthony 更新了文档。
- 在 #1219 中,@misitebao 添加了网站功能:优化网站和同步文档。
- 在 #1224 中,@misitebao 同步了文档。
- 在 #1229 中,@leaanthony 添加了默认首页。
- 在 #1238 中,@fengweiqiang 为构建添加了 win32 兼容性。
- 在 #1260 中,@misitebao 同步了文档。
v2.0.0-beta.33 - 2022-03-05
已添加
- 感谢 @stffabi 🎉 为 Windows 应用程序创建安装程序添加了 NSIS 安装程序支持。
- 感谢 @stffabi 🎉 为使用 wails dev 时启动第三方观察程序添加了新的 frontend:dev:watcher 命令。
- 感谢 @misitebao 🎉 远程模板现在支持版本标签。
已修复
- 感谢 @ianmjones 🎉 修复了 ARM Linux 的一些问题,带来了巨大的改进。
- 修复了在发现
index.html
路径时可能出现的空引用问题。 - 修复了在生产环境构建中使用
runtime.Log
方法时发生的崩溃问题。 - 感谢 @stffabi 🎉 改进了内部文件处理,这意味着 Web 工作线程现在可以在 Windows 上工作。
已更改
- Webview2 引导程序现在以普通用户身份运行,不需要管理员权限。
- 文档已改进并更新。
- 添加了故障排除指南。