Skip to content

[bug] tauri build hangs if icons point to invalid file #3146

@MasterOdin

Description

@MasterOdin

Describe the bug

In the src-tauri/tauri.conf.json file, I misconfigured the tauri -> bundle -> icon array such that it pointed at invalid file paths. When running tauri build, it would then hang on the first "building" step, providing no further feedback until I killed the process. Passing --verbose and --debug provided no further information.

Reproduction

  1. Create an app
  2. Edit tauri -> bundle -> icon so that it has an invalid path
  3. See tauri build hang

Expected behavior

tauri build would not hang, probably returning an error that the icon could not be found or something.

Platform and versions

Operating System - Mac OS, version 12.1.0 X64

Node.js environment
  Node.js - 16.13.1
  @tauri-apps/cli - 1.0.0-beta.10
  @tauri-apps/api - 1.0.0-beta.8

Global packages
  npm - 8.1.2
  yarn - 1.22.17

Rust environment
  rustc - 1.57.0
  cargo - 1.57.0

App directory structure
/.husky
/node_modules
/public
/.github
/src-tauri
/build
/.git
/builder
/src

App
  tauri.rs - 1.0.0-beta.8
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../build
  devPath - http://127.0.0.1:3000
  framework - React

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions