-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[如何解决安装失败] #7338
Comments
This is just because of GFW, you should use proxy or VPN or try offline install solution. |
@FabianLars Is it possible to try to check if the IP is from China mainland? If it, then try to download from github mirrors, such as kgithub.ghproxy.top or others. The link failed to download mensioned can be changed to |
手动下载文件,并解压到 后边你还可能遇到 nsis 下载失败,同样的办法 解压到 |
这么好的东西,中国用不了,可惜了 |
但是,这个方法并不凑效。。 它有个提示:似乎说的是NSIS文件夹下缺失某个文件,需要重新创建一次,我不明白到底缺了什么文件。
不知道什么原因,我将下载下来的zip包,无论放到该文件夹里的任何地方,都会使得以下报错被触发:
不仅该报错被触发,我原本解压nsis的zip包放在上述目录中的文件也一并被移除了。 but, this method is not effective
I dont know cause about it, whether I put the nsis zip package everywhere in my folder, this Exception just appear.
not only this exception appear, but also I put the unzipped nsis zip package in the above folder already delete soon. |
要解压了再放? |
@rechalow @rjl-cli 首先是msi中的wix安装的失败,网络上有很多答案 重点!!! 第二!!! nsis 注意!
源码中给到了这两个文件的下载地址
如果检测到没有这两个文件,就会删除NSIS文件夹,从头开始下载,这就是你@rechalow文件被删的原因 到此为止,就可以了 简略的文件树 |
好了,它已经解决了,谢谢你! |
我写了一段ps脚本
简化了这个过程 |
This comment was marked as off-topic.
This comment was marked as off-topic.
中国程序员总是要花费更多的时间 |
The process of downloading does not follow through with the proxy. But why? |
By the way, /Local/AppData/tauri/ dir doese not exist in Tauri2.0. |
Same issue. Solved, thx! |
"For those who may encounter the same problem in mainland China: export https_proxy=http://127.0.0.1:7890;
export http_proxy=http://127.0.0.1:7890;
export all_proxy=socks5://127.0.0.1:7890; However, note that the Tauri bundler project does not support SOCKS proxies. You can resolve this by unsetting the all_proxy using If that's not the case, consider enabling the SOCKS feature of the ureq dependencies in the Tauri bundler." "对于在中国大陆可能遇到同样问题的用户: export https_proxy=http://127.0.0.1:7890;
export http_proxy=http://127.0.0.1:7890;
export all_proxy=socks5://127.0.0.1:7890; 但请注意,Tauri 打包项目不支持 SOCKS 代理。 您可以通过使用 如果不支持,可以尝试启用 Tauri 打包器中 ureq 依赖项的 SOCKS 功能。" |
Remember add another environment variable, in case you have local server need to access localhost: |
Some files in nsis-3 changed since May of 2023, and I need to update See more details in the code. |
Version 314 folder name renamed to WixTools314 |
说说我的看法。GFW这些东西,不是普通人能阻止的,而且你也不能指望 github 在所有地方都能访问。
tauri 有类似的设置吗? |
Global proxy could save you a lot of time. |
In fact,
|
I downloaded nsis_tauri_utils.dll manually, but he didn't seem to detect it, so he still had to download it automatically. However, the automatic download could not download nsis_tauri_utils.dll. The proxy has been opened, but it has not taken effect. I do not know if there is any other solution |
Powershell: $env:all_proxy="socks5://127.0.0.1:1086" # http, https or socks5 [ip]:[port]
npm run tauri build bash or zsh: export all_proxy=socks5://127.0.0.1:1086 # http, https or socks5 [ip]:[port]
npm run tauri build fish: set -x all_proxy socks5://127.0.0.1:1086 # http, https or socks5 [ip]:[port]
npm run tauri build If the download still fails, it can only mean that there is an issue with your proxy or that you are using the wrong proxy protocol. |
The tauri v2.0 is released, and the nsis.rs has changed, see also tauri/crates/tauri-bundler/src/bundle/windows/nsis/mod.rs Lines 32 to 39 in c7b9a53
tauri/crates/tauri-bundler/src/bundle/windows/msi/mod.rs Lines 32 to 35 in c7b9a53
So for tauri v2.0, if you have some network problems when install wixtools and nsistools during the building process. You can do the following steps offline.
Then it's all down.
|
set -x all_proxy socks5://127.0.0.1:7890 # http, https or socks5 [ip]:[port] |
亲测有效,下载对应的报错版本放入就行了,具体的版本更具编译器而定 |
Describe the bug
Downloading https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip
Error failed to bundle project:
https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip: Connection Failed: Connect error: 由于连接方在一段时间后没有正确答复或连接 的主机没有反应,连接尝试失败。 (os error 10060)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Reproduction
Downloading https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip
Error failed to bundle project:
https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip: Connection Failed: Connect error: 由于连接方在一段时间后没有正确答复或连接 的主机没有反应,连接尝试失败。 (os error 10060)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Expected behavior
Downloading https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip
Error failed to bundle project:
https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip: Connection Failed: Connect error: 由于连接方在一段时间后没有正确答复或连接 的主机没有反应,连接尝试失败。 (os error 10060)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: