tauri-apps/tauri

[feat] 避免每次从网络上拉取资源,有必要做的脚本优化

bingle123 opened this issue · 3 comments

Describe the problem

网络的不稳定性会,打包过程中由于拉取资源需访问网络导致速度很慢或被中断

Describe the solution you'd like

动态生成的build_appimage.sh中多处都是需要从网络上拉取资源,尤其是从raw.githubusercontent.com拉取镜像资源,导致**国内用户因为国家防火墙问题无法继续。
希望提供资源的可选下载地址,并且拉取资源可选择由本地复制。

Alternatives considered

No response

Additional context

No response

In the last few days, two interesting PRs were merged: #10866 and #11096 - Do they solve your question/problem?

To make the bundler use local files it should be enough to just save them to the location Tauri will download them to anyway (something in ~/.cache/tauri/ i think)

你也能上github了,这个项目的主要维护者中又没有**人,为什么不用英语提issue呢?

In the last few days, two interesting PRs were merged: #10866 and #11096 - Do they solve your question/problem?

These two PRs do not solve his problem. He is encountering an issue with a shell script located at https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-bundler/src/bundle/linux/appimage/appimage. The problem might be due to network issues that prevent the file from being downloaded from GitHub. A new PR needs to be created to address this.