https://github.com/nazmulidris/tauri-demo
Get Tauri to run on Linux
https://github.com/nazmulidris/tauri-demo
Last synced: 7 months ago
JSON representation
Get Tauri to run on Linux
- Host: GitHub
- URL: https://github.com/nazmulidris/tauri-demo
- Owner: nazmulidris
- Created: 2023-09-02T18:35:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-02T19:19:27.000Z (about 2 years ago)
- Last Synced: 2025-01-23T20:09:25.807Z (9 months ago)
- Language: Rust
- Size: 207 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
- [Prerequisites for Linux](#prerequisites-for-linux)
- [Basics](#basics)
- [WebKit driver](#webkit-driver)
- [libsoup](#libsoup)
- [gtk-rs](#gtk-rs)
- [Tauri CLI](#tauri-cli)
- [Run](#run)Install the following from
[docs](https://tauri.app/v1/guides/getting-started/prerequisites):```shell
sudo apt update
sudo apt install libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
file \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
```Also need `gtk-rs` from
[docs](https://gtk-rs.org/gtk4-rs/stable/latest/book/installation_linux.html) to remove
this warning ` error: could not find system library 'webkit2gtk-4.1' required by the
'webkit2gtk-sys' crate`.```shell
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential
```More info here: [blog post](https://tauri.app/blog/2023/02/03/tauri-2-0-0-alpha-3/#__docusaurus_skipToContent_fallback).
### 3. xapp
Also need `xapp` from [docs](
https://askubuntu.com/questions/1396739/failed-to-load-module-xapp-gtk3-module) to remove
this warning `Failed to load module "xapp-gtk3-module"`.```shell
sudo apt install xapp
```Also need `WebKitWebDriver` binary from
[docs](https://tauri.app/v1/guides/testing/webdriver/introduction/#linux).```shell
sudo apt install webkit2gtk-driver
```Also need `libsoup` from
[here](https://installati.one/install-libsoup-3.0-common-ubuntu-22-04/?expand_article=1)
to remove this warning `error: could not find system library 'libsoup-3.0' required by
the 'soup3-sys' crate`.```shell
sudo apt -y install libsoup-3.0-common
```More info here: [blog post](https://tauri.app/blog/2023/02/03/tauri-2-0-0-alpha-3/#__docusaurus_skipToContent_fallback).
Also install the Tauri CLI dev tools
- Via `npm`:
```shell
npm install --save-dev @tauri-apps/cli
```- Via `cargo`:
```shell
cargo install tauri-cli --locked --version 2.0.0-alpha.11
```Run with `npx`:
```shell
cd src-tauri
npx tauri dev
```Run with `cargo`.
```shell
cd src-tauri
cargo tauri dev
```## Docs and References
- [System Tray](https://tauri.app/v1/guides/features/system-tray/#updating-tray-icon).
- [HTML, CSS, JS](https://tauri.app/v1/guides/getting-started/setup/html-css-js/)
- [Next.js](https://tauri.app/v1/guides/getting-started/setup/next-js/)
- [Calling Rust from frontend](https://tauri.app/v1/guides/features/command)