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

Can't build for target i686-pc-windows-msvc #2040

Closed
dizda opened this issue Jun 22, 2021 · 7 comments
Closed

Can't build for target i686-pc-windows-msvc #2040

dizda opened this issue Jun 22, 2021 · 7 comments

Comments

@dizda
Copy link
Contributor

dizda commented Jun 22, 2021

Describe the bug
Hi there,

Checked out the branch tauri-v1.0.0-beta.1, I can build smoothly for the target x86_64-pc-windows-msvc, but not for i686-pc-windows-msvc (windows 32-bit).

To Reproduce
I'm using the helloworld example.

$ git checkout tauri-v1.0.0-beta.1
$ cd examples/helloworld
$ cargo tauri build --target i686-pc-windows-msvc --verbose
   Compiling helloworld v0.1.0 (C:\Users\john\www\tauri\examples\helloworld\src-tauri)
    Finished release [optimized] target(s) in 2m 01s
info: Target: x64
info: Wix settings not found. Using `en-US` as language.
info: running candle for "main.wxs"
info: running candle.exe
Windows Installer XML Toolset Compiler version 3.11.2.4516
Copyright (c) .NET Foundation and contributors. All rights reserved.

main.wxs
info: running light to produce C:\Users\john\www\tauri\target\release\bundle/msi/helloworld_0.1.0_x64.msi
Windows Installer XML Toolset Linker version 3.11.2.4516
Copyright (c) .NET Foundation and contributors. All rights reserved.

C:\Users\john\www\tauri\target\release\wix\x64\main.wxs(71) : error LGHT0103 : The system cannot find the file 'C:\Users\john\www\tauri\target\release\helloworld.exe'.
Error: failed to bundle project

Caused by:
    Shell Scripting Error:`error running light.exe`

Expected behavior

It shouldn't be info: Target: x64 but x86

Screenshots
Screen Shot 2021-06-22 at 17 48 35

Platform and Versions (please complete the following information):
$ cargo tauri info

Operating System - Windows, version 10.0.19041 X64
Webview2 - 91.0.864.54

Node.js environment
Node.js - 16.3.0
@tauri-apps/cli - 1.0.0-beta.2
@tauri-apps/api - Not installed

Global packages
npm - 7.15.1
yarn - 1.22.10

Rust environment
rustc - 1.52.1
cargo - 1.52.0

App directory structure
/public
/src-tauri

App
tauri.rs - path:"../../../core/tauri" [1.0.0-beta.1] (no lockfile)
build-type - bundle
CSP - default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline' 'self'
distDir - ../public
devPath - ../public

@dizda dizda changed the title Can't build for i686-pc-windows-msvc Can't build for target i686-pc-windows-msvc Jun 22, 2021
@dizda
Copy link
Contributor Author

dizda commented Jun 28, 2021

Hi @lucasfernog

Thanks for the patch.
It seems that it didn't fix the issue though, I've pull to the latest commit which includes 8e23870, and re-built cli.rs but it doesn't seem to change anything about it.

Screen Shot 2021-06-28 at 10 12 45

The target is still x64.

@lucasfernog
Copy link
Member

Seems like that's a different issue now.

@lucasfernog
Copy link
Member

Btw did you check the correct bundle path? it's printed on the stdout.

@dizda
Copy link
Contributor Author

dizda commented Jun 28, 2021

Yes, the path is correct and contains the bundle.

Screen Shot 2021-06-28 at 10 40 01

@lucasfernog
Copy link
Member

Something must be wrong with the wix code. I'll check it tomorrow.

@dizda
Copy link
Contributor Author

dizda commented Jun 28, 2021

Sure, could you reopen the issue in the meanwhile? 🙏

@dizda
Copy link
Contributor Author

dizda commented Jun 29, 2021

Good job mate, it works like a charm now!

Screen Shot 2021-06-29 at 09 07 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants