tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug] bundleresources is not working for Android

Open vangork opened this issue 1 year ago • 25 comments

Describe the bug

It won't bundle the resources specified in the bundleresources config for Android (yarn tauri android dev). Does this option apply to Android?

"bundle": {
    "resources": [
        "resources/*"
    ]
}

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.22000 X64
    ✔ WebView2: 121.0.2277.128
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.71.0 (8ede3aae2 2023-07-12)
    ✔ cargo: 1.71.0 (cfd3bbd8f 2023-06-08)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 18.16.0
    - yarn: 1.22.19
    - npm: 9.5.1

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.21
    - tauri-build [RUST]: 2.0.0-alpha.14
    - wry [RUST]: 0.35.2
    - tao [RUST]: 0.24.0
    - tauri-cli [RUST]: 1.3.1
    - @tauri-apps/api [NPM]: 2.0.0-alpha.13
    - @tauri-apps/cli [NPM]: 2.0.0-alpha.20

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite

Stack trace

No response

Additional context

No response

vangork avatar Feb 20 '24 02:02 vangork

I am having the same issue.

wyatt-herkamp avatar Apr 01 '24 21:04 wyatt-herkamp

I am using this for a school project. I found a workaround. By making a zip file in the build.r.s and using include_bytes. Then I extract the files if needed. I know it isn't the best option. However, this is a small school project.

wyatt-herkamp avatar Apr 02 '24 13:04 wyatt-herkamp

@wyatt-herkamp FYI. I just follow android doc and handle the files with an android plugin.

vangork avatar Apr 06 '24 15:04 vangork

I had the same issue and decided to move towards using this library https://github.com/pyrossh/rust-embed. It works very well and simplifies a lot the data management.

loikki avatar May 16 '24 09:05 loikki