mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Fix ubuntu compiler errors
This commit is contained in:
1
src/Rust/Cargo.lock
generated
1
src/Rust/Cargo.lock
generated
@@ -1679,6 +1679,7 @@ dependencies = [
|
|||||||
"glob",
|
"glob",
|
||||||
"image",
|
"image",
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
|
"libc",
|
||||||
"log",
|
"log",
|
||||||
"memmap2",
|
"memmap2",
|
||||||
"native-dialog",
|
"native-dialog",
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ native-dialog = "0.7"
|
|||||||
waitpid-any = "0.2"
|
waitpid-any = "0.2"
|
||||||
bindet = "0.3"
|
bindet = "0.3"
|
||||||
dialog = "0.3"
|
dialog = "0.3"
|
||||||
|
libc = "0.2"
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
fs_extra = "1.2"
|
fs_extra = "1.2"
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ fn run_apply_elevated(package: Option<&PathBuf>, exe_args: Option<Vec<&str>>) ->
|
|||||||
std::fs::set_permissions(&temp_path, <std::fs::Permissions as std::os::unix::fs::PermissionsExt>::from_mode(0o755))?;
|
std::fs::set_permissions(&temp_path, <std::fs::Permissions as std::os::unix::fs::PermissionsExt>::from_mode(0o755))?;
|
||||||
|
|
||||||
let path = std::env::var("APPIMAGE")?;
|
let path = std::env::var("APPIMAGE")?;
|
||||||
let mut args = get_run_elevated_args(false, package, exe_args);
|
let mut args = get_run_elevated_args(package, exe_args);
|
||||||
args.insert(0, "env".to_string());
|
args.insert(0, "env".to_string());
|
||||||
args.insert(1, format!("APPIMAGE={}", path));
|
args.insert(1, format!("APPIMAGE={}", path));
|
||||||
args.insert(2, temp_path.to_owned());
|
args.insert(2, temp_path.to_owned());
|
||||||
|
|||||||
Reference in New Issue
Block a user