Skip to content

[bug] failed to compile icons/icon.ico into a Windows Resource file during tauri-build: program not found #6197

Description

@TechStudent10

Describe the bug

I generated a new Tauri project and attempted to run it. After it built all the external deps and tried to compile the app itself, it errors out consistently.

Reproduction

Follow the docs
See error

Expected behavior

The app compiles and lauches

Platform and versions

Environment
› OS: Windows 10.0.22000 X64
› Webview2: 109.0.1518.70
› MSVC:
- Visual Studio Community 2019
› Node.js: 19.1.0
› npm: 8.13.2
› pnpm: Not installed!
› yarn: 1.22.10
› rustup: 1.25.2
› rustc: 1.62.0
› cargo: 1.62.0
› Rust toolchain: stable-x86_64-pc-windows-msvc

Packages
› @tauri-apps/cli [NPM]: 1.2.3
› @tauri-apps/api [NPM]: Not installed!
› tauri [RUST]: 1.2.4,
› tauri-build [RUST]: 1.2.1,
› tao [RUST]: 0.15.8,
› wry [RUST]: 0.23.4,

App
› build-type: bundle
› CSP: unset
› distDir: ../ui
› devPath: http://localhost:5173/
› framework: React
› bundler: Webpack

App directory structure
├─ .git
├─ .github
├─ .vscode
├─ build
├─ dist
├─ logs
├─ node_modules
├─ src-tauri
├─ ts-build
└─ ui

Stack trace

error: failed to run custom build command for `app v0.1.0 (C:\Users\moham\projs\ProtonDesigner\rewrite\src-tauri)`

Caused by:
  process didn't exit successfully: `C:\Users\moham\projs\ProtonDesigner\rewrite\src-tauri\target\debug\build\app-f0d0dbc026f4c986\build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-env-changed=TAURI_CONFIG
  cargo:rerun-if-changed=tauri.conf.json
  cargo:rustc-cfg=desktop
  cargo:rustc-cfg=dev
  failed to compile `icons/icon.ico` into a Windows Resource file during tauri-build: program not found

Additional context

Related: #2871

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