use crate::paths::get_exec_prefix; use std::path::PathBuf; pub const APP_NAME: &str = "@PRETTY_NAME@"; pub const APP_ID: &str = "@APP_ID@"; pub const RESOURCES_BASE_PATH: &str = "@RESOURCES_BASE_PATH@"; pub const PKG_DATA_DIR: &str = "@PKGDATADIR@"; pub const RESOURCES: &str = concat!("@PKGDATADIR@", "/resources.gresource"); pub const CMD_NAME: &str = "@CMD_NAME@"; pub const VERSION: &str = "@VERSION@"; pub const REPO_URL: &str = "@REPO_URL@"; pub const ISSUES_URL: &str = "@ISSUES_URL@"; pub const SINGLE_DEVELOPER: &str = "@AUTHOR@"; pub const GETTEXT_PACKAGE: &str = "@GETTEXT_PACKAGE@"; pub const LOCALE_DIR: &str = "@LOCALEDIR@"; pub const BUILD_PROFILE: &str = "@PROFILE@"; pub const BUILD_DATETIME: &str = "@BUILD_DATETIME@"; pub fn get_artists() -> Vec { vec!["App Icon: Yannick (@Yandr)".into()] } pub fn pkg_data_dir() -> PathBuf { get_exec_prefix().join("share").join(CMD_NAME) } pub fn resources() -> String { format!("{}/resources.gresource", pkg_data_dir().to_string_lossy()) }