fix for Android

This commit is contained in:
polv committed 2026-03-09 19:31:26 +07:00
1 parent 7b75d6302e
commit 653eacf8d4
5 files changed
+30 -36

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ pub fn run() {
let bytes = app.fs().read(&resource_path)?;
// Write to app's cache dir, which IS a real writable filesystem path on Android
let cache_dir = app.path().cache_dir()?;
let cache_dir = app.path().app_cache_dir()?.join("vibrato");
create_dir_all(&cache_dir)?;
let dict_path = cache_dir.join("system.dic.zst");
fs::write(&dict_path, &bytes)?;