Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that bundle.resources is not available on mobile (yet?) #2565

Closed
tauri-bot opened this issue Aug 20, 2024 · 3 comments
Closed

Document that bundle.resources is not available on mobile (yet?) #2565

tauri-bot opened this issue Aug 20, 2024 · 3 comments
Milestone

Comments

@tauri-bot
Copy link
Collaborator

This issue has been upstreamed from tauri-apps/tauri#10671

Describe the bug

The files specified:

{
  "bundle": {
    "active": true,
    "targets": "all",
    "icon": [
      "icons/32x32.png",
      "icons/128x128.png",
      "icons/[email protected]",
      "icons/icon.icns",
      "icons/icon.ico"
    ],
    "resources": {
      "resources/models/vosk-model-de-0.6/*": "resources/models/vosk-model-de-0.6",
      "resources/models/vosk-model-small-de-0.15/*": "resources/models/vosk-model-small-de-0.15"
    }
  }
}

Are nowhere to be found on the android filesystem.
I checked every Path on the PathResolver and output ever directory in a tree format.
What is going on? :(

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 127.0.2651.105
    ✔ MSVC:
        - Visual Studio Build Tools 2019
        - Visual Studio Community 2022
    ✔ rustc: 1.80.0 (051478957 2024-07-21)
    ✔ cargo: 1.80.0 (376290515 2024-07-16)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.13.1
    - yarn: 1.22.22
    - npm: 10.5.2

[-] Packages
    - tauri [RUST]: 2.0.0-beta.22
    - tauri-build [RUST]: 2.0.0-beta.17
    - wry [RUST]: 0.40.1
    - tao [RUST]: 0.28.0
    - tauri-cli [RUST]: 2.0.0-beta.20
    - @tauri-apps/api [NPM]: 2.0.0-beta.13
    - @tauri-apps/cli [NPM]: 2.0.0-beta.20

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../build
    - devUrl: http://localhost:1420/
    - framework: Svelte
    - bundler: Vite

Stack trace

No response

Additional context

No response

@github-project-automation github-project-automation bot moved this to 🪵 Backlog in Documentation Aug 20, 2024
@FabianLars FabianLars changed the title [bug] bundle.resources tauri.config.json seems to do nothing on android. Document that bundle.resources is not available on mobile Aug 20, 2024
@FabianLars FabianLars changed the title Document that bundle.resources is not available on mobile Document that bundle.resources is not available on mobile (yet?) Aug 20, 2024
@FabianLars FabianLars added this to the Version 2.0 milestone Aug 20, 2024
@tweidinger
Copy link
Contributor

Is this still going to be unspported in 2.0 release @lucasfernog ?

@lucasfernog
Copy link
Member

we've released support for resources on mobile a couple weeks ago

@lucasfernog
Copy link
Member

see tauri-apps/tauri#10696
for android resource reading you must use the FS plugin, i will document that

@lucasfernog lucasfernog closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2024
@github-project-automation github-project-automation bot moved this from 🪵 Backlog to ✅ Done in Documentation Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

4 participants