【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

相关推荐
wjs20241 天前
C 标准库 - `<float.h>》详解
开发语言
zfj3211 天前
CyclicBarrier、CountDownLatch、Semaphore 各自的作用和用法区别
java·开发语言·countdownlatch·semaphore·cyclicbarrier
张np1 天前
java基础-ConcurrentHashMap
java·开发语言
早日退休!!!1 天前
进程与线程的上下文加载_保存及内存映射
开发语言
jllllyuz1 天前
MATLAB实现蜻蜓优化算法
开发语言·算法·matlab
冰暮流星1 天前
javascript逻辑运算符
开发语言·javascript·ecmascript
flysh051 天前
如何利用 C# 内置的 Action 和 Func 委托
开发语言·c#
Ankie Wan1 天前
windows技巧:要将 Windows 资源管理器的默认查看方式设置为详细信息
windows·windows11·效率提升·文件夹·windows技巧·详细信息
码农小韩1 天前
基于Linux的C++学习——动态数组容器vector
linux·c语言·开发语言·数据结构·c++·单片机·学习
木风小助理1 天前
`mapfile`命令详解:Bash中高效的文本至数组转换工具
开发语言·chrome·bash