【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

相关推荐
知行合一。。。13 分钟前
MySQL调优--11--分批插入/更新数据 ---案例
数据库·windows·mysql
NuyoahC19 分钟前
Python语法(二)——函数
开发语言·笔记·python
灵嗅20 分钟前
python qt5 常用
开发语言·qt
江凡心35 分钟前
Qt 每日面试题 -2
开发语言·数据库·qt·面试
为啥不吃肉捏44 分钟前
C++/Qt 集成 AutoHotkey
开发语言·c++·qt
代码吐槽菌1 小时前
基于SpringBoot的在线点餐系统【附源码】
java·开发语言·spring boot·后端·mysql·计算机专业
努力学习的小廉1 小时前
【C++】—— string模拟实现
开发语言·c++
凌晨五点的星1 小时前
网络安全-webshell绕过,hash碰撞,webshell绕过原理
开发语言·前端·javascript
qq_172805591 小时前
Kafka-Go学习
开发语言·学习·golang·kafka·go
天心天地生1 小时前
【bugfix】-洽谈回填的图片消息无法显示
开发语言·前端·javascript