V2ray-core: Add Windows ARM32 build

Created on 24 Jun 2020  ·  6Comments  ·  Source: v2ray/v2ray-core

Unlike https://github.com/v2ray/v2ray-core/issues/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!

PR Wanted

Most helpful comment

可以先手动交叉编译 https://github.com/v2ray/discussion/issues/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,有性能提升(可用的前提下)

All 6 comments

可以先手动交叉编译 https://github.com/v2ray/discussion/issues/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,有性能提升(可用的前提下)

You can use arm5,6,7

@kslr

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

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

GOOS=windows
GOARCH=arm
GOARM=7

这样么

@kslr

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ferocknew picture ferocknew  ·  3Comments

supersonic600 picture supersonic600  ·  3Comments

ghost picture ghost  ·  4Comments

nielspeen picture nielspeen  ·  4Comments

limaofu picture limaofu  ·  3Comments