diff options
| author | salmonik <raisersoft@proton.me> | 2026-05-06 13:07:26 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-05-06 13:07:26 +0200 |
| commit | 26d6630f5b396964efb6df5cf424d536a59e5329 (patch) | |
| tree | 0146cc7f7be1b9577edbec57d2427ac9f95650ec /src | |
| parent | Mark unit tests as completed in TODO.md (diff) | |
| download | rsplayer-26d6630f5b396964efb6df5cf424d536a59e5329.tar.gz rsplayer-26d6630f5b396964efb6df5cf424d536a59e5329.zip | |
Add install script, shell completions, and systemd service
- Add install.sh script that builds release, stops daemon, and installs binary
- Add shell completions for bash, zsh, and fish
- Add systemd user service unit file
- Add public binary declaration in Cargo.toml
- Add install command to CLI
- Make current_track field public for MPRIS integration (placeholder)
Diffstat (limited to '')
| -rw-r--r-- | src/audio.rs | 2 | ||||
| -rw-r--r-- | src/cli.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/audio.rs b/src/audio.rs index d716a23..58ad2bf 100644 --- a/src/audio.rs +++ b/src/audio.rs | |||
| @@ -16,7 +16,7 @@ pub enum AudioCommand { | |||
| 16 | pub struct AudioEngine { | 16 | pub struct AudioEngine { |
| 17 | command_tx: Sender<AudioCommand>, | 17 | command_tx: Sender<AudioCommand>, |
| 18 | is_playing: Arc<AtomicBool>, | 18 | is_playing: Arc<AtomicBool>, |
| 19 | current_track: Arc<Mutex<Option<std::path::PathBuf>>>, | 19 | pub current_track: Arc<Mutex<Option<std::path::PathBuf>>>, |
| 20 | track_ended: Arc<AtomicBool>, | 20 | track_ended: Arc<AtomicBool>, |
| 21 | volume: Arc<Mutex<f32>>, | 21 | volume: Arc<Mutex<f32>>, |
| 22 | } | 22 | } |
| @@ -4,7 +4,7 @@ use clap::{Parser, Subcommand}; | |||
| 4 | use std::path::PathBuf; | 4 | use std::path::PathBuf; |
| 5 | 5 | ||
| 6 | #[derive(Parser)] | 6 | #[derive(Parser)] |
| 7 | #[command(name = "rsp")] | 7 | #[command(name = "rsp", infer_long_args = true)] |
| 8 | #[command(about = "Rust music player daemon", long_about = None)] | 8 | #[command(about = "Rust music player daemon", long_about = None)] |
| 9 | pub struct Cli { | 9 | pub struct Cli { |
| 10 | #[command(subcommand)] | 10 | #[command(subcommand)] |
