--self-install should include a path to a binary

On windows, we cannot just copy an executable with process running from it, so better to copy it to a temporary location.

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2024-11-06 13:32:54 +11:00 committed by GitHub
parent 9c20b3c0ec
commit 38f15ee660
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -406,7 +406,7 @@ pub struct Args {
pub(crate) quiet: bool,
#[clap(long, hidden(true))]
pub(crate) self_install: bool,
pub(crate) self_install: Option<PathBuf>,
}
#[derive(Debug, Clone)]