tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.94k stars 2.6k forks source link

Build error with wix3112 #2616

Closed HengzheLi closed 3 years ago

HengzheLi commented 3 years ago

Repo step:

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 commented 3 years ago

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

Hunlongyu commented 3 years ago

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

liudonghua123 commented 2 years ago

According to the code on the following.

https://github.com/tauri-apps/tauri/blob/26dab690b763da77f4d641df72c483b365f07932/tooling/bundler/src/bundle/windows/msi.rs?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L13-L23

https://github.com/tauri-apps/tauri/blob/26dab690b763da77f4d641df72c483b365f07932/tooling/bundler/src/bundle/windows/msi/wix.rs?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L257-L265

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

githik999 commented 2 years ago

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

kozyan commented 2 years ago

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

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

liudonghua123 commented 2 years ago

@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.

https://github.com/tauri-apps/tauri/blob/13c2fc1ffe93163ec5ab0521fffe936e4f2b8077/tooling/bundler/src/bundle/windows/msi.rs#L13-L22

FoliageOwO commented 2 years ago

@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.

https://github.com/tauri-apps/tauri/blob/13c2fc1ffe93163ec5ab0521fffe936e4f2b8077/tooling/bundler/src/bundle/windows/msi.rs#L13-L22

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

mankeheaven commented 2 years ago

It's still a problem

zzkkui commented 1 year ago

@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.

https://github.com/tauri-apps/tauri/blob/13c2fc1ffe93163ec5ab0521fffe936e4f2b8077/tooling/bundler/src/bundle/windows/msi.rs#L13-L22

after download completed,i encountered other problems:failed to bundle project: error running candle.exe: error running candle.exe. but in fact, i found candle.exe in my loacl.

i download wix in terminal, not manually download.

https://github.com/tauri-apps/tauri/issues/6288

gitzhang commented 1 year ago

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

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

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

GGTMiku commented 1 year ago

@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 commented 4 months ago

不管是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