【Tauri】(3):使用Tauri1.5版本,进行桌面应用开发,在windows上搭建环境,安装node,rust环境,可以打包成功,使用vite创建应用

1,视频地址:

https://www.bilibili.com/video/BV1Ny421a7nA/

【Tauri】(3):使用Tauri1.5版本,进行桌面应用开发,在windows上搭建环境,安装node,rust环境,可以打包成功,使用vite创建应用

2,官网网站

https://tauri.app/zh-cn/

3,在windows 上安装

https://tauri.app/zh-cn/v1/guides/getting-started/prerequisites

在windows 上需要安装 cpp 工具。

https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/

需要 5G的安装。

4,安装 nodejs 软件

直接从官网下载安装即可:
https://nodejs.org/en

5,安装 rust

请前往 https://www.rust-lang.org/zh-CN/tools/install 来安装 rustup (Rust 安装程序)。 请注意,为了使更改生效,您必须重新启动终端,在某些情况下需要重新启动 Windows 本身。

https://www.rust-lang.org/tools/install


6,安装app

https://tauri.app/zh-cn/v1/guides/getting-started/setup/vite

使用镜像:
https://npmmirror.com/

bash 复制代码
npm create tauri-app@latest --registry=https://registry.npmmirror.com

npm install  --registry=https://registry.npmmirror.com


8,在windows运行demo效果

bash 复制代码
# 运行demo
 npm run tauri dev
# 打包exe
 npm run tauri build


编译:

bash 复制代码
# 打包exe
 npm run tauri build

最终在 \src-tauri\target\release 目录下就有了文件:


5.41 mb

相关推荐
Fate_I_C6 分钟前
Kotlin 内部类和嵌套类
java·开发语言·kotlin
昵称暂无114 分钟前
低代码平台深度测评:OutSystems vs Mendix谁更胜一筹
开发语言·低代码
We་ct21 分钟前
JS手撕:函数进阶 & 设计模式解析
开发语言·前端·javascript·设计模式·面试·前端框架
Michelle802334 分钟前
R语言 for循环
开发语言·r语言
小碗羊肉35 分钟前
【从零开始学Java | 第三十二篇】方法引用(Method Reference)
java·开发语言
格林威38 分钟前
Windows 实时性补丁(RTX / WSL2)
linux·运维·人工智能·windows·数码相机·计算机视觉·工业相机
玖釉-39 分钟前
C++ 硬核剖析:if 语句中的“双竖杠” || 到底怎么运行的?
开发语言·c++
满满和米兜41 分钟前
【Java基础】- 集合-HashSet与TreeSet
java·开发语言·算法
zhangzeyuaaa1 小时前
Python推导式(Comprehensions)
开发语言·python
m0_716765231 小时前
数据结构三要素、时间复杂度计算详解
开发语言·数据结构·c++·经验分享·笔记·算法·visual studio