diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d330ade..226084b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased +### Added + +### Changed + +### Deprecated + +### Removed + +### Fixed +- [\#292](https://github.com/Manta-Network/manta-signer/pull/292) Fix linux signer not finding proving keys on system + +### Security ## [1.0.1] 2023-01-24 ### Added diff --git a/src/parameters.rs b/src/parameters.rs index 40e5b887..41db9a55 100644 --- a/src/parameters.rs +++ b/src/parameters.rs @@ -46,13 +46,20 @@ where // MacOs installation puts assets in another folder "Resources" compared to Win/Linux Installations let mut directory_check = PathBuf::from(&exec_dir).join("proving"); + // check for test server and MacOs installation folder hierachy discrepancy relative to Win/Ubuntu if !directory_check.is_dir() { exec_dir.pop(); directory_check = PathBuf::from(&exec_dir).join("proving"); if !directory_check.is_dir() { - exec_dir.push("Resources"); + if cfg!(target_os = "macos") { + // macos + exec_dir.push("Resources"); + } else { + // linux (ubuntu) specific + exec_dir = PathBuf::from("/usr/lib/manta-signer"); + } } } // use absolute paths for release