mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-05-07 12:26:41 +02:00
26 lines
561 B
Markdown
26 lines
561 B
Markdown
# 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
|
|
```
|