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

[如何解决安装失败] #7338

Closed
rjl-cli opened this issue Jul 3, 2023 · 31 comments
Closed

[如何解决安装失败] #7338

rjl-cli opened this issue Jul 3, 2023 · 31 comments
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@rjl-cli
Copy link

rjl-cli commented Jul 3, 2023

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

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.

Stack trace

No response

Additional context

No response

@rjl-cli rjl-cli added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jul 3, 2023
@FabianLars
Copy link
Member

I think something (yourproxy?) is blocking the github download or just timing out.
Can you try what's described here? #2616 ?
-> Download the file yourself and extract it into C:\Users\yourname\AppData\Local\tauri\WixTools\ and then try again :)

@zyppe
Copy link

zyppe commented Jul 3, 2023

This is just because of GFW, you should use proxy or VPN or try offline install solution.

@zyppe
Copy link

zyppe commented Jul 3, 2023

@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 https://kgithub.ghproxy.top/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip

@TZDXF
Copy link

TZDXF commented Jul 3, 2023

手动下载文件,并解压到C:\Users\你的用户名\AppData\Local\tauri\WixTools下,
对应源码 https://github.com/tauri-apps/tauri/blob/dev/tooling/bundler/src/bundle/windows/msi.rs#L29

后边你还可能遇到 nsis 下载失败,同样的办法 解压到C:\Users\你的用户名\AppData\Local\tauri\NSIS
后续还有可能遇到 nsis插件下载失败 ,同样,手动下载,解压到对应文件夹
对应源码 https://github.com/tauri-apps/tauri/blob/dev/tooling/bundler/src/bundle/windows/nsis.rs
"Plugins/x86-unicode/ApplicationID.dll",
"Plugins/x86-unicode/nsis_tauri_utils.dll",

@jiafuzhang
Copy link

这么好的东西,中国用不了,可惜了

@xphost008
Copy link

xphost008 commented Jul 5, 2023

但是,这个方法并不凑效。。
似乎tauri会自动的将AppData\Local\tauri\NSIS整个文件夹删掉。

它有个提示:似乎说的是NSIS文件夹下缺失某个文件,需要重新创建一次,我不明白到底缺了什么文件。

        Warn NSIS directory is missing some files. Recreating it.
        Info Verifying NSIS package

不知道什么原因,我将下载下来的zip包,无论放到该文件夹里的任何地方,都会使得以下报错被触发:

Downloading https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip
       Error failed to bundle project: `https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip: Connection Failed: tls connection init failed: invalid peer certificate: UnknownIssuer`

不仅该报错被触发,我原本解压nsis的zip包放在上述目录中的文件也一并被移除了。
很明显,我的电脑具备上外网的能力,包括github,只是下载接着接着失败罢了。
如果有知情者告诉我该怎么做,我将不胜感激!

but, this method is not effective
It seems that tauri will auto delete the path folder by AppData\Local\tauri\NSIS.
it has a tip: seem that say NSIS folder is missing some files, need to recreating once, I'm not understand whatever it missing file.

        Warn NSIS directory is missing some files. Recreating it.
        Info Verifying NSIS package

I dont know cause about it, whether I put the nsis zip package everywhere in my folder, this Exception just appear.

Downloading https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip
       Error failed to bundle project: `https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip: Connection Failed: tls connection init failed: invalid peer certificate: UnknownIssuer`

not only this exception appear, but also I put the unzipped nsis zip package in the above folder already delete soon.
Actually, My Computer has Accessing the foreign website ability, include github, Just I cant Download it..
if someone know how to do it, I will appreciate much!

@jiafuzhang
Copy link

jiafuzhang commented Jul 6, 2023

@rechalow

要解压了再放?

@TZDXF
Copy link

TZDXF commented Jul 6, 2023

@rechalow @rjl-cli
我再说详细点

首先是msi中的wix安装的失败,网络上有很多答案
手动下载文件,并解压到C:\Users\你的用户名\AppData\Local\tauri\WixTools下,
下载地址 https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip
对应源代码地址为
https://github.com/tauri-apps/tauri/blob/dev/tooling/bundler/src/bundle/windows/msi/wix.rs#L33
https://github.com/tauri-apps/tauri/blob/dev/tooling/bundler/src/bundle/windows/msi.rs#L28

重点!!!
msi.rs中 WIX_REQUIRED_FILES 会检查这里的文件是否存在,不存在会删除文件重新下载。接下来的nsis也是同样的问题。

第二!!! nsis
手动下载文件nsis 解压到C:\Users\你的用户名\AppData\Local\tauri\NSIS
下载地址 https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip
对应源码地址
https://github.com/tauri-apps/tauri/blob/dev/tooling/bundler/src/bundle/windows/nsis.rs#L47

注意!
NSIS这里检测的文件有两个插件是不包含再nsis-3.zip中的。

  "Plugins/x86-unicode/ApplicationID.dll",
  "Plugins/x86-unicode/nsis_tauri_utils.dll",

源码中给到了这两个文件的下载地址

const NSIS_APPLICATIONID_URL: &str = "https://github.com/tauri-apps/binary-releases/releases/download/nsis-plugins-v0/NSIS-ApplicationID.zip";
const NSIS_TAURI_UTILS: &str =
  "https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.1.1/nsis_tauri_utils.dll";

如果检测到没有这两个文件,就会删除NSIS文件夹,从头开始下载,这就是你@rechalow文件被删的原因
这两个文件按照上边给到的位置放进去就可以了。

到此为止,就可以了

简略的文件树
C:\Users\用户名\AppData\Local\tauri>
├─NSIS
│ ├─Bin
│ ├─Contrib
│ ├─Docs
│ ├─Examples
│ ├─Include
│ ├─Plugins
│ │ ├─x86-ansi
│ │ └─x86-unicode 下载的插件放这里
│ └─Stubs
└─WixTools

@xphost008
Copy link

xphost008 commented Jul 6, 2023

好了,它已经解决了,谢谢你!
Ok, It fixed! thank you!
@TZDXF

@suxin2017
Copy link

我写了一段ps脚本

mkdir temp
cd temp


curl  https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip -LO 

Expand-Archive ./wix311-binaries.zip -DestinationPath ./WixTools

curl  https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip -LO 

Expand-Archive ./nsis-3.zip -DestinationPath ./NSIS

mv .\NSIS\nsis-3.*\* .\NSIS
rmdir .\NSIS\nsis-3.*


curl https://github.com/tauri-apps/binary-releases/releases/download/nsis-plugins-v0/NSIS-ApplicationID.zip -LO

Expand-Archive .\NSIS-ApplicationID.zip -DestinationPath .\NSIS-ApplicationID

mv .\NSIS-ApplicationID\Release\* .\NSIS\Plugins\x86-unicode

curl https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.1.1/nsis_tauri_utils.dll -LO

mv .\nsis_tauri_utils.dll .\NSIS\Plugins\x86-unicode

mv .\NSIS ~\AppData\Local\tauri\NSIS
mv .\WixTools ~\AppData\Local\tauri\WixTools

echo "rm temp dir"

rm -r .\NSIS-ApplicationID
rm .\nsis-3.zip
rm .\NSIS-ApplicationID.zip
rm .\wix311-binaries.zip
rm .\temp

echo "done"

简化了这个过程

@borankux

This comment was marked as off-topic.

@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Sep 26, 2023
@liuhuapiaoyuan
Copy link

中国程序员总是要花费更多的时间

@wwalkingg
Copy link

The process of downloading does not follow through with the proxy. But why?

@wwalkingg
Copy link

By the way, /Local/AppData/tauri/ dir doese not exist in Tauri2.0.

@jeffery-zhang
Copy link

Same issue. Solved, thx!

@lonelam
Copy link
Contributor

lonelam commented Jan 13, 2024

"For those who may encounter the same problem in mainland China:
You can set the following in your .bashrc for proxy purposes:

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 unset all_proxy, which should work fine if your proxy tool supports http_proxy and https_proxy.

If that's not the case, consider enabling the SOCKS feature of the ureq dependencies in the Tauri bundler."


"对于在中国大陆可能遇到同样问题的用户:
您可以在.bashrc文件中设置以下代理配置:

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 代理。

您可以通过使用 unset all_proxy 命令来取消设置 all_proxy,如果您的代理工具支持 http_proxy 和 https_proxy,这应该是有效的。

如果不支持,可以尝试启用 Tauri 打包器中 ureq 依赖项的 SOCKS 功能。"

@PlayerAI
Copy link

Remember add another environment variable, in case you have local server need to access localhost:
no_proxy = localhost,127.0.0.1,::1

@liudonghua123
Copy link

Some files in nsis-3 changed since May of 2023, and I need to update %localappdata%\tauri\NSIS and %localappdata%\tauri\NSIS\Plugins\x86-unicode manually.

See more details in the code.

@mashanz
Copy link

mashanz commented Apr 25, 2024

I think something (yourproxy?) is blocking the github download or just timing out. Can you try what's described here? #2616 ? -> Download the file yourself and extract it into C:\Users\yourname\AppData\Local\tauri\WixTools\ and then try again :)

This works like a charm 🔥🚀

@shuangmuaigwu
Copy link

Version 314 folder name renamed to WixTools314

@zengyuhan503
Copy link

我认为某些东西(你的代理?)阻止了 github 下载或只是超时。 你可以尝试这里描述的方法吗?#2616? -> 自行下载文件并将其解压到C:\Users\yourname\AppData\Local\tauri\WixTools\,然后重试 :)

After validation, you need to change the 'WixTools' name to' WixTools314 '

C:\Users\yourname\AppData\Local\tauri\WixTools314\

@9mlcy7
Copy link

9mlcy7 commented Aug 2, 2024

#3770 (comment)

@travisbikkle
Copy link

说说我的看法。GFW这些东西,不是普通人能阻止的,而且你也不能指望 github 在所有地方都能访问。
Electron可以设置如下变量,来从 mirror 下载。

$env:ELECTRON_BUILDER_BINARIES_MIRROR = "https://npmmirror.com/mirrors/electron-builder-binaries/"
$env:ELECTRON_MIRROR = "https://npmmirror.com/mirrors/electron/"

tauri 有类似的设置吗?
其他人说的下载后手动解压的方案,实在是太low了。

@lonelam
Copy link
Contributor

lonelam commented Aug 6, 2024

说说我的看法。GFW这些东西,不是普通人能阻止的,而且你也不能指望 github 在所有地方都能访问。 Electron可以设置如下变量,来从 mirror 下载。

$env:ELECTRON_BUILDER_BINARIES_MIRROR = "https://npmmirror.com/mirrors/electron-builder-binaries/"
$env:ELECTRON_MIRROR = "https://npmmirror.com/mirrors/electron/"

tauri 有类似的设置吗? 其他人说的下载后手动解压的方案,实在是太low了。

Global proxy could save you a lot of time.
This error is caused by the network blocking on downloading WixTools and nsis, which currently has no mirror sites maintaining it in mainland china.
if you have reliable resources or even maintain a mirror site in china, please share and we could add mirror configs just as electron.

@refer5h
Copy link

refer5h commented Aug 23, 2024

我认为某些东西(你的代理?)阻止了 github 下载或只是超时。 你可以尝试这里描述的方法吗?#2616? -> 自行下载文件并将其解压到C:\Users\yourname\AppData\Local\tauri\WixTools\,然后重试 :)

After validation, you need to change the 'WixTools' name to' WixTools314 '

C:\Users\yourname\AppData\Local\tauri\WixTools314\

我用WixTools314成功了
屏幕截图 2024-08-23 154027

@thep0y
Copy link
Contributor

thep0y commented Aug 28, 2024

In fact, tauri-bundler supports setting proxies via environment variables when downloading files.

let agent = ureq::AgentBuilder::new().try_proxy_from_env(true).build();

@Hi-Mr-Wind
Copy link

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

@thep0y
Copy link
Contributor

thep0y commented Sep 2, 2024

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.

@liudonghua123
Copy link

liudonghua123 commented Oct 2, 2024

Some files in nsis-3 changed since May of 2023, and I need to update %localappdata%\tauri\NSIS and %localappdata%\tauri\NSIS\Plugins\x86-unicode manually.

See more details in the code.

The tauri v2.0 is released, and the nsis.rs has changed, see also

#[cfg(target_os = "windows")]
const NSIS_URL: &str =
"https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip";
#[cfg(target_os = "windows")]
const NSIS_SHA1: &str = "057e83c7d82462ec394af76c87d06733605543d4";
const NSIS_TAURI_UTILS_URL: &str =
"https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.4.1/nsis_tauri_utils.dll";
const NSIS_TAURI_UTILS_SHA1: &str = "F99A50209A345185A84D34D0E5F66D04C75FF52F";
and
// URLS for the WIX toolchain. Can be used for cross-platform compilation.
pub const WIX_URL: &str =
"https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip";
pub const WIX_SHA256: &str = "6ac824e1642d6f7277d0ed7ea09411a508f6116ba6fae0aa5f2c7daa2ff43d31";
.

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.

  1. Download https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip and extract to %localappdata%\tauri\WixTools314.
  2. Download https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip and extract to %localappdata%\tauri\NSIS.
  3. Download https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.4.1/nsis_tauri_utils.dll and put it into %localappdata%\tauri\NSIS\Plugins\x86-unicode\nsis_tauri_utils.dll.

Then it's all down.

# BEFORE 
Liu.D.H  tauri-app  git(master)   152ms  01:20 > npm run tauri build

> [email protected] tauri
> tauri build

   Compiling tauri-app v0.1.0 (C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri)
    Finished `release` profile [optimized] target(s) in 53.13s
    Built application at: C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri\target\release\tauri-app.exe
    Info Verifying wix package
    Downloading https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip
failed to bundle project: `https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip: Connection Failed: Connect error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (os error 10060)`
    Error failed to bundle project: `https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip: Connection Failed: Connect error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (os error 10060)`

# AFTER
Liu.D.H  tauri-app  git(master)   1m 17.588s  01:22 > npm run tauri build

> [email protected] tauri
> tauri build

    Finished `release` profile [optimized] target(s) in 1.05s
    Built application at: C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri\target\release\tauri-app.exe
    Info Target: x64
    Running candle for "main.wxs"
    Running light to produce C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri\target\release\bundle\msi\tauri-app_0.1.0_x64_en-US.msi
    Info Target: x64
    Running makensis.exe to produce C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri\target\release\bundle\nsis\tauri-app_0.1.0_x64-setup.exe
    Finished 2 bundles at:
        C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri\target\release\bundle\msi\tauri-app_0.1.0_x64_en-US.msi
        C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri\target\release\bundle\nsis\tauri-app_0.1.0_x64-setup.exe


Liu.D.H  tauri-app  git(master)   24.673s  01:38 >

@garmin-z
Copy link

set -x all_proxy socks5://127.0.0.1:7890 # http, https or socks5 [ip]:[port]

@coderzjd
Copy link

nsis-3 中的某些文件自 2023 年 5 月以来发生了变化,我需要%localappdata%\tauri\NSIS手动更新%localappdata%\tauri\NSIS\Plugins\x86-unicode
更多细节请参见代码

tauri v2.0 发布,nsis.rs 已更改,另请参阅

tauri/crates/tauri-bundler/src/bundle/windows/nsis/mod.rs

第 32 至 39 行 c7b9a53

[ cfg ( target_os = "windows" ) ]

常量 NSIS_URL : & str =
https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip”

[ cfg ( target_os = "windows" ) ]

const NSIS_SHA1 : & str = "057e83c7d82462ec394af76c87d06733605543d4"​​ ;
常量 NSIS_TAURI_UTILS_URL : & str =
https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.4.1/nsis_tauri_utils.dll”
const NSIS_TAURI_UTILS_SHA1 : & str = "F99A50209A345185A84D34D0E5F66D04C75FF52F" ;

tauri/crates/tauri-bundler/src/bundle/windows/msi/mod.rs

第 32 至 35 行 c7b9a53

// WIX 工具链的 URL。可用于跨平台编译。
公共 const WIX_URL : & str =
https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip”
公共 const WIX_SHA256 : &str = “6ac824e1642d6f7277d0ed7ea09411a508f6116ba6fae0aa5f2c7daa2ff43d31” ;

因此对于 tauri v2.0,如果您在构建过程中安装 wixtools 和 nsistools 时遇到一些网络问题。您可以离线执行以下步骤。

  1. 下载https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip并解压至`%localappdata%\tauri\WixTools314`。
  2. 下载https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip并解压至`%localappdata%\tauri\NSIS`。
  3. 下载https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.4.1/nsis_tauri_utils.dll并将其放入`%localappdata%\tauri\NSIS\Plugins\x86-unicode\nsis_tauri_utils.dll`。

然后一切都结束了。

# BEFORE 
Liu.D.H  tauri-app  git(master)   152ms  01:20 > npm run tauri build

> [email protected] tauri
> tauri build

   Compiling tauri-app v0.1.0 (C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri)
    Finished `release` profile [optimized] target(s) in 53.13s
    Built application at: C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri\target\release\tauri-app.exe
    Info Verifying wix package
    Downloading https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip
failed to bundle project: `https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip: Connection Failed: Connect error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (os error 10060)`
    Error failed to bundle project: `https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip: Connection Failed: Connect error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (os error 10060)`

# AFTER
Liu.D.H  tauri-app  git(master)   1m 17.588s  01:22 > npm run tauri build

> [email protected] tauri
> tauri build

    Finished `release` profile [optimized] target(s) in 1.05s
    Built application at: C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri\target\release\tauri-app.exe
    Info Target: x64
    Running candle for "main.wxs"
    Running light to produce C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri\target\release\bundle\msi\tauri-app_0.1.0_x64_en-US.msi
    Info Target: x64
    Running makensis.exe to produce C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri\target\release\bundle\nsis\tauri-app_0.1.0_x64-setup.exe
    Finished 2 bundles at:
        C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri\target\release\bundle\msi\tauri-app_0.1.0_x64_en-US.msi
        C:\Users\LIUD~1.H\AppData\Local\Temp\tauri-app\src-tauri\target\release\bundle\nsis\tauri-app_0.1.0_x64-setup.exe


Liu.D.H  tauri-app  git(master)   24.673s  01:38 >

亲测有效,下载对应的报错版本放入就行了,具体的版本更具编译器而定

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
Status: 📬Proposal
Development

No branches or pull requests