fix: binary need to have the right to be executed

This commit is contained in:
pinage404 2021-10-17 12:35:15 +02:00
parent 90edbba221
commit 6f05d630f0

View file

@ -239,6 +239,12 @@ async fn main() -> Result<(), anyhow::Error> {
for (_name, source, dest, _link) in &bin_files { for (_name, source, dest, _link) in &bin_files {
// TODO: check if file already exists // TODO: check if file already exists
std::fs::copy(source, dest)?; std::fs::copy(source, dest)?;
#[cfg(target_family = "unix")]
{
use std::os::unix::fs::PermissionsExt;
std::fs::set_permissions(dest, std::fs::Permissions::from_mode(0o755))?;
}
} }
// Generate symlinks // Generate symlinks