mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-20 06:01:22 +08:00
doc: update docs/wails.md #973
This commit is contained in:
@ -277,14 +277,14 @@ ClipboardSetText("text")
|
|||||||
### Windows 打包
|
### Windows 打包
|
||||||
<!--rehype:wrap-class=col-span-2 row-span-2-->
|
<!--rehype:wrap-class=col-span-2 row-span-2-->
|
||||||
|
|
||||||
#### <red>▶</red> 默认生成: `.exe` 可执行文件。
|
#### <red>■</red> 默认生成: `.exe` 可执行文件。
|
||||||
<!--rehype:style=text-align: left;font-weight: bold;-->
|
<!--rehype:style=text-align: left;font-weight: bold;-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ wails build -platform windows/amd64
|
$ wails build -platform windows/amd64
|
||||||
```
|
```
|
||||||
|
|
||||||
#### <red>▶</red> 生成 NSIS 安装程序:
|
#### <red>■</red> 生成 NSIS 安装程序:
|
||||||
<!--rehype:style=text-align: left;font-weight: bold;-->
|
<!--rehype:style=text-align: left;font-weight: bold;-->
|
||||||
|
|
||||||
**前提条件**: 需要预先安装 [NSIS (Nullsoft Scriptable Install System)](https://nsis.sourceforge.io/Download)。
|
**前提条件**: 需要预先安装 [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
|
$ wails build -platform windows/amd64 -nsis
|
||||||
```
|
```
|
||||||
|
|
||||||
#### <red>▶</red> 处理 WebView2 依赖:
|
#### <red>■</red> 处理 WebView2 依赖:
|
||||||
<!--rehype:style=text-align: left;font-weight: bold;-->
|
<!--rehype:style=text-align: left;font-weight: bold;-->
|
||||||
|
|
||||||
`download`: 提示用户下载 WebView2。
|
`download`: 提示用户下载 WebView2。
|
||||||
@ -327,19 +327,19 @@ $ wails build -platform windows/amd64 -webview2 browser
|
|||||||
### macOS 打包
|
### macOS 打包
|
||||||
|
|
||||||
|
|
||||||
#### <red>▶</red> 默认生成: `.app` 应用程序包。
|
#### <red>■</red> 默认生成: `.app` 应用程序包。
|
||||||
<!--rehype:style=text-align: left;font-weight: bold;-->
|
<!--rehype:style=text-align: left;font-weight: bold;-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ wails build -platform darwin/amd64
|
$ wails build -platform darwin/amd64
|
||||||
```
|
```
|
||||||
|
|
||||||
#### <red>▶</red> 代码签名与公证:
|
#### <red>■</red> 代码签名与公证:
|
||||||
<!--rehype:style=text-align: left;font-weight: bold;-->
|
<!--rehype:style=text-align: left;font-weight: bold;-->
|
||||||
|
|
||||||
需要通过 Apple 开发者账户进行 **代码签名** 和 **公证** 才能分发。
|
需要通过 Apple 开发者账户进行 **代码签名** 和 **公证** 才能分发。
|
||||||
|
|
||||||
#### <red>▶</red> 跳过打包成 `.app` 步骤:
|
#### <red>■</red> 跳过打包成 `.app` 步骤:
|
||||||
<!--rehype:style=text-align: left;font-weight: bold;-->
|
<!--rehype:style=text-align: left;font-weight: bold;-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -349,21 +349,21 @@ $ wails build -platform darwin/amd64 -skippackage
|
|||||||
|
|
||||||
### Linux 打包
|
### Linux 打包
|
||||||
|
|
||||||
#### <red>▶</red> 生成可执行文件
|
#### <red>■</red> 生成可执行文件
|
||||||
<!--rehype:style=text-align: left;font-weight: bold;-->
|
<!--rehype:style=text-align: left;font-weight: bold;-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ wails build -platform linux/amd64
|
$ wails build -platform linux/amd64
|
||||||
```
|
```
|
||||||
|
|
||||||
#### <red>▶</red> 打包成 `.deb`
|
#### <red>■</red> 打包成 `.deb`
|
||||||
<!--rehype:style=text-align: left;font-weight: bold;-->
|
<!--rehype:style=text-align: left;font-weight: bold;-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ wails build -platform linux/amd64 -deb
|
$ wails build -platform linux/amd64 -deb
|
||||||
```
|
```
|
||||||
|
|
||||||
#### <red>▶</red> 打包成 `.rpm`
|
#### <red>■</red> 打包成 `.rpm`
|
||||||
<!--rehype:style=text-align: left;font-weight: bold;-->
|
<!--rehype:style=text-align: left;font-weight: bold;-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Reference in New Issue
Block a user