Added Armv6 file into release zip

pull/2141/head
Shelikhoo 2019-12-26 20:14:21 +08:00
parent 4448d37c2b
commit 78e4d60a91
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
1 changed files with 279 additions and 268 deletions

View File

@ -1,337 +1,348 @@
package(default_visibility=["//visibility:public"]) package(default_visibility = ["//visibility:public"])
load("//infra/bazel:zip.bzl", "pkg_zip") load("//infra/bazel:zip.bzl", "pkg_zip")
load("//release:mapping.bzl", "gen_mappings") load("//release:mapping.bzl", "gen_mappings")
filegroup( filegroup(
name = "config_json", name = "config_json",
srcs = ["config/config.json", "config/vpoint_socks_vmess.json", "config/vpoint_vmess_freedom.json"], srcs = [
"config/config.json",
"config/vpoint_socks_vmess.json",
"config/vpoint_vmess_freedom.json",
],
) )
filegroup( filegroup(
name = "systemd", name = "systemd",
srcs = ["config/systemd/v2ray.service", "config/systemv/v2ray"], srcs = [
"config/systemd/v2ray.service",
"config/systemv/v2ray",
],
) )
filegroup( filegroup(
name = "doc", name = "doc",
srcs = glob(["doc/*.md"]), srcs = glob(["doc/*.md"]),
) )
filegroup( filegroup(
name = "geodata", name = "geodata",
srcs = ["config/geoip.dat", "config/geosite.dat"], srcs = [
"config/geoip.dat",
"config/geosite.dat",
],
) )
pkg_zip( pkg_zip(
name = "v2ray_darwin_amd64_package", name = "v2ray_darwin_amd64_package",
srcs = [ srcs = [
"//main:v2ray_darwin_amd64", ":config_json",
"//main:v2ray_darwin_amd64_sig", ":doc",
"//infra/control/main:v2ctl_darwin_amd64", ":geodata",
"//infra/control/main:v2ctl_darwin_amd64_sig", "//infra/control/main:v2ctl_darwin_amd64",
":config_json", "//infra/control/main:v2ctl_darwin_amd64_sig",
":doc", "//main:v2ray_darwin_amd64",
":geodata", "//main:v2ray_darwin_amd64_sig",
], ],
out = "v2ray-macos.zip", out = "v2ray-macos.zip",
mappings = gen_mappings("darwin", "amd64"), mappings = gen_mappings("darwin", "amd64"),
) )
pkg_zip( pkg_zip(
name = "v2ray_windows_amd64_package", name = "v2ray_windows_amd64_package",
srcs = [ srcs = [
"//main:v2ray_windows_amd64", ":config_json",
"//main:v2ray_windows_amd64_sig", ":doc",
"//main:v2ray_windows_amd64_nowindow", ":geodata",
"//main:v2ray_windows_amd64_nowindow_sig", "//infra/control/main:v2ctl_windows_amd64",
"//infra/control/main:v2ctl_windows_amd64", "//infra/control/main:v2ctl_windows_amd64_sig",
"//infra/control/main:v2ctl_windows_amd64_sig", "//main:v2ray_windows_amd64",
":config_json", "//main:v2ray_windows_amd64_nowindow",
":doc", "//main:v2ray_windows_amd64_nowindow_sig",
":geodata", "//main:v2ray_windows_amd64_sig",
], ],
out = "v2ray-windows-64.zip", out = "v2ray-windows-64.zip",
mappings = gen_mappings("windows", "amd64"), mappings = gen_mappings("windows", "amd64"),
) )
pkg_zip( pkg_zip(
name = "v2ray_windows_x86_package", name = "v2ray_windows_x86_package",
srcs = [ srcs = [
"//main:v2ray_windows_386", ":config_json",
"//main:v2ray_windows_386_sig", ":doc",
"//main:v2ray_windows_386_nowindow", ":geodata",
"//main:v2ray_windows_386_nowindow_sig", "//infra/control/main:v2ctl_windows_386",
"//infra/control/main:v2ctl_windows_386", "//infra/control/main:v2ctl_windows_386_sig",
"//infra/control/main:v2ctl_windows_386_sig", "//main:v2ray_windows_386",
":config_json", "//main:v2ray_windows_386_nowindow",
":doc", "//main:v2ray_windows_386_nowindow_sig",
":geodata", "//main:v2ray_windows_386_sig",
], ],
out = "v2ray-windows-32.zip", out = "v2ray-windows-32.zip",
mappings = gen_mappings("windows", "386"), mappings = gen_mappings("windows", "386"),
) )
pkg_zip( pkg_zip(
name = "v2ray_freebsd_amd64_package", name = "v2ray_freebsd_amd64_package",
srcs = [ srcs = [
"//main:v2ray_freebsd_amd64", ":config_json",
"//main:v2ray_freebsd_amd64_sig", ":doc",
"//infra/control/main:v2ctl_freebsd_amd64", ":geodata",
"//infra/control/main:v2ctl_freebsd_amd64_sig", "//infra/control/main:v2ctl_freebsd_amd64",
":config_json", "//infra/control/main:v2ctl_freebsd_amd64_sig",
":doc", "//main:v2ray_freebsd_amd64",
":geodata", "//main:v2ray_freebsd_amd64_sig",
], ],
out = "v2ray-freebsd-64.zip", out = "v2ray-freebsd-64.zip",
mappings = gen_mappings("freebsd", "amd64"), mappings = gen_mappings("freebsd", "amd64"),
) )
pkg_zip( pkg_zip(
name = "v2ray_freebsd_x86_package", name = "v2ray_freebsd_x86_package",
srcs = [ srcs = [
"//main:v2ray_freebsd_386", ":config_json",
"//main:v2ray_freebsd_386_sig", ":doc",
"//infra/control/main:v2ctl_freebsd_386", ":geodata",
"//infra/control/main:v2ctl_freebsd_386_sig", "//infra/control/main:v2ctl_freebsd_386",
":config_json", "//infra/control/main:v2ctl_freebsd_386_sig",
":doc", "//main:v2ray_freebsd_386",
":geodata", "//main:v2ray_freebsd_386_sig",
], ],
out = "v2ray-freebsd-32.zip", out = "v2ray-freebsd-32.zip",
mappings = gen_mappings("freebsd", "386"), mappings = gen_mappings("freebsd", "386"),
) )
pkg_zip( pkg_zip(
name = "v2ray_openbsd_amd64_package", name = "v2ray_openbsd_amd64_package",
srcs = [ srcs = [
"//main:v2ray_openbsd_amd64", ":config_json",
"//main:v2ray_openbsd_amd64_sig", ":doc",
"//infra/control/main:v2ctl_openbsd_amd64", ":geodata",
"//infra/control/main:v2ctl_openbsd_amd64_sig", "//infra/control/main:v2ctl_openbsd_amd64",
":config_json", "//infra/control/main:v2ctl_openbsd_amd64_sig",
":doc", "//main:v2ray_openbsd_amd64",
":geodata", "//main:v2ray_openbsd_amd64_sig",
], ],
out = "v2ray-openbsd-64.zip", out = "v2ray-openbsd-64.zip",
mappings = gen_mappings("openbsd", "amd64"), mappings = gen_mappings("openbsd", "amd64"),
) )
pkg_zip( pkg_zip(
name = "v2ray_openbsd_x86_package", name = "v2ray_openbsd_x86_package",
srcs = [ srcs = [
"//main:v2ray_openbsd_386", ":config_json",
"//main:v2ray_openbsd_386_sig", ":doc",
"//infra/control/main:v2ctl_openbsd_386", ":geodata",
"//infra/control/main:v2ctl_openbsd_386_sig", "//infra/control/main:v2ctl_openbsd_386",
":config_json", "//infra/control/main:v2ctl_openbsd_386_sig",
":doc", "//main:v2ray_openbsd_386",
":geodata", "//main:v2ray_openbsd_386_sig",
], ],
out = "v2ray-openbsd-32.zip", out = "v2ray-openbsd-32.zip",
mappings = gen_mappings("openbsd", "386"), mappings = gen_mappings("openbsd", "386"),
) )
pkg_zip( pkg_zip(
name = "v2ray_dragonfly_amd64_package", name = "v2ray_dragonfly_amd64_package",
srcs = [ srcs = [
"//main:v2ray_dragonfly_amd64", ":config_json",
"//main:v2ray_dragonfly_amd64_sig", ":doc",
"//infra/control/main:v2ctl_dragonfly_amd64", ":geodata",
"//infra/control/main:v2ctl_dragonfly_amd64_sig", "//infra/control/main:v2ctl_dragonfly_amd64",
":config_json", "//infra/control/main:v2ctl_dragonfly_amd64_sig",
":doc", "//main:v2ray_dragonfly_amd64",
":geodata", "//main:v2ray_dragonfly_amd64_sig",
], ],
out = "v2ray-dragonfly-64.zip", out = "v2ray-dragonfly-64.zip",
mappings = gen_mappings("dragonfly", "amd64"), mappings = gen_mappings("dragonfly", "amd64"),
) )
pkg_zip( pkg_zip(
name = "v2ray_linux_amd64_package", name = "v2ray_linux_amd64_package",
srcs = [ srcs = [
"//main:v2ray_linux_amd64", ":config_json",
"//main:v2ray_linux_amd64_sig", ":doc",
"//infra/control/main:v2ctl_linux_amd64", ":geodata",
"//infra/control/main:v2ctl_linux_amd64_sig", ":systemd",
":config_json", "//infra/control/main:v2ctl_linux_amd64",
":systemd", "//infra/control/main:v2ctl_linux_amd64_sig",
":doc", "//main:v2ray_linux_amd64",
":geodata", "//main:v2ray_linux_amd64_sig",
], ],
out = "v2ray-linux-64.zip", out = "v2ray-linux-64.zip",
mappings = gen_mappings("linux", "amd64"), mappings = gen_mappings("linux", "amd64"),
) )
pkg_zip( pkg_zip(
name = "v2ray_linux_x86_package", name = "v2ray_linux_x86_package",
srcs = [ srcs = [
"//main:v2ray_linux_386", ":config_json",
"//main:v2ray_linux_386_sig", ":doc",
"//infra/control/main:v2ctl_linux_386", ":geodata",
"//infra/control/main:v2ctl_linux_386_sig", ":systemd",
":config_json", "//infra/control/main:v2ctl_linux_386",
":systemd", "//infra/control/main:v2ctl_linux_386_sig",
":doc", "//main:v2ray_linux_386",
":geodata", "//main:v2ray_linux_386_sig",
], ],
out = "v2ray-linux-32.zip", out = "v2ray-linux-32.zip",
mappings = gen_mappings("linux", "386"), mappings = gen_mappings("linux", "386"),
) )
pkg_zip( pkg_zip(
name = "v2ray_linux_arm_package", name = "v2ray_linux_arm_package",
srcs = [ srcs = [
"//main:v2ray_linux_arm", ":config_json",
"//main:v2ray_linux_arm_sig", ":doc",
"//main:v2ray_linux_arm_armv7", ":geodata",
"//main:v2ray_linux_arm_armv7_sig", ":systemd",
"//infra/control/main:v2ctl_linux_arm", "//infra/control/main:v2ctl_linux_arm",
"//infra/control/main:v2ctl_linux_arm_sig", "//infra/control/main:v2ctl_linux_arm_armv7",
"//infra/control/main:v2ctl_linux_arm_armv7", "//infra/control/main:v2ctl_linux_arm_armv7_sig",
"//infra/control/main:v2ctl_linux_arm_armv7_sig", "//infra/control/main:v2ctl_linux_arm_sig",
":config_json", "//main:v2ray_linux_arm",
":systemd", "//main:v2ray_linux_arm_armv6",
":doc", "//main:v2ray_linux_arm_armv6_sig",
":geodata", "//main:v2ray_linux_arm_armv7",
], "//main:v2ray_linux_arm_armv7_sig",
out = "v2ray-linux-arm.zip", "//main:v2ray_linux_arm_sig",
mappings = gen_mappings("linux", "arm"), ],
out = "v2ray-linux-arm.zip",
mappings = gen_mappings("linux", "arm"),
) )
pkg_zip( pkg_zip(
name = "v2ray_linux_arm64_package", name = "v2ray_linux_arm64_package",
srcs = [ srcs = [
"//main:v2ray_linux_arm64", ":config_json",
"//main:v2ray_linux_arm64_sig", ":doc",
"//infra/control/main:v2ctl_linux_arm64", ":geodata",
"//infra/control/main:v2ctl_linux_arm64_sig", ":systemd",
":config_json", "//infra/control/main:v2ctl_linux_arm64",
":systemd", "//infra/control/main:v2ctl_linux_arm64_sig",
":doc", "//main:v2ray_linux_arm64",
":geodata", "//main:v2ray_linux_arm64_sig",
], ],
out = "v2ray-linux-arm64.zip", out = "v2ray-linux-arm64.zip",
mappings = gen_mappings("linux", "arm64"), mappings = gen_mappings("linux", "arm64"),
) )
pkg_zip( pkg_zip(
name = "v2ray_linux_mips_package", name = "v2ray_linux_mips_package",
srcs = [ srcs = [
"//main:v2ray_linux_mips", ":config_json",
"//main:v2ray_linux_mips_sig", ":doc",
"//main:v2ray_linux_mips_softfloat", ":geodata",
"//main:v2ray_linux_mips_softfloat_sig", ":systemd",
"//infra/control/main:v2ctl_linux_mips", "//infra/control/main:v2ctl_linux_mips",
"//infra/control/main:v2ctl_linux_mips_sig", "//infra/control/main:v2ctl_linux_mips_sig",
"//infra/control/main:v2ctl_linux_mips_softfloat", "//infra/control/main:v2ctl_linux_mips_softfloat",
"//infra/control/main:v2ctl_linux_mips_softfloat_sig", "//infra/control/main:v2ctl_linux_mips_softfloat_sig",
":config_json", "//main:v2ray_linux_mips",
":systemd", "//main:v2ray_linux_mips_sig",
":doc", "//main:v2ray_linux_mips_softfloat",
":geodata", "//main:v2ray_linux_mips_softfloat_sig",
], ],
out = "v2ray-linux-mips.zip", out = "v2ray-linux-mips.zip",
mappings = gen_mappings("linux", "mips"), mappings = gen_mappings("linux", "mips"),
) )
pkg_zip( pkg_zip(
name = "v2ray_linux_mipsle_package", name = "v2ray_linux_mipsle_package",
srcs = [ srcs = [
"//main:v2ray_linux_mipsle", ":config_json",
"//main:v2ray_linux_mipsle_sig", ":doc",
"//main:v2ray_linux_mipsle_softfloat", ":geodata",
"//main:v2ray_linux_mipsle_softfloat_sig", ":systemd",
"//infra/control/main:v2ctl_linux_mipsle", "//infra/control/main:v2ctl_linux_mipsle",
"//infra/control/main:v2ctl_linux_mipsle_sig", "//infra/control/main:v2ctl_linux_mipsle_sig",
"//infra/control/main:v2ctl_linux_mipsle_softfloat", "//infra/control/main:v2ctl_linux_mipsle_softfloat",
"//infra/control/main:v2ctl_linux_mipsle_softfloat_sig", "//infra/control/main:v2ctl_linux_mipsle_softfloat_sig",
":config_json", "//main:v2ray_linux_mipsle",
":systemd", "//main:v2ray_linux_mipsle_sig",
":doc", "//main:v2ray_linux_mipsle_softfloat",
":geodata", "//main:v2ray_linux_mipsle_softfloat_sig",
], ],
out = "v2ray-linux-mipsle.zip", out = "v2ray-linux-mipsle.zip",
mappings = gen_mappings("linux", "mipsle"), mappings = gen_mappings("linux", "mipsle"),
)
pkg_zip(
name = "v2ray_linux_mips64_package",
srcs = [
"//main:v2ray_linux_mips64",
"//main:v2ray_linux_mips64_sig",
"//infra/control/main:v2ctl_linux_mips64",
"//infra/control/main:v2ctl_linux_mips64_sig",
":config_json",
":systemd",
":doc",
":geodata",
],
out = "v2ray-linux-mips64.zip",
mappings = gen_mappings("linux", "mips64"),
) )
pkg_zip( pkg_zip(
name = "v2ray_linux_mips64le_package", name = "v2ray_linux_mips64_package",
srcs = [ srcs = [
"//main:v2ray_linux_mips64le", ":config_json",
"//main:v2ray_linux_mips64le_sig", ":doc",
"//infra/control/main:v2ctl_linux_mips64le", ":geodata",
"//infra/control/main:v2ctl_linux_mips64le_sig", ":systemd",
":config_json", "//infra/control/main:v2ctl_linux_mips64",
":systemd", "//infra/control/main:v2ctl_linux_mips64_sig",
":doc", "//main:v2ray_linux_mips64",
":geodata", "//main:v2ray_linux_mips64_sig",
], ],
out = "v2ray-linux-mips64le.zip", out = "v2ray-linux-mips64.zip",
mappings = gen_mappings("linux", "mips64le"), mappings = gen_mappings("linux", "mips64"),
) )
pkg_zip( pkg_zip(
name = "v2ray_linux_s390x_package", name = "v2ray_linux_mips64le_package",
srcs = [ srcs = [
"//main:v2ray_linux_s390x", ":config_json",
"//main:v2ray_linux_s390x_sig", ":doc",
"//infra/control/main:v2ctl_linux_s390x", ":geodata",
"//infra/control/main:v2ctl_linux_s390x_sig", ":systemd",
":config_json", "//infra/control/main:v2ctl_linux_mips64le",
":systemd", "//infra/control/main:v2ctl_linux_mips64le_sig",
":doc", "//main:v2ray_linux_mips64le",
":geodata", "//main:v2ray_linux_mips64le_sig",
], ],
out = "v2ray-linux-s390x.zip", out = "v2ray-linux-mips64le.zip",
mappings = gen_mappings("linux", "s390x"), mappings = gen_mappings("linux", "mips64le"),
) )
pkg_zip( pkg_zip(
name = "v2ray_linux_ppc64_package", name = "v2ray_linux_s390x_package",
srcs = [ srcs = [
"//main:v2ray_linux_ppc64", ":config_json",
"//main:v2ray_linux_ppc64_sig", ":doc",
"//infra/control/main:v2ctl_linux_ppc64", ":geodata",
"//infra/control/main:v2ctl_linux_ppc64_sig", ":systemd",
":config_json", "//infra/control/main:v2ctl_linux_s390x",
":systemd", "//infra/control/main:v2ctl_linux_s390x_sig",
":doc", "//main:v2ray_linux_s390x",
":geodata", "//main:v2ray_linux_s390x_sig",
], ],
out = "v2ray-linux-ppc64.zip", out = "v2ray-linux-s390x.zip",
mappings = gen_mappings("linux", "ppc64"), mappings = gen_mappings("linux", "s390x"),
) )
pkg_zip( pkg_zip(
name = "v2ray_linux_ppc64le_package", name = "v2ray_linux_ppc64_package",
srcs = [ srcs = [
"//main:v2ray_linux_ppc64le", ":config_json",
"//main:v2ray_linux_ppc64le_sig", ":doc",
"//infra/control/main:v2ctl_linux_ppc64le", ":geodata",
"//infra/control/main:v2ctl_linux_ppc64le_sig", ":systemd",
":config_json", "//infra/control/main:v2ctl_linux_ppc64",
":systemd", "//infra/control/main:v2ctl_linux_ppc64_sig",
":doc", "//main:v2ray_linux_ppc64",
":geodata", "//main:v2ray_linux_ppc64_sig",
], ],
out = "v2ray-linux-ppc64le.zip", out = "v2ray-linux-ppc64.zip",
mappings = gen_mappings("linux", "ppc64le"), mappings = gen_mappings("linux", "ppc64"),
)
pkg_zip(
name = "v2ray_linux_ppc64le_package",
srcs = [
":config_json",
":doc",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_ppc64le",
"//infra/control/main:v2ctl_linux_ppc64le_sig",
"//main:v2ray_linux_ppc64le",
"//main:v2ray_linux_ppc64le_sig",
],
out = "v2ray-linux-ppc64le.zip",
mappings = gen_mappings("linux", "ppc64le"),
) )