Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] TaskDialogIndirect issue when building Windows cross platform #10164

Open
minht11 opened this issue Jul 1, 2024 · 2 comments
Open

[bug] TaskDialogIndirect issue when building Windows cross platform #10164

minht11 opened this issue Jul 1, 2024 · 2 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@minht11
Copy link

minht11 commented Jul 1, 2024

Describe the bug

After compiling Tauri 2 Windows app cross platform. Launching it produces TaskDialogIndirect issue when building Windows cross platform

Reproduction

Create new Tauri 2 app.
Try to build it on linux/macos with command:

cargo tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc

After installing application you get error Entry point TaskDialogIndirect could not be located

If I build application on Windows it works fine, so only cross install is broken.

Expected behavior

No error when launching appllication on Windows.

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.5.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: 1.79.0-aarch64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.11.1
    - pnpm: 9.1.3
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 2.0.0-beta.22
    - tauri-build [RUST]: 2.0.0-beta.17
    - wry [RUST]: 0.40.1
    - tao [RUST]: 0.28.1
    - tauri-cli [RUST]: 2.0.0-beta.20
    - @tauri-apps/api [NPM]: 2.0.0-beta.13
    - @tauri-apps/cli [NPM]: 2.0.0-beta.20

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../frontend/dist
    - devUrl: http://localhost:1420/

Stack trace

No response

Additional context

I was using guide from Tauri 1 https://tauri.app/v1/guides/building/cross-platform/#building-the-app
I know it was bit outdated, but with some changes things compile successfully just don't run.

@minht11 minht11 added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jul 1, 2024
@FabianLars
Copy link
Member

Thanks for the report! It still works fine for me when i'm building on WSL. Would it be possible to share a minimal reproduction repo that causes this issue for you? I'll try it out on my macbook too then :)

@minht11
Copy link
Author

minht11 commented Jul 2, 2024

I added reproduction https://github.com/minht11/tauri-TaskDialogIndirect-issue. I am using moon task runner to install additional cargo things, but that shouldn't be needed if you have them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants