Merge pull request #69 from wezm/support-non-linux-unix

Support UNIX platforms that aren't Linux
This commit is contained in:
Antoine Gersant 2020-02-22 18:38:51 -08:00 committed by GitHub
commit f79b4615c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,13 +3,13 @@ use app_dirs::{app_root, AppDataType, AppInfo};
use std::fs;
use std::path::{Path, PathBuf};
#[cfg(not(target_os = "linux"))]
#[cfg(target_family = "windows")]
const APP_INFO: AppInfo = AppInfo {
name: "Polaris",
author: "Permafrost",
};
#[cfg(target_os = "linux")]
#[cfg(not(target_family = "windows"))]
const APP_INFO: AppInfo = AppInfo {
name: "polaris",
author: "permafrost",