-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tauri: a framework that allows you to build cross-platform apps #408
Comments
Tauri: 跨平台 app 开发框架
适用场景:
核心优势:
原理:
对比 electron/react-native:
对比 flutter:
|
v2 初始化:
准备工作:安装 cli:
cargo install tauri-cli --version "^2.0.0-alpha"
cargo tauri -h
# 查看版本:
cargo tauri -V
# 初始化:
cargo tauri init
# 添加依赖:
yarn add -D @tauri-apps/cli@next
yarn add @tauri-apps/api@next
# 依赖:
yarn add -D internal-ip
pnpm add -D internal-ip
# 初始化项目: 生成 tauri 目录
yarn tauri init
pnpm add -D @tauri-apps/cli
yarn add -D @tauri-apps/cli
# 初始化:
yarn tauri init 初始化 mobile app 目录:
# 小坑: 要设置环境变量:
TAURI_APPLE_DEVELOPMENT_TEAM="a24z" cargo tauri ios init
TAURI_APPLE_DEVELOPMENT_TEAM="a24z" cargo tauri android init
# iOS:
pnpm tauri ios init
yarn tauri ios init
# Android:
pnpm tauri android init
yarn tauri android init 本地运行+调试:
# iOS:
yarn tauri ios dev [--open]
# Android
yarn tauri android dev [--open]
yarn tauri ios build
yarn tauri android build |
1 |
5 similar comments
1 |
1 |
1 |
1 |
1 |
This was referenced Jun 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
📖 Abstract:
(Windows/MacOS/Linux/iOS/Android)
App 开发框架, 基于WebView
.mobile app
开发.💯 Related:
The text was updated successfully, but these errors were encountered: