Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Jul 11, 2024
1 parent ee4ab86 commit 1d61b9e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 1 deletion.
Binary file added asset/notification-0.mp3
Binary file not shown.
File renamed without changes.
1 change: 1 addition & 0 deletions install-dev.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cargo bundle --release
codesign --deep --force --verify --verbose --sign "Xavier Lau" target/release/bundle/osx/AiR.app
rm -rf /Applications/AiR.app && cp -r target/release/bundle/osx/AiR.app /Applications/AiR.app
2 changes: 1 addition & 1 deletion src/component/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct Audio {
}
impl Audio {
pub fn new() -> Result<Self> {
let sound_data = include_bytes!("../../asset/notification.mp3");
let sound_data = include_bytes!("../../asset/notification-0.mp3");
let cursor = Cursor::new(sound_data.as_ref());
let decoder = Decoder::new(cursor).map_err(RodioError::Decoder)?;
let notification = decoder.buffered();
Expand Down
1 change: 1 addition & 0 deletions src/component/setting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ impl Setting {
},
};

// TODO: validate the setting.
Ok(toml::from_str(&s)?)
}

Expand Down

0 comments on commit 1d61b9e

Please sign in to comment.