Repository: tauri
Issue: [bug] Cant build tauri app under msys2 ucrt64
Labels: type: bug,status: upstream,platform: Windows,status: needs triage

### Describe the bug

Problem: when building `tauri` app in `windows` inside `msys2 ucrt64` along with `tauri.windows.conf.json` which has resources object paths (key value) to DLLs I get the following build error:
<details>
<summary>error</summary>

```console
 --- stderr
  windres: preprocessing failed.
  thread 'main' panicked at C:/msys64/ucrt64/.cargo\registry\src\index.crates.io-6f17d22bba15001f\embed-resource-2.4.1\src\windows_not_msvc.rs:48:25:
  windres failed to compile "C:\msys64\home\User\vibe\target\release\build\vibe-desktop-6c3fcd93ac9afc6c\out\resource.rc" into "C:\msys64\home\User\vibe\target\release\build\vibe-desktop-6c3fcd93ac9afc6c\out/libresource.a" with exit code: 1
```
</details>
<details>
  <summary>environment</summary>

```console
OS `windows11`
MSYS `msys2 ucrt64`, 
ENV: `x86_64-pc-windows-gnu`
rustc 1.75.0 (82e1608df 2023-12-21)
```
</details>
<details>
  <summary>full stacktrace</summary>



```console
User@DESKTOP-HPEE9O3 UCRT64 ~/vibe/desktop/src-tauri
$ CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true RUST_BACKTRACE=1 OPENBLAS_PATH=$MINGW_PREFIX PATH="/c/Program Files/nodejs:$PATH" cargo tauri build 
     Running beforeBuildCommand `npm run build`

> vibe@0.0.0 build
> tsc && vite build

vite v5.0.11 building for production...
transforming (9) commonjsHelpers.js
🌼   daisyUI 4.5.0
├─ ✔︎ 2 themes added            https://daisyui.com/docs/themes
╰─ ❤︎ Support daisyUI project:  https://opencollective.com/daisyui

✓ 134 modules transformed.
dist/index.html                                              0.47 kB │ gzip:  0.30 kB
dist/assets/roboto-vietnamese-400-normal-ZBATgFfY.woff       4.75 kB
dist/assets/roboto-vietnamese-400-normal-JAkXt1WZ.woff2      5.56 kB
dist/assets/roboto-greek-400-normal-ZxjWinlq.woff            6.35 kB
dist/assets/roboto-greek-400-normal-UVhwlGKP.woff2           7.11 kB
dist/assets/roboto-cyrillic-400-normal-wkKjpXzZ.woff         8.39 kB
dist/assets/roboto-cyrillic-400-normal-1Q02bZlk.woff2        9.63 kB
dist/assets/roboto-latin-ext-400-normal-5aATcKHE.woff       10.21 kB
dist/assets/roboto-latin-ext-400-normal-OGy6Zcg4.woff2      11.87 kB
dist/assets/roboto-cyrillic-ext-400-normal-PiqLoFV_.woff    13.47 kB
dist/assets/roboto-latin-400-normal-VNUqCuId.woff           14.38 kB
dist/assets/roboto-cyrillic-ext-400-normal-zkSvWxgI.woff2   15.34 kB
dist/assets/roboto-latin-400-normal-JkyEVz-m.woff2          15.74 kB
dist/assets/success-cbsNfwyv.mp3                            22.93 kB
dist/assets/index-bhJp4qmo.css                              57.30 kB │ gzip: 12.28 kB
dist/assets/index-1sXuMjYB.js                              259.43 kB │ gzip: 80.56 kB
✓ built in 5.07s
   Compiling proc-macro2 v1.0.76
   Compiling unicode-ident v1.0.12
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.1.0
   Compiling windows_x86_64_gnu v0.48.5
   Compiling serde v1.0.195
   Compiling windows_x86_64_gnu v0.52.0
   Compiling syn v1.0.109
   Compiling siphasher v0.3.11
   Compiling ppv-lite86 v0.2.17
   Compiling getrandom v0.2.12
   Compiling winapi-x86_64-pc-windows-gnu v0.4.0
   Compiling memchr v2.7.1
   Compiling getrandom v0.1.16
   Compiling rand_core v0.6.4
   Compiling quote v1.0.35
   Compiling windows-targets v0.48.5
   Compiling syn v2.0.48
   Compiling rand_chacha v0.3.1
   Compiling rand_core v0.5.1
   Compiling rand v0.8.5
   Compiling lock_api v0.4.11
   Compiling parking_lot_core v0.9.9
   Compiling rand_pcg v0.2.1
   Compiling rand_chacha v0.2.2
   Compiling rand v0.7.3
   Compiling aho-corasick v1.1.2
   Compiling phf_shared v0.10.0
   Compiling phf_shared v0.8.0
   Compiling glob v0.3.1
   Compiling regex-syntax v0.8.2
   Compiling phf_generator v0.8.0
   Compiling windows-targets v0.52.0
   Compiling phf_generator v0.10.0
   Compiling thiserror v1.0.56
   Compiling proc-macro-hack v0.5.20+deprecated
   Compiling once_cell v1.19.0
   Compiling regex-automata v0.4.3
   Compiling string_cache_codegen v0.5.2
   Compiling phf_codegen v0.10.0
   Compiling typenum v1.17.0
   Compiling windows-sys v0.52.0
   Compiling regex v1.10.2
   Compiling serde_derive v1.0.195
   Compiling thiserror-impl v1.0.56
   Compiling markup5ever v0.11.0
   Compiling cssparser v0.27.2
   Compiling phf_macros v0.8.0
   Compiling version_check v0.9.4
   Compiling serde_json v1.0.111
   Compiling bitflags v1.3.2
   Compiling fnv v1.0.7
   Compiling generic-array v0.14.7
   Compiling phf_codegen v0.8.0
   Compiling winapi v0.3.9
   Compiling itoa v1.0.10
   Compiling ryu v1.0.16
   Compiling cc v1.0.83
   Compiling log v0.4.20
   Compiling selectors v0.22.0
   Compiling html5ever v0.26.0
   Compiling cssparser-macros v0.6.1
   Compiling clang-sys v1.7.0
   Compiling indexmap v1.9.3
   Compiling strsim v0.10.0
   Compiling ident_case v1.0.1
   Compiling darling_core v0.20.3
   Compiling bytes v1.5.0
   Compiling libc v0.2.152
   Compiling convert_case v0.4.0
   Compiling smallvec v1.11.2
   Compiling windows-sys v0.48.0
   Compiling phf_shared v0.11.2
   Compiling num-traits v0.2.17
   Compiling derive_more v0.99.17
   Compiling minimal-lexical v0.2.1
   Compiling nom v7.1.3
   Compiling libloading v0.8.1
   Compiling phf_generator v0.11.2
   Compiling darling_macro v0.20.3
   Compiling scopeguard v1.2.0
   Compiling new_debug_unreachable v1.0.4
   Compiling darling v0.20.3
   Compiling pin-project-lite v0.2.13
   Compiling byteorder v1.5.0
   Compiling cexpr v0.6.0
   Compiling serde_with_macros v3.4.0
   Compiling phf_macros v0.11.2
   Compiling num-integer v0.1.45
   Compiling shlex v1.2.0
   Compiling precomputed-hash v0.1.1
   Compiling semver v1.0.21
   Compiling windows-tokens v0.39.0
   Compiling lazycell v1.3.0
   Compiling mac v0.1.1
   Compiling peeking_take_while v0.1.2
   Compiling rustc-hash v1.1.0
   Compiling lazy_static v1.4.0
   Compiling futf v0.1.5
   Compiling parking_lot v0.12.1
   Compiling utf-8 v0.7.6
   Compiling tinyvec_macros v0.1.1
   Compiling crc32fast v1.3.2
   Compiling equivalent v1.0.1
   Compiling dtoa v1.0.9
   Compiling hashbrown v0.14.3
   Compiling tinyvec v1.6.0
   Compiling dtoa-short v0.3.4
   Compiling string_cache v0.8.7
   Compiling indexmap v2.1.0
   Compiling tendril v0.4.3
   Compiling socket2 v0.5.5
   Compiling mio v0.8.10
   Compiling http v0.2.11
   Compiling winapi-util v0.1.6
   Compiling toml_datetime v0.6.5
   Compiling serde_spanned v0.6.5
   Compiling phf v0.8.0
   Compiling tokio-macros v2.2.0
   Compiling ctor v0.2.6
   Compiling phf v0.10.1
   Compiling num-bigint v0.4.4
   Compiling matches v0.1.10
   Compiling percent-encoding v2.3.1
   Compiling crossbeam-utils v0.8.19
   Compiling nodrop v0.1.14
   Compiling winnow v0.5.33
   Compiling itoa v0.4.8
   Compiling num_cpus v1.16.0
   Compiling heck v0.4.1
   Compiling windows_x86_64_gnu v0.39.0
   Compiling stable_deref_trait v1.2.0
   Compiling alloc-no-stdlib v2.0.4
   Compiling tokio v1.35.1
   Compiling alloc-stdlib v0.2.2
   Compiling servo_arc v0.1.1
   Compiling form_urlencoded v1.2.1
   Compiling unicode-normalization v0.1.22
   Compiling fxhash v0.2.1
   Compiling uuid v1.6.1
   Compiling num-rational v0.4.1
   Compiling slab v0.4.9
   Compiling prettyplease v0.2.16
   Compiling anyhow v1.0.79
   Compiling thin-slice v0.1.1
   Compiling windows-metadata v0.39.0
   Compiling unicode-bidi v0.3.14
   Compiling rustix v0.38.28
   Compiling hashbrown v0.12.3
   Compiling futures-core v0.3.30
   Compiling idna v0.5.0
   Compiling windows-bindgen v0.39.0
   Compiling cfb v0.7.3
   Compiling same-file v1.0.6
   Compiling brotli-decompressor v2.5.1
   Compiling errno v0.3.8
   Compiling windows-implement v0.39.0
   Compiling treediff v4.0.2
   Compiling windows_x86_64_gnu v0.42.2
   Compiling bindgen v0.64.0
   Compiling bitflags v2.4.1
   Compiling simd-adler32 v0.3.7
   Compiling windows v0.39.0
   Compiling json-patch v1.2.0
   Compiling webview2-com-sys v0.19.0
   Compiling brotli v3.4.0
   Compiling kuchikiki v0.8.2
   Compiling walkdir v2.4.0
   Compiling infer v0.13.0
   Compiling url v2.5.0
   Compiling home v0.5.9
   Compiling phf v0.11.2
   Compiling serde_with v3.4.0
   Compiling tracing-core v0.1.32
   Compiling futures-macro v0.3.30
   Compiling windows-version v0.1.0
   Compiling dunce v1.0.4
   Compiling adler v1.0.2
   Compiling pin-utils v0.1.0
   Compiling futures-task v0.3.30
   Compiling bindgen v0.69.1
   Compiling either v1.9.0
   Compiling which v4.4.2
   Compiling futures-util v0.3.30
   Compiling miniz_oxide v0.7.1
   Compiling tauri-utils v1.5.2
   Compiling tracing v0.1.40
   Compiling toml_edit v0.19.15
   Compiling toml_edit v0.21.0
   Compiling native-tls v0.2.11
   Compiling pkg-config v0.3.28
   Compiling httparse v1.8.0
   Compiling raw-window-handle v0.5.2
   Compiling futures-sink v0.3.30
   Compiling tokio-util v0.7.10
   Compiling ffmpeg-sys-next v6.1.0
   Compiling toml v0.8.8
   Compiling toml v0.7.8
   Compiling flate2 v1.0.28
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling fdeflate v0.3.3
   Compiling rustc_version v0.4.0
   Compiling tao v0.16.5
   Compiling cmake v0.1.50
   Compiling schannel v0.1.23
   Compiling webview2-com-macros v0.6.0
   Compiling fs_extra v1.3.0
   Compiling try-lock v0.2.5
   Compiling color_quant v1.1.0
   Compiling utf8parse v0.2.1
   Compiling bytemuck v1.14.0
   Compiling anstyle v1.0.4
   Compiling windows_x86_64_gnu v0.37.0
   Compiling image v0.24.7
   Compiling anstyle-wincon v3.0.2
   Compiling anstyle-parse v0.2.3
   Compiling want v0.3.1
   Compiling embed-resource v2.4.1
   Compiling png v0.17.10
   Compiling digest v0.10.7
   Compiling whisper-rs-sys v0.8.1 (https://github.com/thewh1teagle/whisper-rs?branch=fix/msys2-build#a04d1616)
   Compiling h2 v0.3.22
   Compiling crossbeam-channel v0.5.11
   Compiling futures-channel v0.3.30
   Compiling http-body v0.4.6
   Compiling dirs-sys-next v0.1.2
   Compiling anstyle-query v1.0.2
   Compiling instant v0.1.12
   Compiling num-iter v0.1.43
   Compiling async-trait v0.1.77
   Compiling unicode-segmentation v1.10.1
   Compiling tauri-runtime v0.14.2
   Compiling wry v0.24.7
   Compiling tower-service v0.3.2
   Compiling cpufeatures v0.2.12
   Compiling colorchoice v1.0.0
   Compiling httpdate v1.0.3
   Compiling hyper v0.14.28
   Compiling anstream v0.6.5
   Compiling sha2 v0.10.8
   Compiling dirs-next v2.0.0
   Compiling ico v0.3.0
   Compiling tauri-winres v0.1.1
   Compiling tokio-native-tls v0.3.1
   Compiling cargo_toml v0.15.3
   Compiling windows-targets v0.42.2
   Compiling crossbeam-epoch v0.9.18
   Compiling bstr v1.9.0
   Compiling webview2-com v0.19.1
   Compiling encoding_rs v0.8.33
   Compiling clap_lex v0.6.0
   Compiling tauri-runtime-wry v0.14.3
   Compiling ffmpeg-next v6.1.1
   Compiling base64 v0.21.5
   Compiling http-range v0.1.5
   Compiling rfd v0.10.0
   Compiling fastrand v2.0.1
   Compiling tempfile v3.9.0
   Compiling tauri-codegen v1.4.2
   Compiling clap_builder v4.4.14
   Compiling globset v0.4.14
   Compiling crossbeam-deque v0.8.5
   Compiling tauri-build v1.5.1
   Compiling windows-sys v0.45.0
   Compiling windows v0.37.0
   Compiling hyper-tls v0.5.0
   Compiling windows-sys v0.42.0
   Compiling serde_urlencoded v0.7.1
   Compiling clap_derive v4.4.7
   Compiling tauri v1.5.4
   Compiling termcolor v1.4.1
   Compiling winreg v0.50.0
   Compiling num-complex v0.4.4
   Compiling filetime v0.2.23
   Compiling is-terminal v0.4.10
   Compiling serialize-to-javascript-impl v0.1.1
   Compiling ipnet v2.9.0
   Compiling humantime v2.1.0
   Compiling hex v0.4.3
   Compiling mime v0.3.17
   Compiling sha256 v1.5.0
   Compiling reqwest v0.11.23
   Compiling serialize-to-javascript v0.1.1
   Compiling env_logger v0.10.1
   Compiling vibe-desktop v0.0.0 (C:\msys64\home\User\vibe\desktop\src-tauri)
   Compiling tar v0.4.40
   Compiling clap v4.4.14
   Compiling num v0.4.1
   Compiling open v3.2.0
   Compiling sys-locale v0.2.4
   Compiling ignore v0.4.22
   Compiling tauri-macros v1.4.3
   Compiling whisper-rs v0.10.1 (https://github.com/thewh1teagle/whisper-rs?branch=fix/msys2-build#a04d1616)
   Compiling os_info v3.7.0
   Compiling shared_child v1.0.0
   Compiling os_pipe v1.1.5
   Compiling serde_repr v0.1.18
   Compiling hound v3.5.1
   Compiling state v0.5.3
   Compiling vibe v0.1.0 (C:\msys64\home\User\vibe\core)
error: failed to run custom build command for `vibe-desktop v0.0.0 (C:\msys64\home\User\vibe\desktop\src-tauri)`

Caused by:
  process didn't exit successfully: `C:\msys64\home\User\vibe\target\release\build\vibe-desktop-0330677e1affc671\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=TAURI_CONFIG
  cargo:rerun-if-changed=tauri.conf.json
  cargo:rustc-cfg=desktop
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\librsvg-2-2.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libvorbisenc-2.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libwebp-7.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libcairo-2.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libx264-164.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libgcc_s_seh-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libgnutls-30.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libxml2-2.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libtheoraenc-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libvpx-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\rav1e.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\xvidcore.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libaom.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libidn2-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libintl-8.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libp11-kit-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libunibreak-5.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libsoxr.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libthai-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libSvtAv1Enc.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\avfilter-9.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libcaca-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libgdk_pixbuf-2.0-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libexpat-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libdav1d-7.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libgme.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libgomp-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libiconv-2.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libshaderc_shared.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libspirv-cross-c-shared.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\swresample-4.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libhogweed-6.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libsrt.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libpcre2-8-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libgsm.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libopenjp2-7.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libcrypto-3-x64.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libpixman-1-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\SDL2.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libass-9.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libopenblas.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\postproc-57.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\dovi.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libopenal-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libopencore-amrnb-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libstdc++-6.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libunistring-5.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libssh.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libplacebo-338.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libharfbuzz-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libvpl.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libquadmath-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libbz2-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libgfortran-5.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libglib-2.0-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libspeex-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libtasn1-6.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libgmodule-2.0-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libmodplug-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\liblcms2-2.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libpangoft2-1.0-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libwebpmux-3.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libbrotlienc.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\avformat-60.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libdatrie-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libgobject-2.0-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libogg-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libx265.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\avutil-58.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libzimg-2.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libzstd.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\zlib1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\avdevice-60.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libbrotlidec.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libpangocairo-1.0-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libbrotlicommon.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\librtmp-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libfreetype-6.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libgmp-10.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libvidstab.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libvorbis-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libbluray-2.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\swscale-7.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libcairo-gobject-2.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libfontconfig-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libpangowin32-1.0-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libnettle-8.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libmp3lame-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\avcodec-60.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libffi-8.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libpng16-16.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libva_win32.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\liblzma-5.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libwinpthread-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libgraphite2.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libfribidi-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libopencore-amrwb-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libgio-2.0-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libopus-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libsharpyuv-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libtheoradec-1.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libpango-1.0-0.dll
  cargo:rerun-if-changed=C:\msys64\ucrt64\bin\libva.dll
  package.metadata does not exist

  --- stderr
  windres: preprocessing failed.
  thread 'main' panicked at C:/msys64/ucrt64/.cargo\registry\src\index.crates.io-6f17d22bba15001f\embed-resource-2.4.1\src\windows_not_msvc.rs:48:25:
  windres failed to compile "C:\msys64\home\User\vibe\target\release\build\vibe-desktop-6c3fcd93ac9afc6c\out\resource.rc" into "C:\msys64\home\User\vibe\target\release\build\vibe-desktop-6c3fcd93ac9afc6c\out/libresource.a" with exit code: 1
  stack backtrace:
     0: rust_begin_unwind
               at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library\std\src/panicking.rs:645:5
     1: core::panicking::panic_fmt
               at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library\core\src/panicking.rs:72:14
     2: embed_resource::windows_not_msvc::ResourceCompiler::compile_resource
               at C:\msys64\ucrt64\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-winres-0.1.1\C:/msys64/ucrt64/.cargo\registry\src\index.crates.io-6f17d22bba15001f\embed-resource-2.4.1\src\windows_not_msvc.rs:48:25   
     3: embed_resource::compile_impl
               at C:\msys64\ucrt64\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-winres-0.1.1\C:/msys64/ucrt64/.cargo\registry\src\index.crates.io-6f17d22bba15001f\embed-resource-2.4.1\src\lib.rs:268:24
     4: embed_resource::compile
               at C:\msys64\ucrt64\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-winres-0.1.1\C:/msys64/ucrt64/.cargo\registry\src\index.crates.io-6f17d22bba15001f\embed-resource-2.4.1\src\lib.rs:184:48
     5: tauri_winres::WindowsResource::compile
               at C:\msys64\ucrt64\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-winres-0.1.1\src\lib.rs:534:9
     6: tauri_build::try_build
               at C:\msys64\ucrt64\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-build-1.5.1\src\lib.rs:549:7
     7: tauri_build::build
               at C:\msys64\ucrt64\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-build-1.5.1\src\lib.rs:376:23
     8: build_script_build::main
               at .\build.rs:2:5
     9: core::ops::function::FnOnce::call_once
               at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112\library\core\src\ops/function.rs:250:5
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...
       Error failed to build app: failed to build app

User@DESKTOP-HPEE9O3 UCRT64 ~/vibe/desktop/src-tauri
$
```
</details>

<details>
<summary>C:\msys64\home\User\vibe\target\release\build\vibe-desktop-6c3fcd93ac9afc6c\out\resource.rc</summary>

```
#pragma code_page(65001)
1 VERSIONINFO
FILEOS 0x40004
FILEVERSION 0, 0, 3, 0
FILESUBTYPE 0x0
PRODUCTVERSION 0, 0, 3, 0
FILETYPE 0x1
FILEFLAGS 0x0
FILEFLAGSMASK 0x3f
{
BLOCK "StringFileInfo"
{
BLOCK "000004b0"
{
VALUE "ProductName", "vibe"
VALUE "FileVersion", "0.0.3"
VALUE "ProductVersion", "0.0.3"
VALUE "FileDescription", "A Tauri App"
}
}
BLOCK "VarFileInfo" {
VALUE "Translation", 0x0, 0x04b0
}
}
32512 ICON "\\\\?\\C:\\msys64\\home\\User\\vibe\\desktop\\src-tauri\\icons\\icon.ico"
1 24
{
" <assembly xmlns=""urn:schemas-microsoft-com:asm.v1"" manifestVersion=""1.0""> "
" <dependency> "
" <dependentAssembly> "
" <assemblyIdentity "
" type=""win32"" "
" name=""Microsoft.Windows.Common-Controls"" "
" version=""6.0.0.0"" "
" processorArchitecture=""*"" "
" publicKeyToken=""6595b64144ccf1df"" "
" language=""*"" "
" /> "
" </dependentAssembly> "
" </dependency> "
" </assembly> "
}

```
</details>

### Reproduction

Create tauri app inside msys2 ucrt64, add `tauri.windows.conf.json` and add to it resource object eg `{"/path/to/dll", "hello.dll"}` and build

### Expected behavior

It should build normally

<details>
<summary>Full `tauri info` output</summary>

```console
$ cargo tauri info

[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 120.0.2210.133
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.75.0 (82e1608df 2023-12-21)
    ✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-gnu (environment override by RUSTUP_TOOLCHAIN)
    - node: 18.17.1
    - npm: 9.6.7

[-] Packages
    - tauri [RUST]: 1.5.4
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.5
    - tauri-cli [RUST]: 1.5.9
    - @tauri-apps/api [NPM]: 1.5.3
    - @tauri-apps/cli [NPM]: 1.5.9

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: React
    - bundler: Vite
```
</details>

Related issue
https://github.com/nabijaczleweli/rust-embed-resource/issues/65

My code:
[feat/improve-build](https://github.com/thewh1teagle/vibe/tree/feat/improve-build)