feat: portable build

This commit is contained in:
zhom
2026-03-29 14:55:20 +04:00
parent 1099459dbb
commit c516999f7a
7 changed files with 105 additions and 2 deletions
+3
View File
@@ -340,6 +340,9 @@ pub fn is_autostart_enabled() -> bool {
}
pub fn get_data_dir() -> Option<PathBuf> {
if crate::app_dirs::is_portable() {
return Some(crate::app_dirs::data_dir());
}
if let Some(proj_dirs) = ProjectDirs::from("com", "donutbrowser", "Donut Browser") {
Some(proj_dirs.data_dir().to_path_buf())
} else {