-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathtauri-setup.md
61 lines (40 loc) · 1.39 KB
/
tauri-setup.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 📡 Tauri Setup
## Clone AppFlowy
Clone [AppFlowy](https://github.com/AppFlowy-IO/AppFlowy)
```shell
git clone git@github.com:AppFlowy-IO/AppFlowy.git
```
## Install prerequisites
1. Follow the instructions [here](https://tauri.app/v1/guides/getting-started/prerequisites) to install Tauri
2. Install cargo-make
```shell
# AppFlowy use cargo-make to run the scripts
cargo install cargo-make
```
3. Install AppFlowy dev tools
```shell
# install development tools
cd AppFlowy/frontend
cargo make appflowy-tauri-deps-tools
cd appflowy_tauri
npm install -g pnpm
pnpm install
```
## IDE setup
### VSCode
You can run from VSCode: Open the [**frontend**](https://github.com/AppFlowy-IO/AppFlowy/tree/main/frontend) folder located at `AppFlowy/frontend` with VSCode.
![img.png](../../../.gitbook/assets/vscode\_run\_tauri.png)
This option enable debugging the [core process](https://tauri.app/v1/references/architecture/process-model#the-core-process) directly. Or you can run manually:
```shell
cd frontend
cargo make tauri_dev
```
### WebStorm
Open the **appflowy\_tauri** folder located at `AppFlowy/frontend/appflowy_tauri` and then run the `tauri:dev`.
![img.png](../../../essential-documentation/contribute-to-appflowy/software-contributions/tauri-setup/asset/tauri\_package\_json.png)
## Clean
Remove the build artifacts first when facing compiler errors.
```shell
cd frontend
cargo make tauri_clean
```