Closed podarcis closed 7 months ago
This is the same as https://github.com/Byron/open-rs/pull/91#issuecomment-1974905927, could you share the repo or a minimal repro where this issue happens as I am unable to reproduce.
@amrbashir
This is the same as Byron/open-rs#91 (comment),
Yes, I also just found this issue and it mentioned exactly the same.
could you share the repo or a minimal repro where this issue happens as I am unable to reproduce.
Unfortunately I can't share I can't share the main application repo. But as I said it's reproducible using the current Tauri beta. I'll try to list the steps for reproduction (see my tauri info
for the other environment info; basically it's a Windows 10 x86_64 machine building for i686):
$ rustup default
stable-i686-pc-windows-msvc (default)
$ rustup toolchain list
stable-i686-pc-windows-msvc (default) # This is the only toolchain that is installed
$ rustup target list --installed
i686-pc-windows-msvc # This is the only target that is installed
$ yarn create tauri-app --beta # Fresh Tauri 2 beta
$ yarn tauri dev --target i686-pc-windows-msvc
I'll try in another machine/setup and test if it behaves the same.
Thank you, I think I have found the problem. Will open a PR upstream.
Opened a PR here: https://github.com/Byron/open-rs/pull/93
you can try the fix by adding the following patch inside Cargo.toml:
[patch.crates-io]
open = { git = "https://github.com/tauri-apps/amrbashir", branch = "fix/shell-execute-w-link" }
then do cargo update
inside src-tauri
I can confirm that it's fixed in your branch. Looking forward to your PR getting merged upstream.
Thanks for the fast fix!
The PR has been merged and released, you can remove the patch and just do cargo update
and it should be fixed.
In our project (Windows 32-Bit support needed,
i686-pc-windows-msvc
) we updated from2.0.0-beta0
to2.0.0-beta3
(both versions2.0.0-beta1
and2.0.0-beta2
did not compile in the combination with other Tauri deps). 64-Bitx86_64-pc-windows-msvc
however builds just fine.The build process aborts with the MSVC linker giving this error message (unresolved external symbol) when trying to link
ShellExecuteW
forlibopen
:I noticed that with #1021 the dependency of crate
open
was raised from major version 4 to 5. Maybe this is related. I'm unsure whether this is an issue of the shell plugin or with the open crate.This is reproducible with a fresh Tauri2-beta.