Skip to content

[bug] tauri does not copy new files from resource directories #14992

Description

@montyc1999

Describe the bug

Given a tauri.conf.json like this:

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

tauri dev will copy files from src-tauri/my_resources/ to src-tauri/target/debug/my_resources/.

But this only occurs when either:

  • A resource file that tauri already knows about, gets modified
  • The build script needs to be re-run for some other reason, e.g. tauri.conf.json is modified or build.rs is modified.

Otherwise, newly added files get ignored, which is very confusing during development.

One workaround is to explicitly add println!("cargo:rerun-if-changed=my_resources"); to build.rs.

Reproduction

https://github.com/montyc1999/tauri-repro-new-files-not-picked-up

Expected behavior

When new files are added to resource directories, tauri should copy them.

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.8.1 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.93.1 (01f6ddf75 2026-02-11)
    ✔ cargo: 1.93.1 (083ac5135 2025-12-15)
    ✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)

Stack trace


Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: 2 mediumE.g. DX regressions, bugs, dev crashes, etc...status: needs triageThis issue needs to triage, applied to new issuestype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions