tauri: [bug] Tauri 2.0 cannot run on Windows 7 SP1(x86 or x64)

Describe the bug

The compiled result of Tauri 2.0 does not run on Windows 7 SP1.

20241016160153

Reproduction

Run pnpm create tauri-app

Expected behavior

It is expected to run normally. I also want to know if Tauri 2.0 supports Windows 7. Globally, Windows 7 still has a 3% market share, and in some regions like China, the share is as high as 20%. This is a significant proportion.

Full tauri info output

[✔] Environment
    - OS: Windows 6.3.9600 i386 (X32)
    ✔ WebView2: 109.0.1518.78
    ✔ MSVC: Visual Studio Professional 2017
    ✔ rustc: 1.77.2 (25ef9e3d8 2024-04-09)
    ✔ cargo: 1.77.2 (e52e36006 2024-03-26)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: 1.77.2-i686-pc-windows-msvc (default)
    - node: 22.9.0
    - pnpm: 9.12.1
    - npm: 10.8.3

[-] Packages
    - tauri 🦀: 2.0.3
    - tauri-build 🦀: 2.0.1
    - wry 🦀: 0.46.1
    - tao 🦀: 0.30.3
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli : 2.0.3

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.1
    - @tauri-apps/plugin-shell : not installed!

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../src

Stack trace

No response

Additional context

I compiled on both Windows 8 x86 and x64 environments, and tested on Windows 7, but it still could not run.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (5 by maintainers)

Most upvoted comments

cargo update cargo-platform@0.1.9 --precise 0.1.8
cargo update cargo_metadata@0.19.2 --precise 0.19.0 

显示在写在Cargo.toml 或者 显示执行一边就行,不过找不到输入点的问题我不太确定,只是觉的应该是某个库用了调用了win7不存在的API导致的,可能要具体去查找一下具体哪个库的问题

是的,我的报错和上面的图片一样,不同的点在于 中间的输入点不一样和dll不一样

我重新进行了尝试,因为我是rust 小白,我发现我在打包的时候 rust并没有使用兼容wind7的版本,虽然我在项目当中的 cargo.toml 文件进行了声明 rust-version 版本,但不知道哪里出来问题,现在我使用命令在系统中切换了rust 版本,现在成功运行了