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

Build error with wix3112 #2616

Closed
HengzheLi opened this issue Sep 20, 2021 · 12 comments
Closed

Build error with wix3112 #2616

HengzheLi opened this issue Sep 20, 2021 · 12 comments

Comments

@HengzheLi
Copy link

Repo step:

  • Run command 'yarn run tauri biuld --verbose'
    Error log
yarn run v1.22.11
$ tauri build --verbose
 app:spawn Running "C:\Repos\ice-poc\tauri\node_modules\@tauri-apps\cli\bin\tauri-cli.exe tauri build --verbose" +0ms

warning: unused manifest key: source
   Compiling app v0.1.0 (C:\Repos\ice-poc\tauri\src-tauri)
    Finished release [optimized] target(s) in 56.71s
info: Verifying wix package
info: Downloading https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip
info: validating hash
Error: failed to bundle project

Caused by:
    hash mismatch of downloaded file

 app:spawn Command "C:\Repos\ice-poc\tauri\node_modules\@tauri-apps\cli\bin\tauri-cli.exe" failed with exit code: 1 +1ms
error Command failed with exit code 1.
@amrbashir
Copy link
Member

The error states the the hash of the downloaded file is wrong, can you try again ? Please re-open if the issue persists.

@Hunlongyu
Copy link

@HengzheLi 这个问题你解决了嘛?我现在也出现这个问题了,我已经开启全局翻墙,但是还是下载失败,我手动下载成功,但是不清楚放到哪个目录下。

@liudonghua123
Copy link

According to the code on the following.

pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
let wix_path = PathBuf::from("./WixTools");
if !wix_path.exists() {
wix::get_and_extract_wix(&wix_path)?;
}
let msi_path = wix::build_wix_app_installer(settings, &wix_path)?;
Ok(vec![msi_path])
}

pub fn get_and_extract_wix(path: &Path) -> crate::Result<()> {
common::print_info("Verifying wix package")?;
let data = download_and_verify(WIX_URL, WIX_SHA256)?;
common::print_info("extracting WIX")?;
extract_zip(&data, path)
}

Just download https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip and extract it to "./WixTools".

@githik999
Copy link

给你点赞 也是同样遇到 wix 这个下载问题 VPN开了 网络一切正常 手动下载那个链接也很快下载了 Google都正常使用的 就是build命令卡在那个downloading wix那里...无语了

@kozyan
Copy link

kozyan commented Jun 21, 2022

@HengzheLi 这个问题你解决了嘛?我现在也出现这个问题了,我已经开启全局翻墙,但是还是下载失败,我手动下载成功,但是不清楚放到哪个目录下。

对于 tauri 1.0 版,把手动下载的文件夹解压到这里:
C:\Users\[用户名]\AppData\Local\tauri\WixTools

@liudonghua123
Copy link

@HengzheLi 这个问题你解决了嘛?我现在也出现这个问题了,我已经开启全局翻墙,但是还是下载失败,我手动下载成功,但是不清楚放到哪个目录下。

对于 tauri 1.0 版,把手动下载的文件夹解压到这里: C:\Users[用户名]\AppData\Local\tauri\WixTools

Yes, from the code, the location of extracted wixtools changed from ./WixTools to %localappdata%\tauri\WixTools.

pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
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)?;
}
wix::build_wix_app_installer(settings, &wix_path)
}

@FoliageOwO
Copy link

@HengzheLi 这个问题你解决了嘛?我现在也出现这个问题了,我已经开启全局翻墙,但是还是下载失败,我手动下载成功,但是不清楚放到哪个目录下。

对于 tauri 1.0 版,把手动下载的文件夹解压到这里: C:\Users[用户名]\AppData\Local\tauri\WixTools

Yes, from the code, the location of extracted wixtools changed from ./WixTools to %localappdata%\tauri\WixTools.

pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
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)?;
}
wix::build_wix_app_installer(settings, &wix_path)
}

非常感谢,第一次尝试 tauri 但是一直卡在 Downloading wix,对于国内开发者确实不太友好

@mankeheaven
Copy link

It's still a problem

@zzkkui

This comment was marked as off-topic.

@gitzhang
Copy link

@HengzheLi 这个问题你解决了嘛?我现在也出现这个问题了,我已经开启全局翻墙,但是还是下载失败,我手动下载成功,但是不清楚放到哪个目录下。

对于 tauri 1.0 版,把手动下载的文件夹解压到这里: C:\Users[用户名]\AppData\Local\tauri\WixTools

您好,请问我把压缩包放进去之后,在执行npm run tauri build命令时,他会先删掉我这个WixTools目录,然后依然去执行downloading了。您有遇到过这种问题吗?

@GGTMiku
Copy link

GGTMiku commented Apr 13, 2023

@HengzheLi 这个问题你解决了嘛?我现在也出现这个问题了,我已经开启全局翻墙,但是还是下载失败,我手动下载成功,但是不清楚放到哪个目录下。

对于 tauri 1.0 版,把手动下载的文件夹解压到这里: C:\Users[用户名]\AppData\Local\tauri\WixTools

您好,请问我把压缩包放进去之后,在执行npm run tauri build命令时,他会先删掉我这个WixTools目录,然后依然去执行downloading了。您有遇到过这种问题吗?

you need unzip the wix311-binaries.zip file to the WixTools dir

@lonngxiang
Copy link

不管是311还是314版本已经解压放到对应目录了还是显示下载。。。
pake-cli@2.5.2 tauri

tauri build
Compiling app v0.1.0 (C:\Users\loong\AppData\Roaming\npm\node_modules\pake-cli\src-tauri)
Finished release profile [optimized] target(s) in 40.61s
Info Verifying wix package
Downloading https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip

@HengzheLi 这个问题你解决了嘛?我现在也出现这个问题了,我已经开启全局翻墙,但是还是下载失败,我手动下载成功,但是不清楚放到哪个目录下。

对于 tauri 1.0 版,把手动下载的文件夹解压到这里: C:\Users[用户名]\AppData\Local\tauri\WixTools

您好,请问我把压缩包放进去之后,在执行npm run tauri build命令时,他会先删掉我这个WixTools目录,然后依然去执行downloading了。您有遇到过这种问题吗?

you need unzip the wix311-binaries.zip file to the WixTools dir

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

No branches or pull requests