feat: Add example with an emit_all event

This commit is contained in:
jojobyte
2022-06-16 00:59:37 -06:00
parent b0052d2da4
commit e54755fec5
18 changed files with 4624 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# Tauri Plugin single-instance
## Emit Event Example
To build and test in development mode run the following:
```sh
# change to this example directory
npm install
npm run tauri dev
# or if tauri is installed globally
cargo tauri dev
```
While the above is running, in a separate terminal window execute the debug target app
```sh
# on linux
./src-tauri/target/debug/emit-event-app cyan # any css background color should work
./src-tauri/target/debug/emit-event-app "#888" # including hex
# on windows
.\src-tauri\target\debug\emit-event-app.exe cyan
```