【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

相关推荐
Java水解9 小时前
Rust嵌入式开发实战——从ARM裸机编程到RTOS应用
后端·rust
Pomelo_刘金10 小时前
Rust:所有权系统
rust
Ranger092915 小时前
鸿蒙开发新范式:Gpui
rust·harmonyos
埃博拉酱4 天前
VS Code Remote SSH 连接 Windows 服务器卡在"下载 VS Code 服务器":prcdn DNS 解析失败的诊断与 BITS 断点续传
windows·ssh·visual studio code
DongLi014 天前
rustlings 学习笔记 -- exercises/05_vecs
rust
唐宋元明清21884 天前
.NET 本地Db数据库-技术方案选型
windows·c#
郑州光合科技余经理4 天前
代码展示:PHP搭建海外版外卖系统源码解析
java·开发语言·前端·后端·系统架构·uni-app·php
feifeigo1234 天前
matlab画图工具
开发语言·matlab
加号34 天前
windows系统下mysql多源数据库同步部署
数据库·windows·mysql
dustcell.4 天前
haproxy七层代理
java·开发语言·前端