Skip to content

Commit

Permalink
Build on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jawee committed Aug 25, 2024
1 parent d67bd54 commit 1a0cde3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/desktop/src/providers/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ use serde::Deserialize;

#[cfg(windows)]
use super::komorebi::KomorebiProviderConfig;
#[cfg(windows)]
use super::language::LanguageProviderConfig;
use super::{
battery::BatteryProviderConfig, cpu::CpuProviderConfig,
host::HostProviderConfig, ip::IpProviderConfig,
language::LanguageProviderConfig, memory::MemoryProviderConfig,
memory::MemoryProviderConfig,
network::NetworkProviderConfig, weather::WeatherProviderConfig,
};

Expand All @@ -21,5 +23,6 @@ pub enum ProviderConfig {
Memory(MemoryProviderConfig),
Network(NetworkProviderConfig),
Weather(WeatherProviderConfig),
#[cfg(windows)]
Language(LanguageProviderConfig),
}
5 changes: 4 additions & 1 deletion packages/desktop/src/providers/provider_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ use tracing::info;

#[cfg(windows)]
use super::komorebi::KomorebiProvider;
#[cfg(windows)]
use super::language::LanguageProvider;
use super::{
battery::BatteryProvider, config::ProviderConfig, cpu::CpuProvider,
host::HostProvider, ip::IpProvider, language::LanguageProvider,
host::HostProvider, ip::IpProvider,
memory::MemoryProvider, network::NetworkProvider, provider::Provider,
provider_manager::SharedProviderState, variables::ProviderVariables,
weather::WeatherProvider,
Expand Down Expand Up @@ -169,6 +171,7 @@ impl ProviderRef {
ProviderConfig::Weather(config) => {
Box::new(WeatherProvider::new(config))
}
#[cfg(windows)]
ProviderConfig::Language(config) => {
Box::new(LanguageProvider::new(config))
}
Expand Down
4 changes: 3 additions & 1 deletion packages/desktop/src/providers/variables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ use serde::Serialize;

#[cfg(windows)]
use super::komorebi::KomorebiVariables;
#[cfg(windows)]
use super::language::LanguageVariables;
use super::{
battery::BatteryVariables, cpu::CpuVariables, host::HostVariables,
ip::IpVariables, language::LanguageVariables, memory::MemoryVariables,
ip::IpVariables, memory::MemoryVariables,
network::NetworkVariables, weather::WeatherVariables,
};

Expand Down

0 comments on commit 1a0cde3

Please sign in to comment.