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

经测试此代码 也可以在 FreeBSD中 正常完成编译,麻烦作者加上相关代码即可 #43

Open
haft342 opened this issue Jan 6, 2024 · 1 comment

Comments

@haft342
Copy link

haft342 commented Jan 6, 2024

经我测试,此代码 也可以在 FreeBSD中 正常完成编译,麻烦作者加上相关代码即可:
首先
git clone https://github.com/sjlleo/netflix-verify
然后修改
.cross_compile.sh
将 #PLATFORMS="darwin/amd64 darwin/arm64 linux/amd64 linux/arm64 linux/s390x linux/mips"
此行添加或修改代码:PLATFORMS="freebsd/amd64 freebsd/arm64" 即可正常编译FreeBSD 版本。

当然 FreeBSD 需要
pkg install -y go121

接下来就可以编译:
netflix-verify # ./.cross_compile.sh build => dist/nf_freebsd_amd64 build => dist/nf_freebsd_arm64

正常运行:
`netflix-verify # ./dist/nf_freebsd_amd64
NetFlix 解锁检测小工具 v3.0 By @sjlleo
[IPv4]
您的网络可能没有正常配置IPv4,或者没有IPv4网络接入

[IPv6]
您的网络可能没有正常配置IPv6,或者没有IPv6网络接入`

@haft342
Copy link
Author

haft342 commented Jan 7, 2024

忘了补上测试环境信息

# uname -a FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11 04:56:01 UTC 2023 [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

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

1 participant