Find path to running app using [NSBundle bundlePath]

This commit is contained in:
Max Brunsfeld 2022-04-04 20:53:40 -07:00
parent fb2caf3c58
commit e566a8335f
4 changed files with 25 additions and 5 deletions

View file

@ -165,6 +165,10 @@ impl super::Platform for Platform {
Err(anyhow!("app not running inside a bundle"))
}
fn app_path(&self) -> Result<PathBuf> {
Err(anyhow!("app not running inside a bundle"))
}
fn app_version(&self) -> Result<AppVersion> {
Ok(AppVersion {
major: 1,