Default desktop releases to the native Windows installer
This commit is contained in:
1 parent
010ed54b83
commit
4655f8a3c9
1 file changed
+21
-17
+21
-17
@@ -2,7 +2,8 @@
|
||||
|
||||
## Windows 原生版
|
||||
|
||||
Windows x64 原生版直接运行包内的引擎、TeX 资源和 BibTeX。项目在
|
||||
桌面版发布原生 Windows x64 NSIS 安装包,安装后直接运行随包的引擎、
|
||||
TeX 资源和 BibTeX,无需 WSL。项目在
|
||||
当前用户的 `%LOCALAPPDATA%\TexrraData\projects`。
|
||||
`backend` 须保留在程序旁边。运行环境
|
||||
需要 WebView2 和 Windows x64 Visual C++ 运行库。
|
||||
@@ -60,9 +61,24 @@ python3 desktop/build-windows-backend.py desktop/src-tauri/backend \
|
||||
--commit full-engine-git-commit
|
||||
```
|
||||
|
||||
按下文的 Tauri 构建方法将生成的 Windows `backend` 装入 NSIS。
|
||||
### 生成 Windows 安装包
|
||||
|
||||
## WSL 版
|
||||
运行下列 Tauri 命令前,确认 `desktop/src-tauri/backend/windows-bundle.json` 存在。
|
||||
在 Fedora WSL 构建机上使用 cargo-xwin、Windows SDK、LLVM 和 NSIS。
|
||||
在 Windows 上使用 MSVC 工具链,省略 `--runner cargo-xwin`。
|
||||
|
||||
```sh
|
||||
cd desktop
|
||||
cargo tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc -- --locked
|
||||
```
|
||||
|
||||
安装包位于 desktop/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis,
|
||||
或由 CARGO_TARGET_DIR 指定的对应目录。便携试用由 Windows 可执行文件
|
||||
和同目录的 backend 组成。 [Tauri Windows 打包文档](https://v2.tauri.app/distribute/windows-installer/)
|
||||
|
||||
## 旧 WSL 版
|
||||
|
||||
本节供维护已经发布的 WSL 兼容版时查阅。
|
||||
|
||||
Tauri 将现有项目库和原生预览工作台放入 Windows 窗口。安装包携带本轮的
|
||||
Route-D 引擎、已验证的 LaTeX 格式和 Web 界面。此版面向已有
|
||||
@@ -89,9 +105,9 @@ WSL 中需要已有的 TeX Live bibtex 和 kpsewhich。模板中新增的引文
|
||||
include 纳入的子文件。编辑区按 LaTeX 语法着色,并提示常用命令、
|
||||
环境和项目文件。已发布的横排正文支持选取和复制。
|
||||
|
||||
## 构建
|
||||
### 准备旧 WSL 版资源
|
||||
|
||||
在引擎仓库根目录使用已经完成定向回归的原生 release 构建回执,准备
|
||||
在引擎仓库根目录使用已经完成定向回归的 Linux 构建回执,准备
|
||||
desktop/src-tauri/backend。脚本校验发布提交、二进制、格式和 Web 资源的
|
||||
指纹。输出目录须可新建。
|
||||
|
||||
@@ -104,15 +120,3 @@ python3 desktop/build-backend.py prepare desktop/src-tauri/backend \
|
||||
包含 EPS 转换功能的安装包在上述准备命令中提供
|
||||
--eps-tools path/to/eps-tools.tar。该归档是可相对路径解包的 Fedora 工具树,
|
||||
包含 usr/bin/bwrap、usr/bin/gs、运行资源及许可证和上游源包清单。
|
||||
|
||||
在 Windows 上使用 Tauri 的 MSVC 工具链构建。在 Fedora WSL 上使用
|
||||
cargo-xwin、Windows SDK、LLVM 和 NSIS。
|
||||
|
||||
```sh
|
||||
cd desktop
|
||||
cargo tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc -- --locked
|
||||
```
|
||||
|
||||
安装包位于 desktop/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis,
|
||||
或由 CARGO_TARGET_DIR 指定的对应目录。便携试用由 Windows 可执行文件
|
||||
和同目录的 backend 组成。 [Tauri Windows 打包文档](https://v2.tauri.app/distribute/windows-installer/)
|
||||
Reference in new issue
Block a user