mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Linux should replace the AppImage not the root (facepalm)
This commit is contained in:
0
samples/CSharpAvalonia/dev-scripts/build-linux.sh
Normal file → Executable file
0
samples/CSharpAvalonia/dev-scripts/build-linux.sh
Normal file → Executable file
@@ -421,11 +421,24 @@ pub fn auto_locate_app_manifest(context: LocationContext) -> Result<VelopackLoca
|
||||
return Err(Error::MissingUpdateExe);
|
||||
}
|
||||
|
||||
let appimage_path = match std::env::var("APPIMAGE") {
|
||||
Ok(v) => {
|
||||
if v.is_empty() || !PathBuf::from(&v).exists() {
|
||||
return Err(Error::NotInstalled("The 'APPIMAGE' environment variable should point to the current AppImage path.".to_string()));
|
||||
} else {
|
||||
v
|
||||
}
|
||||
},
|
||||
Err(_) => {
|
||||
return Err(Error::NotInstalled("The 'APPIMAGE' environment variable should point to the current AppImage path.".to_string()));
|
||||
}
|
||||
};
|
||||
|
||||
let app = read_current_manifest(&metadata_path)?;
|
||||
let packages_dir = PathBuf::from("/var/tmp/velopack").join(&app.id).join("packages");
|
||||
|
||||
let config = VelopackLocatorConfig {
|
||||
RootAppDir: root_app_dir,
|
||||
RootAppDir: PathBuf::from(appimage_path),
|
||||
UpdateExePath: update_exe_path,
|
||||
PackagesDir: packages_dir,
|
||||
ManifestPath: metadata_path,
|
||||
|
||||
Reference in New Issue
Block a user