#Failed to open icon.png (build failed - macro panicked)

2 messages · Page 1 of 1 (latest)

nocturne temple
#

Hello,

I am trying to build (npx tauri build) the application (made from npx tauri init) without icons.

I initialized the project with npx tauri init . I removed the icons directory and the https://v2.tauri.app/reference/config/#icon key in the tauri.conf.json file.

When building the application npx tauri build I get:

error: proc macro panicked
  --> src/lib.rs:14:10
   |
14 |     .run(tauri::generate_context!())
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: failed to open icon /home/my_user/Dev/my_project/backend/icons/icon.png: No such file or directory (os error 2)

In the whole project (I made sure to check) there isn't any reference to icon.png.

I tried:

  • removing the node_modules directory
  • removing the rust target directory
  • removing the front build directory (I use react as a frontend)
  • removing all the mentioned directories

Thank you very much in advance for any help

Tauri

The cross-platform app building toolkit

#

Failed to open icon.png (build failed - macro paniced)