tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
81.75k stars 2.45k forks source link

[bug] Wrong configuration file used when cross-compiling #8332

Closed Xtr126 closed 9 months ago

Xtr126 commented 9 months ago

Describe the bug

When cross-compiling from Linux to Windows, tauri.linux.conf.json is used instead of tauri.windows.conf.json.

Reproduction

Cross-compiling Windows application on Linux following https://tauri.app/v1/guides/building/cross-platform/#experimental-build-windows-apps-on-linux-and-macos

Expected behavior

No response

Platform and versions

[✔] Environment
    - OS: Arch Linux Unknown X64
    ✔ webkit2gtk-4.0: 2.42.1
    ✔ rsvg2: 2.57.0
    ✔ rustc: 1.71.0 (8ede3aae2 2023-07-12)
    ✔ cargo: 1.71.0 (cfd3bbd8f 2023-06-08)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 21.1.0
    - pnpm: 8.11.0

[-] Packages
    - tauri [RUST]: 1.5.3
    - tauri-build [RUST]: 1.5.0
    - wry [RUST]: 0.24.6
    - tao [RUST]: 0.16.5
    - @tauri-apps/api [NPM]: 1.5.1
    - @tauri-apps/cli [NPM]: 1.5.6

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - bundler: Vite

Stack trace

No response

Additional context

No response

Xtr126 commented 9 months ago

Closing as I can use --config src-tauri/tauri.windows.conf.json in the build command as a workaround.

FabianLars commented 9 months ago

It's still a bug we should fix imo :)

FabianLars commented 9 months ago

On second thought, nevermind. This would be a pretty large change, and since v2 is already fixed (it was required for mobile) i'll agree that v1 users should stick with the workaround for the time being.