From cf19afbb7fca7e20b06a8dfbc5a39210253fab6d Mon Sep 17 00:00:00 2001 From: Thomas Versteeg Date: Mon, 4 Apr 2022 17:28:21 +0200 Subject: [PATCH] Support custom target files --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 533ddc5..b42faec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,7 +49,9 @@ fn main() { .path( artifact, profile, - opt.target.as_deref(), + opt.target + .as_deref() + .map(|target| target.trim_end_matches(".json")), "x86_64-unknown-linux-gnu", ) .expect("Couldn't find the build result");