mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-08 17:35:18 +00:00
webview on Android with correct size
This commit is contained in:
1 parent
164f7c95bd
commit
7d447f8cf1
3 files changed
+8
-12
No files matched your search
@@ -20,16 +20,11 @@ pub async fn init_yomitan(
|
||||
e.to_string()
|
||||
})?;
|
||||
|
||||
let config = app.config();
|
||||
println!("{:#?}", app.asset_resolver());
|
||||
if let Some(r) = &config.bundle.resources {
|
||||
println!("{:?}", r);
|
||||
}
|
||||
|
||||
// Embedded files cannot be read with std fs directly, not to mention read_dir
|
||||
// It need to be copied with app.fs().read(...) one-by-one, and no read_dir here
|
||||
// @link https://v2.tauri.app/plugin/file-system/
|
||||
// app.config().bundle.resources don't seem to resolve **/*
|
||||
// utils::resources::ResourcePaths::new(&["pattern*".to_string()], true); didn't work correctly in Android
|
||||
#[cfg(target_os = "android")]
|
||||
let zip_dir = {
|
||||
let filename = "PixivLight_2026-02-24.zip";
|
||||
|
||||
Reference in new issue
Block a user