tools: add sync-version.js to sync package.json -> Tauri files

- Add tools/sync-version.js script to read root package.json version
  and update src-tauri/tauri.conf.json and src-tauri/Cargo.toml.
- Update only the [package] version line in Cargo.toml to preserve formatting.
- Include JSON read/write helpers and basic error handling/reporting.
This commit is contained in:
2026-01-13 07:21:51 +01:00
parent abb7cafaed
commit 694f335408
50 changed files with 1128 additions and 6186 deletions

View File

@@ -36,7 +36,13 @@ Before you begin, ensure you have the following installed on your machine:
To start the application in development mode (with hot-reloading for frontend changes):
```bash
npm run tauri dev
npm run dev
```
If you want FFmpeg to be bundled into `src-tauri/resources/` for local/native playback during dev, use:
```bash
npm run dev:native
```
This command will:
@@ -50,7 +56,7 @@ To create an optimized, standalone executable for your operating system:
1. **Run the build command**:
```bash
npm run tauri build
npm run build
```
2. **Locate the artifacts**:
@@ -67,7 +73,9 @@ To create an optimized, standalone executable for your operating system:
* `styles.css`: Application styling.
* `stations.json`: Configuration file for available radio streams.
* **`src-tauri/`**: Rust backend code.
* `src/main.rs`: The entry point for the Rust process. Handles Google Cast discovery and playback logic.
* `src/lib.rs`: Tauri command layer (native player commands, Cast commands, utility HTTP helpers).
* `src/player.rs`: Native audio engine (FFmpeg decode → PCM ring buffer → CPAL output).
* `src/main.rs`: Rust entry point (wires the Tauri app; most command logic lives in `lib.rs`).
* `tauri.conf.json`: Configuration for the Tauri app (window size, permissions, package info).
## Customization