48 lines
734 B
Bash
Executable File
48 lines
734 B
Bash
Executable File
#!/usr/bin/zsh
|
|
|
|
|
|
# install via npm
|
|
npm i -g \
|
|
tauri
|
|
|
|
# add to the project
|
|
npm i --save-dev \
|
|
tauri
|
|
|
|
|
|
# OR compile
|
|
|
|
# base
|
|
sudo apt update -y
|
|
sudo apt update
|
|
sudo apt install -y \
|
|
build-essential \
|
|
curl \
|
|
libayatana-appindicator3-dev \
|
|
libgtk-3-dev \
|
|
libjavascriptcoregtk-4.0-dev \
|
|
librsvg2-dev \
|
|
libsoup2.4-dev \
|
|
libssl-dev \
|
|
libwebkit2gtk-4.0-dev \
|
|
wget
|
|
|
|
|
|
# node.js
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
|
|
nvm install node --latest-npm
|
|
nvm use node
|
|
|
|
# rust
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
rustc --version
|
|
rustup update stable
|
|
|
|
# tauri
|
|
cargo install tauri-bundler --force
|
|
|
|
|
|
# OR
|
|
sh <(curl https://create.tauri.app/sh)
|
|
|