mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
* chore(example) add README closes #635 * chore(example) add rust-only way to build the communication example
This commit is contained in:
committed by
GitHub
parent
e0c330cfb6
commit
0f52af6c8f
32
tauri/examples/communication/README.md
Normal file
32
tauri/examples/communication/README.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# Communication example
|
||||
This example demonstrates Tauri's API capabilities. It's used as the main validation app, serving as the testbed of our development process.
|
||||
In the future, this app will be used on Tauri's integration tests.
|
||||
|
||||

|
||||
|
||||
## Running the example
|
||||
- Install dependencies
|
||||
```bash
|
||||
# with yarn
|
||||
$ yarn
|
||||
# with npm
|
||||
$ npm install
|
||||
```
|
||||
|
||||
- Compile the app
|
||||
```bash
|
||||
# with yarn
|
||||
$ yarn build
|
||||
# with npm
|
||||
$ npm run build
|
||||
# alternatively, if you setup the environment variables, you can build it without Node.js:
|
||||
$ cd ../../..
|
||||
$ . .scripts/init_env.sh
|
||||
$ cd ./tauri/examples/communication
|
||||
$ cargo build --features no-server
|
||||
```
|
||||
|
||||
- Run the app
|
||||
```bash
|
||||
$ ./src-tauri/target/release/app
|
||||
```
|
||||
@@ -4,7 +4,11 @@
|
||||
"description": "A Tauri example showcasing the JS-Rust communication",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "tauri build"
|
||||
},
|
||||
"private": true
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"tauri": "link:../../../cli/tauri.js"
|
||||
}
|
||||
}
|
||||
|
||||
BIN
tauri/examples/communication/screenshot.png
Normal file
BIN
tauri/examples/communication/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
4051
tauri/examples/communication/yarn.lock
Normal file
4051
tauri/examples/communication/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user