Skip to content

[bug] On the Linux system, the product name does not support Chinese #5860

@luoffei

Description

@luoffei

Describe the bug

thread '<unnamed>' panicked at 'failed to rename app: failed to rename `/root/example/target/debug/example` to `/root/example/target/debug`

Caused by:
    Directory not empty (os error 39)', src/interface/rust/desktop.rs:42:58

let product_name = product_name.to_kebab_case();

Reproduction

  1. Configure Chinese name in productName in tauri.conf.json
  2. Execute cargo tauri dev or cargo tauri build on the Linux system

Expected behavior

No response

Platform and versions

Environment
  › OS: Manjaro 22.0.0 X64
  › Node.js: 14.20.1
  › npm: 6.14.17
  › pnpm: Not installed!
  › yarn: Not installed!
  › rustup: 1.25.1
  › rustc: 1.65.0
  › cargo: 1.65.0
  › Rust toolchain: 1.65-x86_64-unknown-linux-gnu 

Packages
WARNING: no lock files found, defaulting to npm
  › @tauri-apps/cli [NPM]: 1.2.2
  › @tauri-apps/api [NPM]: Not installed!
  › tauri [RUST]: git+https://github.com/luoffei/tauri.git?branch=1.2.2#bb16b0343aa6c3a15dff3ce14a1ff1c8f36f5c12 (1.2.2),
  › tauri-build [RUST]: git+https://github.com/luoffei/tauri.git?branch=1.2.2#bb16b0343aa6c3a15dff3ce14a1ff1c8f36f5c12 (1.2.1),
  › tao [RUST]: 0.15.7,
  › wry [RUST]: git+https://github.com/luoffei/wry.git?branch=wry-v0.23.3#15e480d03864622deb9d7c3352a64d0a4b03d708 (0.23.3),

Stack trace

No response

Additional context

When adding dependent crate heck, specify the feature unicode
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions