公司产品网站应该怎么做,教育教研网站建设的意义,无锡做网络推广的公司,济南建设网官方网站Rust 啥都好#xff0c;就是构建太慢太慢。用我的 M1 构建 Mac 应用 10 分钟内还能拿下#xff0c;但其它普通配置的就太慢了#xff0c;即便用 Github Actions 大约也近 30 分钟才能构建完#xff1a; 找一台高配置的 Windows 主机#xff0c;结果经历了长时间的编译之后…Rust 啥都好就是构建太慢太慢。用我的 M1 构建 Mac 应用 10 分钟内还能拿下但其它普通配置的就太慢了即便用 Github Actions 大约也近 30 分钟才能构建完 找一台高配置的 Windows 主机结果经历了长时间的编译之后又卡在了 Windows 的安装器 WiX 的下载失败上 外层的代理对命令行又不生效最好的方式是把这个 WiX 包在浏览器下载完然后放在 Tauri 需要的地方让它直接使用避免再在命令行里下载。
Tauri 的判断代码在这里https://github.com/tauri-apps/tauri/blob/dev/tooling/bundler/src/bundle/windows/msi.rs#L29
/// Runs all of the commands to build the MSI installer.
/// Returns a vector of PathBuf that shows where the MSI was created.
pub fn bundle_project(settings: Settings, updater: bool) - crate::ResultVecPathBuf {let mut wix_path dirs_next::cache_dir().unwrap();wix_path.push(tauri/WixTools);if !wix_path.exists() {wix::get_and_extract_wix(wix_path)?;} else if WIX_REQUIRED_FILES.iter().any(|p| !wix_path.join(p).exists()){warn!(WixTools directory is missing some files. Recreating it.);std::fs::remove_dir_all(wix_path)?;wix::get_and_extract_wix(wix_path)?;}wix::build_wix_app_installer(settings, wix_path, updater)
}dirs_next::cache_dir() 的结果如下
PlatformValueExampleLinux$XDG_CACHE_HOME or $HOME/.cache/home/alice/.cachemacOS$HOME/Library/Caches/Users/Alice/Library/CachesWindows{FOLDERID_LocalAppData}C:\Users\Alice\AppData\Local
所以直接把 Wix 下载完后在 C:\Users\xxxxxxxx\AppData\Loca 中创建 tauri/WixTools 文件夹然后把内容解决到里面就可以了。
正常构建完成 Github 原文地址