-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
32-bit windows support? #3067
Comments
can you try our tao = { git = "https://github.com/tauri-apps/tao", branch = "next" } |
Thanks, I will try this solution. |
@amrbashir Hi, I tried to add
[package]
name = "app"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
default-run = "app"
edition = "2018"
build = "src/build.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { version = "1.0.0-beta.4" }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.0.0-beta.8", features = ["api-all"] }
tao = { git = "https://github.com/tauri-apps/tao", branch = "next" }
[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]
{
"name": "tauri-app",
"scripts": {
"tauri": "tauri"
},
"devDependencies": {
"@tauri-apps/cli": "^1.0.0-beta.10"
},
"dependencies": {
"@tauri-apps/api": "^1.0.0-beta.8"
}
} I am new to rust, how can I overwrite the |
I tried to update
Now I got some other errors. `yarn tauri build`
|
@liudonghua123 didn't know you're using Tauri and not tao directly. Remove the tauri = { git = "https://github.com/tauri-apps/tauri", branch = "next" } and tauri-build = { git = "https://github.com/tauri-apps/tauri", branch = "next" } and don't remove the |
Thanks for the guidance. Now I can compile 32-bit windows executable, but it failed to create msi bundle. logsD:\code\rust\tauri-app>yarn tauri build
yarn run v1.22.17
warning package.json: No license field
$ tauri build
app:spawn Running "D:\code\rust\tauri-app\node_modules\@tauri-apps\cli\bin\tauri-cli.exe tauri build" +0ms
Updating git repository `https://github.com/tauri-apps/tauri`
Updating crates.io index
Updating git repository `https://github.com/tauri-apps/wry`
Updating git repository `https://github.com/tauri-apps/tao`
Downloaded attohttpc v0.18.0
Downloaded minisign-verify v0.2.0
Downloaded serde_urlencoded v0.7.0
Downloaded os_pipe v1.0.0
Downloaded shared_child v1.0.0
Downloaded wildmatch v2.1.0
Downloaded webview2-com v0.7.0
Downloaded webview2-com-macros v0.4.0
Downloaded windows-sys v0.28.0
Downloaded windows_i686_msvc v0.28.0
Downloaded rfd v0.6.1
Downloaded webview2-com-sys v0.7.0
Downloaded windows v0.28.0
Downloaded 13 crates (18.5 MB) in 12.90s (largest was `windows` at 12.1 MB)
Compiling winapi v0.3.9
Compiling windows_i686_msvc v0.28.0
Compiling wry v0.12.2 (https://github.com/tauri-apps/wry?rev=11557f15cf759fcf3008598b684c009f03a8c645#11557f15)
Compiling rfd v0.6.1
Compiling wildmatch v2.1.0
Compiling minisign-verify v0.2.0
Compiling windows_i686_msvc v0.25.0
Compiling tauri v1.0.0-beta.8 (https://github.com/tauri-apps/tauri?branch=next#d56a7fc7)
Compiling webview2-com-macros v0.4.0
Compiling windows-sys v0.28.0
Compiling windows v0.25.0
Compiling serde_urlencoded v0.7.0
Compiling windows v0.28.0
Compiling parking_lot_core v0.8.5
Compiling winapi-util v0.1.5
Compiling schannel v0.1.19
Compiling filetime v0.2.15
Compiling remove_dir_all v0.5.3
Compiling time v0.1.43
Compiling dirs-sys-next v0.1.2
Compiling os_pipe v1.0.0
Compiling os_info v3.0.8
Compiling shared_child v1.0.0
Compiling open v2.0.2
Compiling same-file v1.0.6
Compiling tempfile v3.2.0
Compiling tar v0.4.37
Compiling parking_lot v0.11.2
Compiling native-tls v0.2.8
Compiling dirs-next v2.0.0
Compiling zip v0.5.13
Compiling walkdir v2.3.2
Compiling attohttpc v0.18.0
Compiling string_cache v0.8.2
Compiling ignore v0.4.18
Compiling markup5ever v0.10.1
Compiling html5ever v0.25.1
Compiling kuchiki v0.8.1
Compiling tauri-utils v1.0.0-beta.3 (https://github.com/tauri-apps/tauri?branch=next#d56a7fc7)
Compiling tauri-build v1.0.0-beta.4 (https://github.com/tauri-apps/tauri?branch=next#d56a7fc7)
Compiling tauri-codegen v1.0.0-beta.4 (https://github.com/tauri-apps/tauri?branch=next#d56a7fc7)
Compiling app v0.1.0 (D:\code\rust\tauri-app\src-tauri)
Compiling tauri-macros v1.0.0-beta.5 (https://github.com/tauri-apps/tauri?branch=next#d56a7fc7)
Compiling tao v0.5.2 (https://github.com/tauri-apps/tao?branch=next#dce2d529)
Compiling webview2-com-sys v0.7.0
Compiling webview2-com v0.7.0
Compiling tauri-runtime v0.2.1 (https://github.com/tauri-apps/tauri?branch=next#d56a7fc7)
Compiling tauri-runtime-wry v0.2.1 (https://github.com/tauri-apps/tauri?branch=next#d56a7fc7)
Finished release [optimized] target(s) in 5m 17s
info: Target: x86
info: Wix settings not found. Using `en-US` as language.
info: running candle for "main.wxs"
info: running candle.exe
info: running light to produce D:\code\rust\tauri-app\src-tauri\target\release\bundle/msi/tauri-app_0.1.0_x86.msi
Error: failed to bundle project
Caused by:
Shell Scripting Error:`error running light.exe, try running with --verbose to see command output`
app:spawn Command "D:\code\rust\tauri-app\node_modules\@tauri-apps\cli\bin\tauri-cli.exe" failed with exit code: 1 +1ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
D:\code\rust\tauri-app>yarn tauri build --verbose
yarn run v1.22.17
warning package.json: No license field
$ tauri build --verbose
app:spawn Running "D:\code\rust\tauri-app\node_modules\@tauri-apps\cli\bin\tauri-cli.exe tauri build --verbose" +0ms
Compiling app v0.1.0 (D:\code\rust\tauri-app\src-tauri)
Finished release [optimized] target(s) in 38.42s
info: Target: x86
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 D:\code\rust\tauri-app\src-tauri\target\release\bundle/msi/tauri-app_0.1.0_x86.msi
Windows Installer XML Toolset Linker version 3.11.2.4516
Copyright (c) .NET Foundation and contributors. All rights reserved.
D:\code\rust\tauri-app\src-tauri\target\release\wix\x86\main.wxs(113) : error LGHT0345 : 'D:\code\rust\tauri-app\src-tauri\target\release\Microsoft_VC142_CRT_x64.msm' is a 64-bit merge module but the product consuming it is 32-bit. 32-bit products can consume only 32-bit merge modules.
Error: failed to bundle project
Caused by:
Shell Scripting Error:`error running light.exe`
app:spawn Command "D:\code\rust\tauri-app\node_modules\@tauri-apps\cli\bin\tauri-cli.exe" failed with exit code: 1 +0ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
D:\code\rust\tauri-app> |
I will transfer the issue to Tauri then, this is an issue with the bundler |
Does it seem fixed just now? I tried it a few minutes ago. D:\code\rust\tauri-app>rustup target add x86_64-pc-windows-msvc
info: component 'rust-std' for target 'x86_64-pc-windows-msvc' is up to date
D:\code\rust\tauri-app>rustup target add i686-pc-windows-msvc
info: component 'rust-std' for target 'i686-pc-windows-msvc' is up to date
D:\code\rust\tauri-app>
D:\code\rust\tauri-app>yarn tauri build -t i686-pc-windows-msvc
yarn run v1.22.17
warning package.json: No license field
$ tauri build -t i686-pc-windows-msvc
app:spawn Running "D:\code\rust\tauri-app\node_modules\@tauri-apps\cli\bin\tauri-cli.exe tauri build -t i686-pc-windows-msvc" +0ms
Compiling windows_gen v0.25.0
Compiling zstd-sys v1.6.1+zstd.1.5.0
Compiling bzip2-sys v0.1.11+1.0.8
Compiling windows v0.24.0
Compiling parking_lot v0.11.2
Compiling same-file v1.0.6
Compiling native-tls v0.2.8
Compiling dirs-next v2.0.0
Compiling tar v0.4.37
Compiling tokio v1.14.0
Compiling infer v0.4.0
Compiling rand v0.8.4
Compiling regex v1.5.4
Compiling windows v0.28.0
Compiling walkdir v2.3.2
Compiling num-iter v0.1.42
Compiling tempfile v3.2.0
Compiling globset v0.4.8
Compiling serde v1.0.131
Compiling thiserror v1.0.30
Compiling cssparser v0.27.2
Compiling html5ever v0.25.1
Compiling strum v0.22.0
Compiling futures-util v0.3.18
Compiling png v0.11.0
Compiling windows v0.25.0
Compiling ignore v0.4.18
Compiling winrt-notification v0.5.0
Compiling string_cache v0.8.2
Compiling url v2.2.2
Compiling serde_json v1.0.72
Compiling serde_urlencoded v0.7.0
Compiling os_info v3.0.8
Compiling bincode v1.3.3
Compiling phf v0.10.0
Compiling ico v0.1.0
Compiling futures-executor v0.3.18
Compiling notify-rust v4.5.5
Compiling rfd v0.6.1
Compiling attohttpc v0.18.0
Compiling phf v0.8.0
Compiling futures v0.3.18
Compiling webview2-com-sys v0.7.0
Compiling selectors v0.22.0
Compiling markup5ever v0.10.1
Compiling app v0.1.0 (D:\code\rust\tauri-app\src-tauri)
Compiling kuchiki v0.8.1
Compiling bzip2 v0.4.3
Compiling zip v0.5.13
Compiling zstd-safe v4.1.1+zstd.1.5.0
Compiling zstd v0.9.0+zstd.1.5.0
Compiling tauri-utils v1.0.0-beta.3 (https://github.com/tauri-apps/tauri?branch=next#d56a7fc7)
Compiling tao v0.5.2 (https://github.com/tauri-apps/tao?branch=next#dce2d529)
Compiling webview2-com v0.7.0
Compiling tauri-runtime v0.2.1 (https://github.com/tauri-apps/tauri?branch=next#d56a7fc7)
Compiling wry v0.12.2 (https://github.com/tauri-apps/wry?rev=11557f15cf759fcf3008598b684c009f03a8c645#11557f15)
Compiling tauri-runtime-wry v0.2.1 (https://github.com/tauri-apps/tauri?branch=next#d56a7fc7)
Compiling tauri v1.0.0-beta.8 (https://github.com/tauri-apps/tauri?branch=next#d56a7fc7)
Finished release [optimized] target(s) in 4m 37s
info: Target: x86
info: Wix settings not found. Using `en-US` as language.
info: running candle for "main.wxs"
info: running candle.exe
info: running light to produce D:\code\rust\tauri-app\src-tauri\target\i686-pc-windows-msvc\release\bundle/msi/tauri-app_0.1.0_x86.msi
Finished 1 bundle at:
D:\code\rust\tauri-app\src-tauri\target\i686-pc-windows-msvc\release\bundle/msi/tauri-app_0.1.0_x86.msi
Done in 290.21s.
D:\code\rust\tauri-app> If I use |
I'll let @lucasfernog decide since he knows about this process more than anyone. |
I can fix this issue, I think the CLI is doing a compile-time check for 32 vs 64bit instead of a runtime check. |
@lucasfernog @amrbashir Hi, I tested again just now. It was the same error. D:\code\rust\tauri-app>rustup toolchain list
stable-aarch64-pc-windows-msvc
stable-i686-pc-windows-msvc
stable-x86_64-pc-windows-msvc (default)
D:\code\rust\tauri-app>rustup default stable-i686-pc-windows-msvc
info: using existing install for 'stable-i686-pc-windows-msvc'
info: default toolchain set to 'stable-i686-pc-windows-msvc'
stable-i686-pc-windows-msvc unchanged - rustc 1.57.0 (f1edd0429 2021-11-29)
D:\code\rust\tauri-app>
D:\code\rust\tauri-app>rustup toolchain list
stable-aarch64-pc-windows-msvc
stable-i686-pc-windows-msvc (default)
stable-x86_64-pc-windows-msvc
D:\code\rust\tauri-app>yarn tauri build --verbose
yarn run v1.22.17
warning package.json: No license field
$ tauri build --verbose
app:spawn Running "D:\code\rust\tauri-app\node_modules\@tauri-apps\cli\bin\tauri-cli.exe tauri build --verbose" +0ms
Compiling app v0.1.0 (D:\code\rust\tauri-app\src-tauri)
Finished release [optimized] target(s) in 35.79s
info: Target: x86
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 D:\code\rust\tauri-app\src-tauri\target\release\bundle/msi/tauri-app_0.1.0_x86.msi
Windows Installer XML Toolset Linker version 3.11.2.4516
Copyright (c) .NET Foundation and contributors. All rights reserved.
D:\code\rust\tauri-app\src-tauri\target\release\wix\x86\main.wxs(113) : error LGHT0345 : 'D:\code\rust\tauri-app\src-tauri\target\release\Microsoft_VC142_CRT_x64.msm' is a 64-bit merge module but the product consuming it is 32-bit. 32-bit products can consume only 32-bit merge modules.
Error: failed to bundle project
Caused by:
Shell Scripting Error:`error running light.exe`
app:spawn Command "D:\code\rust\tauri-app\node_modules\@tauri-apps\cli\bin\tauri-cli.exe" failed with exit code: 1 +0mserror Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
D:\code\rust\tauri-app>
If I use |
It will be fixed on the next release. For now you can install the Cargo CLI subcommand directly or use the target option. |
I want to build a 32-bit tauri app, but it failed with the following errors.
also tauri-apps/tao#203.
The text was updated successfully, but these errors were encountered: