Skip to content

[bug] failed to cross compile icons/icon.ico into a Windows Resource tauri-build 2.0.0-alpha.4 #6746

Description

@Guiguiprim

Describe the bug

Basic example fails to cross compile for windows msvc with tauri = "2.0.0-alpha.8" and tauri-build = "2.0.0-aplha.4"

Caused by:
  process didn't exit successfully: `/project/target/release/build/app-a62c9b0b39a2abda/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=TAURI_CONFIG
  cargo:rerun-if-changed=tauri.conf.json
  cargo:rustc-cfg=desktop
  cargo:rustc-env=TAURI_ANDROID_PACKAGE_PREFIX=fr_my_app
  cargo:rustc-env=TAURI_TARGET_TRIPLE=x86_64-pc-windows-msvc
  package.metadata does not exist
  failed to compile `icons/icon.ico` into a Windows Resource file during tauri-build: No such file or directory (os error 2)

It does work with tauri = "1.2" and tauri-build = "1.2"

In the error /project/target/release/build/app-a62c9b0b39a2abda/build-script-build would be expected to be /project/target/x86_64-pc-windows-msvc/release/build/app-a62c9b0b39a2abda/build-script-build.
Looks like if the target is not correctly propagated somewhere.

Reproduction

No response

Expected behavior

No response

Platform and versions

platform: windows (cross compiled in a nix environment)

Stack trace

No response

Additional context

No response

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