add libpython_path

This commit is contained in:
llama 2025-11-01 22:19:15 +08:00
parent 9d0ae31780
commit f2c2d6d93a
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3

View file

@ -53,6 +53,7 @@ struct State {
previous_version: Option<String>, previous_version: Option<String>,
resources_dir: std::path::PathBuf, resources_dir: std::path::PathBuf,
venv_folder: std::path::PathBuf, venv_folder: std::path::PathBuf,
libpython_path: std::path::PathBuf,
/// system Python + PyQt6 library mode /// system Python + PyQt6 library mode
system_qt: bool, system_qt: bool,
} }
@ -132,6 +133,7 @@ fn run() -> Result<()> {
&& resources_dir.join("system_qt").exists(), && resources_dir.join("system_qt").exists(),
resources_dir, resources_dir,
venv_folder: uv_install_root.join(".venv"), venv_folder: uv_install_root.join(".venv"),
libpython_path: uv_install_root.join("libpath"),
}; };
// Check for uninstall request from Windows uninstaller // Check for uninstall request from Windows uninstaller