1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 09:56:18 -05:00
v2fly/release/BUILD

380 lines
10 KiB
Python
Raw Normal View History

2019-12-26 07:14:21 -05:00
package(default_visibility = ["//visibility:public"])
2018-10-03 14:32:32 -04:00
2019-02-10 13:19:05 -05:00
load("//infra/bazel:zip.bzl", "pkg_zip")
2018-10-04 03:55:51 -04:00
load("//release:mapping.bzl", "gen_mappings")
2018-10-03 15:18:04 -04:00
2018-10-03 14:32:32 -04:00
filegroup(
2019-12-26 07:14:21 -05:00
name = "config_json",
srcs = [
"config/config.json",
"config/vpoint_socks_vmess.json",
"config/vpoint_vmess_freedom.json",
],
2018-10-03 14:32:32 -04:00
)
filegroup(
2019-12-26 07:14:21 -05:00
name = "systemd",
srcs = [
"config/systemd/v2ray.service",
"config/systemv/v2ray",
],
2018-10-03 14:32:32 -04:00
)
filegroup(
2019-12-26 07:14:21 -05:00
name = "doc",
srcs = glob(["doc/*.md"]),
2018-10-03 14:32:32 -04:00
)
2018-10-03 16:06:21 -04:00
filegroup(
2019-12-26 07:14:21 -05:00
name = "geodata",
srcs = [
"config/geoip.dat",
"config/geosite.dat",
],
2018-10-03 16:06:21 -04:00
)
2018-10-03 17:27:42 -04:00
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_darwin_amd64_package",
srcs = [
":config_json",
":doc",
":geodata",
"//infra/control/main:v2ctl_darwin_amd64",
"//infra/control/main:v2ctl_darwin_amd64_sig",
"//main:v2ray_darwin_amd64",
"//main:v2ray_darwin_amd64_sig",
],
out = "v2ray-macos.zip",
mappings = gen_mappings("darwin", "amd64"),
2018-10-03 17:27:42 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_windows_amd64_package",
srcs = [
":config_json",
":doc",
":geodata",
"//infra/control/main:v2ctl_windows_amd64",
"//infra/control/main:v2ctl_windows_amd64_sig",
"//main:v2ray_windows_amd64",
"//main:v2ray_windows_amd64_nowindow",
"//main:v2ray_windows_amd64_nowindow_sig",
"//main:v2ray_windows_amd64_sig",
],
out = "v2ray-windows-64.zip",
mappings = gen_mappings("windows", "amd64"),
2018-10-03 17:27:42 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_windows_x86_package",
srcs = [
":config_json",
":doc",
":geodata",
"//infra/control/main:v2ctl_windows_386",
"//infra/control/main:v2ctl_windows_386_sig",
"//main:v2ray_windows_386",
"//main:v2ray_windows_386_nowindow",
"//main:v2ray_windows_386_nowindow_sig",
"//main:v2ray_windows_386_sig",
],
out = "v2ray-windows-32.zip",
mappings = gen_mappings("windows", "386"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
name = "v2ray_windows_arm_package",
srcs = [
":config_json",
":doc",
":geodata",
2020-06-28 04:55:08 -04:00
"//infra/control/main:v2ctl_windows_arm_armv5",
"//infra/control/main:v2ctl_windows_arm_armv5_sig",
"//infra/control/main:v2ctl_windows_arm_armv6",
"//infra/control/main:v2ctl_windows_arm_armv6_sig",
"//infra/control/main:v2ctl_windows_arm_armv7",
"//infra/control/main:v2ctl_windows_arm_armv7_sig",
"//main:v2ray_windows_arm_armv5",
"//main:v2ray_windows_arm_armv5_sig",
"//main:v2ray_windows_arm_armv5_nowindow",
"//main:v2ray_windows_arm_armv5_nowindow_sig",
"//main:v2ray_windows_arm_armv6",
"//main:v2ray_windows_arm_armv6_sig",
"//main:v2ray_windows_arm_armv6_nowindow",
"//main:v2ray_windows_arm_armv6_nowindow_sig",
"//main:v2ray_windows_arm_armv7",
"//main:v2ray_windows_arm_armv7_sig",
"//main:v2ray_windows_arm_armv7_nowindow",
"//main:v2ray_windows_arm_armv7_nowindow_sig",
],
out = "v2ray-windows-arm.zip",
mappings = gen_mappings("windows", "arm"),
)
2018-10-04 05:42:58 -04:00
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_freebsd_amd64_package",
srcs = [
":config_json",
":doc",
":geodata",
"//infra/control/main:v2ctl_freebsd_amd64",
"//infra/control/main:v2ctl_freebsd_amd64_sig",
"//main:v2ray_freebsd_amd64",
"//main:v2ray_freebsd_amd64_sig",
],
out = "v2ray-freebsd-64.zip",
mappings = gen_mappings("freebsd", "amd64"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_freebsd_x86_package",
srcs = [
":config_json",
":doc",
":geodata",
"//infra/control/main:v2ctl_freebsd_386",
"//infra/control/main:v2ctl_freebsd_386_sig",
"//main:v2ray_freebsd_386",
"//main:v2ray_freebsd_386_sig",
],
out = "v2ray-freebsd-32.zip",
mappings = gen_mappings("freebsd", "386"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_openbsd_amd64_package",
srcs = [
":config_json",
":doc",
":geodata",
"//infra/control/main:v2ctl_openbsd_amd64",
"//infra/control/main:v2ctl_openbsd_amd64_sig",
"//main:v2ray_openbsd_amd64",
"//main:v2ray_openbsd_amd64_sig",
],
out = "v2ray-openbsd-64.zip",
mappings = gen_mappings("openbsd", "amd64"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_openbsd_x86_package",
srcs = [
":config_json",
":doc",
":geodata",
"//infra/control/main:v2ctl_openbsd_386",
"//infra/control/main:v2ctl_openbsd_386_sig",
"//main:v2ray_openbsd_386",
"//main:v2ray_openbsd_386_sig",
],
out = "v2ray-openbsd-32.zip",
mappings = gen_mappings("openbsd", "386"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_dragonfly_amd64_package",
srcs = [
":config_json",
":doc",
":geodata",
"//infra/control/main:v2ctl_dragonfly_amd64",
"//infra/control/main:v2ctl_dragonfly_amd64_sig",
"//main:v2ray_dragonfly_amd64",
"//main:v2ray_dragonfly_amd64_sig",
],
out = "v2ray-dragonfly-64.zip",
mappings = gen_mappings("dragonfly", "amd64"),
2018-10-03 17:27:42 -04:00
)
2018-10-03 14:32:32 -04:00
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_linux_amd64_package",
srcs = [
":config_json",
":doc",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_amd64",
"//infra/control/main:v2ctl_linux_amd64_sig",
"//main:v2ray_linux_amd64",
"//main:v2ray_linux_amd64_sig",
],
out = "v2ray-linux-64.zip",
mappings = gen_mappings("linux", "amd64"),
2018-10-03 14:32:32 -04:00
)
2018-10-03 17:27:42 -04:00
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_linux_x86_package",
srcs = [
":config_json",
":doc",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_386",
"//infra/control/main:v2ctl_linux_386_sig",
"//main:v2ray_linux_386",
"//main:v2ray_linux_386_sig",
],
out = "v2ray-linux-32.zip",
mappings = gen_mappings("linux", "386"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_linux_arm_package",
srcs = [
":config_json",
":doc",
":geodata",
":systemd",
2020-06-28 04:55:08 -04:00
"//infra/control/main:v2ctl_linux_arm_armv5",
"//infra/control/main:v2ctl_linux_arm_armv5_sig",
"//infra/control/main:v2ctl_linux_arm_armv6",
"//infra/control/main:v2ctl_linux_arm_armv6_sig",
2019-12-26 07:14:21 -05:00
"//infra/control/main:v2ctl_linux_arm_armv7",
"//infra/control/main:v2ctl_linux_arm_armv7_sig",
2020-06-19 08:20:14 -04:00
"//main:v2ray_linux_arm_armv5",
"//main:v2ray_linux_arm_armv5_sig",
2019-12-26 07:14:21 -05:00
"//main:v2ray_linux_arm_armv6",
"//main:v2ray_linux_arm_armv6_sig",
"//main:v2ray_linux_arm_armv7",
"//main:v2ray_linux_arm_armv7_sig",
],
out = "v2ray-linux-arm.zip",
mappings = gen_mappings("linux", "arm"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_linux_arm64_package",
srcs = [
":config_json",
":doc",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_arm64",
"//infra/control/main:v2ctl_linux_arm64_sig",
"//main:v2ray_linux_arm64",
"//main:v2ray_linux_arm64_sig",
],
out = "v2ray-linux-arm64.zip",
mappings = gen_mappings("linux", "arm64"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_linux_mips_package",
srcs = [
":config_json",
":doc",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_mips",
"//infra/control/main:v2ctl_linux_mips_sig",
"//infra/control/main:v2ctl_linux_mips_softfloat",
"//infra/control/main:v2ctl_linux_mips_softfloat_sig",
"//main:v2ray_linux_mips",
"//main:v2ray_linux_mips_sig",
"//main:v2ray_linux_mips_softfloat",
"//main:v2ray_linux_mips_softfloat_sig",
],
out = "v2ray-linux-mips.zip",
mappings = gen_mappings("linux", "mips"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_linux_mipsle_package",
srcs = [
":config_json",
":doc",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_mipsle",
"//infra/control/main:v2ctl_linux_mipsle_sig",
"//infra/control/main:v2ctl_linux_mipsle_softfloat",
"//infra/control/main:v2ctl_linux_mipsle_softfloat_sig",
"//main:v2ray_linux_mipsle",
"//main:v2ray_linux_mipsle_sig",
"//main:v2ray_linux_mipsle_softfloat",
"//main:v2ray_linux_mipsle_softfloat_sig",
],
out = "v2ray-linux-mipsle.zip",
mappings = gen_mappings("linux", "mipsle"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_linux_mips64_package",
srcs = [
":config_json",
":doc",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_mips64",
"//infra/control/main:v2ctl_linux_mips64_sig",
"//main:v2ray_linux_mips64",
"//main:v2ray_linux_mips64_sig",
],
out = "v2ray-linux-mips64.zip",
mappings = gen_mappings("linux", "mips64"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_linux_mips64le_package",
srcs = [
":config_json",
":doc",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_mips64le",
"//infra/control/main:v2ctl_linux_mips64le_sig",
"//main:v2ray_linux_mips64le",
"//main:v2ray_linux_mips64le_sig",
],
out = "v2ray-linux-mips64le.zip",
mappings = gen_mappings("linux", "mips64le"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_linux_s390x_package",
srcs = [
":config_json",
":doc",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_s390x",
"//infra/control/main:v2ctl_linux_s390x_sig",
"//main:v2ray_linux_s390x",
"//main:v2ray_linux_s390x_sig",
],
out = "v2ray-linux-s390x.zip",
mappings = gen_mappings("linux", "s390x"),
2018-10-03 17:27:42 -04:00
)
2018-11-01 07:19:58 -04:00
pkg_zip(
2019-12-26 07:14:21 -05:00
name = "v2ray_linux_ppc64_package",
srcs = [
":config_json",
":doc",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_ppc64",
"//infra/control/main:v2ctl_linux_ppc64_sig",
"//main:v2ray_linux_ppc64",
"//main:v2ray_linux_ppc64_sig",
],
out = "v2ray-linux-ppc64.zip",
mappings = gen_mappings("linux", "ppc64"),
2018-11-01 07:19:58 -04:00
)
pkg_zip(
2019-12-26 07:14:21 -05:00
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"),
2018-11-01 07:19:58 -04:00
)