快速构建新的 Tauri 应用程序项目。
To get started using create-tauri-app run one of the below commands in the folder you'd like to setup your project.
sh <(curl https://create.tauri.app/sh)or
sh <(wget https://create.tauri.app/sh)irm https://create.tauri.app/ps | iexcargo install create-tauri-app --locked
cargo create-tauri-appnpm create tauri-app@latestyarn create tauri-apppnpm create tauri-appdeno run -A npm:create-tauri-appbunx create-tauri-appFollow along with the prompts to choose your project name, frontend language, package manager, and frontend framework, and frontend framework options if applicable.
Choose a name and a bundle identifier (unique-id for your app):
? Project name (tauri-app) ›
? Identifier (com.tauri-app.app) ›Select a flavor for your frontend. First the language:
? Choose which language to use for your frontend ›
Rust (cargo)
TypeScript / JavaScript (pnpm, yarn, npm, bun)
.NET (dotnet)Select a package manager (if there are multiple available):
Options for TypeScript / JavaScript:
? Choose your package manager ›
pnpm
yarn
npm
bunSelect a UI Template and flavor (if there are multiple available):
Options for Rust:
? Choose your UI template ›
Vanilla
Yew
Leptos
SycamoreOptions for TypeScript / JavaScript:
? Choose your UI template ›
Vanilla
Vue
Svelte
React
Solid
Angular
Preact
? Choose your UI flavor ›
TypeScript
JavaScriptOptions for .NET:
? Choose your UI template ›
Blazor (https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor/)Once completed, the utility reports that the template has been created and displays how to run it using the configured package manager. If it detects missing dependencies on your system, it prints a list of packages and prompts how to install them.
You can also directly specify the project name, package manager and the template you want to use via additional command line options. For example, to scaffold a Svelte project in a my-tauri-app directory, run:
…Currently supported template presets include:
vanillavanilla-tsvuevue-tssveltesvelte-tsreactreact-tspreactpreact-tssolidsolid-tsangularyewleptossycamoreblazorYou can use . for the project name to scaffold in the current directory.
create-tauri-app is following Semantic Versioning 2.0.
Code: (c) 2022 - The Tauri Programme within The Commons Conservancy.
MIT or MIT/Apache 2.0 where applicable.
Logo: CC-BY-NC-ND
暂无开放 Issues,或尚未同步最近议题。