apernet / hysteria

Hysteria is a powerful, lightning fast and censorship resistant proxy.
https://v2.hysteria.network/
MIT License
14.96k stars 1.67k forks source link

Request: mipsel_24kc binaries added to downloads 中文也行 #522

Closed alcatraz-zz closed 1 year ago

alcatraz-zz commented 1 year ago

Hi guys

I'm looking to run Hysteria on some openwrt mipsel routers like xiaomi etc. They're all mipsel_24kc and arm. You support arm but not mipsel_24kc yet. Could you? (X-ray does.) That would be great! Thanks!

cross-hello commented 1 year ago

Maybe thus, don't know. Never compile for the architecture before.

GOOS=linux
GOARCH=mipsle
output="build/hysteria-$GOOS-$GOARCH" 
ldflags="-s -w -X 'main.appDate=$(date -u '+%F %T')'"
env GOOS=$GOOS GOARCH=$GOARCH CGO_ENABLED=0 go build -o $output -tags=gpl -ldflags "$ldflags" -trimpath ./app/cmd/
tobyxdd commented 1 year ago

Isn't mipsel just an alias of mipsle? We already have builds for it.

alcatraz-zz commented 1 year ago

X-ray calls the binary "mips32le softfloat". That one works on mipsel_24kc.

申请提供mips32le softfloat版本

cross-hello commented 1 year ago

Set GOARCH=mips will compile 32-bits version, and mips64 to 64-bits version.


From: alcatraz-zz @.> To: apernet/hysteria @.> CC: Nanyu @.>; Comment @.> Date: Dec 8, 2022 23:52:43 Subject: Re: [apernet/hysteria] Request: mipsel_24kc binaries added to downloads 中文也行 (Issue #522)

X-ray calls the binary "mips32le softfloat". That one works on mipsel_24kc.

申请提供mips32le softfloat版本

— Reply to this email directly, view it on GitHub[https://github.com/apernet/hysteria/issues/522#issuecomment-1343556857], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AKGBAYAHSD3HN3K7O7LICJDWMJYETANCNFSM6AAAAAASW5KXWU]. You are receiving this because you commented.[Tracking image][https://github.com/notifications/beacon/AKGBAYAYJ3JROM3WDEPPR5DWMJYETA5CNFSM6AAAAAASW5KXWWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSQCUGPS.gif]Message ID: @.***>

sky92682 commented 1 year ago

hysteria_linux_mipsle.zip 试试这个,这是基于1.3.1源码编译的,编译时设置GOARCH=mipsle

alcatraz-zz commented 1 year ago

试过那个mipsle版本。和xray的mips32le "hardfloat" (FPU 版本?)结果一样。没回应。 xray的mips32le提供两个,一个普通和一个“softfloat“。softfloat的好用。

sky92682 commented 1 year ago

编译了一个软浮点的版本,你试试看。 hysteria-linux-mipsle-softfloat.zip

编译方法: 进入main.go所在的目录(/hysteria/app/cmd/),使用以下参数编译: CGO_ENABLED=0 GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -trimpath -ldflags="-s -w" -o ./hysteria-linux-mipsle-softfloat

mritd commented 1 year ago

项目中其实存在另一个编译工具(go-task), 当时考虑依赖第三方工具问题所以暂未增加文档说明.

你可以直接通过安装 go-task(类似 makefile 的构建工具), 然后在项目根目录下执行 task 命令即可完成多平台的交叉编译; 目前 taskfile 提供了一些比较全的交叉编译版本.

image
alcatraz-zz commented 1 year ago

哇哇哇,厉害了。最早能周一试试。以后通知啊。辛苦了

mritd commented 1 year ago

其他的更多平台请等待 #529 合并.

tobyxdd commented 1 year ago

1.3.2 添加了 mipsle-sf