try build current state for Android

This commit is contained in:
polv committed 2026-02-24 00:30:57 +07:00
1 parent 519343dde2
commit 2777a0cd39
8 files changed
+64 -474

No files matched your search

-3
View File
@@ -12,8 +12,5 @@ serde_json = "1"
rusqlite = { version = "0.38.0", features = ["bundled", "unlock_notify"] }
thiserror = "2.0.18"
zip = "8.1.0"
walkdir = "2.5.0"
reqwest = "0.13.2"
blake3 = "1.8.3"
anyhow = "1.0.102"
regex = "1.12.3"
+1 -1
View File
@@ -14,7 +14,7 @@ fn main() -> Result<(), anyhow::Error> {
let service = AppService::new(get_db_dir())?;
let mut writer = service.get_yomitan_writer()?;
let zip_dir = Path::new("tmp/yomitan");
let zip_dir = Path::new("src-tauri/resources/yomitan");
println!("zip_dir: {:?}", absolute(zip_dir)); // Relative to workspace root
for entry in
+7 -6
View File
@@ -63,17 +63,18 @@ impl Database {
} else {
current_dir()?.join(dir)
};
let mut path = path
let path = path
.join("yomitan.db")
.to_string_lossy()
.replace(r"\", r"/");
#[cfg(windows)]
{
if !path.starts_with("/") {
path = format!("/{}", path);
}
}
let path = if !path.starts_with("/") {
format!("/{}", path)
} else {
path.to_string()
};
let uri = format!("file:{}?mode=ro&immutable=1", path);
conn.execute("ATTACH DATABASE ?1 AS yomitan", [uri])?;