Support UNIX platforms that aren't Linux

This commit is contained in:
Wesley Moore 2020-02-23 12:05:17 +11:00
parent 768ee1122c
commit a05c838c5b
No known key found for this signature in database
GPG key ID: BF67766C0BC2D0EE

View file

@ -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",