Support UNIX platforms that aren't Linux
This commit is contained in:
parent
768ee1122c
commit
a05c838c5b
1 changed files with 2 additions and 2 deletions
|
@ -3,13 +3,13 @@ use app_dirs::{app_root, AppDataType, AppInfo};
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
#[cfg(not(target_os = "linux"))]
|
#[cfg(target_family = "windows")]
|
||||||
const APP_INFO: AppInfo = AppInfo {
|
const APP_INFO: AppInfo = AppInfo {
|
||||||
name: "Polaris",
|
name: "Polaris",
|
||||||
author: "Permafrost",
|
author: "Permafrost",
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(not(target_family = "windows"))]
|
||||||
const APP_INFO: AppInfo = AppInfo {
|
const APP_INFO: AppInfo = AppInfo {
|
||||||
name: "polaris",
|
name: "polaris",
|
||||||
author: "permafrost",
|
author: "permafrost",
|
||||||
|
|
Loading…
Add table
Reference in a new issue