프로그래밍/Web
[tauri] 개발환경
chance
2024. 3. 19. 13:42
윈도우즈
빌드 툴 설치 : Visual Studio 를 설치하거나 아래에서 빌드 툴 설치
Microsoft C++ Build Tools - Visual Studio
WebView2 : 윈도우 11에는 포함되어 있으며, 윈도우 10은 아래에서 에버그린 부트스트래퍼 다운로드해 설치
https://developer.microsoft.com/en-us/microsoft-edge/webview2
rust
Install Rust - Rust Programming Language (rust-lang.org)
curl 사용
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
winget 사용
winget install --id Runstlang.Rustup
wsl 에서 사용
// 필수 패키지
sudo apt install curl build-essential gcc make -y
// rust up 설치
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
설치위치
~/.cargo/bin
rust 업데이트
rustup update
rust 삭제
rustup self uninstall
tauri
앱 생성
// bash
$ sh <(curl https://create.tauri.app/sh)
// powershell
> irm https://create.tauri.app/ps | iex
// cargo
$ cargo install create-tauri-app --locked
$ cargo create-tauri-app
// npm
$ npm create tauri-app@latest
// yarn
$ yarn create tauri-app