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

Add Windows ARM32 build #2595

Closed
tigerinus opened this issue Jun 24, 2020 · 6 comments
Closed

Add Windows ARM32 build #2595

tigerinus opened this issue Jun 24, 2020 · 6 comments

Comments

@tigerinus
Copy link

Unlike #2516 requesting for a Windows ARM64 build, this is about requesting for a Windows ARM32 build.

I have an old Surface RT2 running ARM32 version of Windows. Can't do much with it other than watching videos and reading news. Having a ARM32 v2ray client would definitely help a lot.

Appreciated!

@RPRX
Copy link
Contributor

RPRX commented Jun 24, 2020

可以先手动交叉编译 v2ray/discussion#756

$env:CGO_ENABLED=0
$env:GOARCH="arm"

go build -o v2ray.exe -trimpath -ldflags "-s -w" ./main
go build -o wv2ray.exe -trimpath -ldflags "-s -w -H windowsgui" ./main
go build -o v2ctl.exe -trimpath -ldflags "-s -w" -tags confonly ./infra/control/main

默认 GOARM=5,分别试试 $env:GOARM=6$env:GOARM=7,有性能提升(可用的前提下)

@kslr
Copy link
Contributor

kslr commented Jun 27, 2020

You can use arm5,6,7

@RPRX
Copy link
Contributor

RPRX commented Jun 27, 2020

@kslr

https://docs.microsoft.com/zh-cn/windows/arm/

他指的是 windows arm build,或许考虑以后编译时加入?(可以类似 v2ray-linux-arm.zip 的文件结构)

@kslr
Copy link
Contributor

kslr commented Jun 27, 2020

GOOS=windows
GOARCH=arm
GOARM=7

这样么

@RPRX
Copy link
Contributor

RPRX commented Jun 27, 2020

@kslr

对,GOARM 分别取值 5/6/7 编译,所有文件打包成 v2ray-windows-arm.zip,就像 linux arm 的一样

以后 arm64 的 windows 也越来越多了,等 golang 支持 windows arm64 时,多加个 v2ray-windows-arm64.zip

@kslr
Copy link
Contributor

kslr commented Jun 27, 2020

https://github.com/v2fly/V2FlyBleedingEdgeBinary/releases/tag/unstable-62813a9edee6d1e4480eb62d81202aa42e31f19f

@kslr kslr closed this as completed Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants