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

第六步脚本的链接显示404 #437

Closed
ok-y opened this issue Apr 17, 2024 · 5 comments
Closed

第六步脚本的链接显示404 #437

ok-y opened this issue Apr 17, 2024 · 5 comments

Comments

@ok-y
Copy link

ok-y commented Apr 17, 2024

https://raw.githubusercontent.com/dmMaze/BallonsTranslator/dev/scripts/macos-build-script.sh
截屏2024-04-17 18 58 09

@dmMaze
Copy link
Owner

dmMaze commented Apr 17, 2024

不知道什么时候改成了 https://github.com/dmMaze/BallonsTranslator/blob/dev/scripts/macos-build-script-arm64.sh

@hyrulelinks 另外我看这个脚本内容和 readme 里的步骤有部分是重合的,比如下载模型哈希校对实际上第一次运行是会做的,脚本另外下载有什么必要吗

@hyrulelinks
Copy link
Contributor

不知道什么时候改成了 dev/scripts/macos-build-script-arm64.sh

@hyrulelinks 另外我看这个脚本内容和 readme 里的步骤有部分是重合的,比如下载模型哈希校对实际上第一次运行是会做的,脚本另外下载有什么必要吗

这个脚本很久没更新了,我记得当初校验哈希是因为程序自己下载模型总是中断,最后是从程序报错信息中复制模型url到浏览器下载,重复报错重复复制url下载,知道全部模型都下载后,才成功运行主程序,所以当时我把下载好的模型打了个包存起来,每次需要重新下载模型了就用这个替代,脚本验证哈希是为了能够复用这些已经下载好的模型,如果哈希通过,说明模型文件没有损坏,不需要重复下载,现在是否还需要验证哈希我不太确定

@hyrulelinks
Copy link
Contributor

hyrulelinks commented Apr 23, 2024

源头上来说,主要是不知道什么原因,运行python主程序自行下载模型虽然速度顶格,但总是会失败报错,无法下载成功,非常磨人,最后只能从错误信息中提取下载链接到浏览器下载,然后按照错误信息提示放到正确的路径下,这个问题我之前好像在其他issue中有报告过,可能python下载的模块需要更新或替换成其他更好的软件包来解决下载的问题

@hyrulelinks
Copy link
Contributor

这两天比较忙,我空点重新写过这个脚本

@hyrulelinks
Copy link
Contributor

已更新readme,不需要脚本了,按照步骤打包APP即可,建议close该议题

@dmMaze dmMaze closed this as completed May 18, 2024
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

3 participants