doc: update docs/wails.md #973

This commit is contained in:
小弟调调
2025-06-16 21:42:14 +08:00
parent 721b876dea
commit cb3b1b89c5

View File

@ -277,14 +277,14 @@ ClipboardSetText("text")
### Windows 打包
<!--rehype:wrap-class=col-span-2 row-span-2-->
#### <red></red> 默认生成: `.exe` 可执行文件。
#### <red></red> 默认生成: `.exe` 可执行文件。
<!--rehype:style=text-align: left;font-weight: bold;-->
```bash
$ wails build -platform windows/amd64
```
#### <red></red> 生成 NSIS 安装程序:
#### <red></red> 生成 NSIS 安装程序:
<!--rehype:style=text-align: left;font-weight: bold;-->
**前提条件**: 需要预先安装 [NSIS (Nullsoft Scriptable Install System)](https://nsis.sourceforge.io/Download)。
@ -305,7 +305,7 @@ $ wails build -platform windows/amd64
$ wails build -platform windows/amd64 -nsis
```
#### <red></red> 处理 WebView2 依赖:
#### <red></red> 处理 WebView2 依赖:
<!--rehype:style=text-align: left;font-weight: bold;-->
`download`: 提示用户下载 WebView2。
@ -327,19 +327,19 @@ $ wails build -platform windows/amd64 -webview2 browser
### macOS 打包
#### <red></red> 默认生成: `.app` 应用程序包。
#### <red></red> 默认生成: `.app` 应用程序包。
<!--rehype:style=text-align: left;font-weight: bold;-->
```bash
$ wails build -platform darwin/amd64
```
#### <red></red> 代码签名与公证:
#### <red></red> 代码签名与公证:
<!--rehype:style=text-align: left;font-weight: bold;-->
需要通过 Apple 开发者账户进行 **代码签名** 和 **公证** 才能分发。
#### <red></red> 跳过打包成 `.app` 步骤:
#### <red></red> 跳过打包成 `.app` 步骤:
<!--rehype:style=text-align: left;font-weight: bold;-->
```bash
@ -349,21 +349,21 @@ $ wails build -platform darwin/amd64 -skippackage
### Linux 打包
#### <red></red> 生成可执行文件
#### <red></red> 生成可执行文件
<!--rehype:style=text-align: left;font-weight: bold;-->
```bash
$ wails build -platform linux/amd64
```
#### <red></red> 打包成 `.deb`
#### <red></red> 打包成 `.deb`
<!--rehype:style=text-align: left;font-weight: bold;-->
```bash
$ wails build -platform linux/amd64 -deb
```
#### <red></red> 打包成 `.rpm`
#### <red></red> 打包成 `.rpm`
<!--rehype:style=text-align: left;font-weight: bold;-->
```bash