Skip to content

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

@dizda

Description

@dizda

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions