Skip to content

Commit

Permalink
Merge pull request #5 from ahkohd/feat/app-icon
Browse files Browse the repository at this point in the history
chore: add mock implementation for other windows & linux
  • Loading branch information
ahkohd authored Nov 24, 2023
2 parents c3e7045 + 1c8df6a commit 44e0332
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libs/app-icon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ pub struct GetAppIconError {
source: macos::request::GetIconError,
}

#[cfg(target_os = "windows")]
pub fn get_icon(app_path: &Path, save_path: &Path, size: f64) -> Result<(), GetAppIconError> {
unimplemented!();
}

#[cfg(target_os = "linux")]
pub fn get_icon(app_path: &Path, save_path: &Path, size: f64) -> Result<(), GetAppIconError> {
unimplemented!();
}

#[cfg(target_os = "macos")]
pub fn get_icon(app_path: &Path, save_path: &Path, size: f64) -> Result<(), GetAppIconError> {
macos::request::get_icon(app_path, save_path, size)?;
Expand Down

0 comments on commit 44e0332

Please sign in to comment.