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

327 lines
7.8 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/system/v2ray.service",
"config/systemd/system/v2ray@.service",
2019-12-26 07:14:21 -05:00
],
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",
":geodata",
"//infra/control/main:v2ctl_darwin_amd64",
"//main:v2ray_darwin_amd64",
],
2020-07-18 22:40:33 -04:00
out = "v2ray-macos-64.zip",
mappings = gen_mappings("darwin", "amd64", "0"),
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",
":geodata",
"//infra/control/main:v2ctl_windows_amd64",
"//main:v2ray_windows_amd64",
"//main:v2ray_windows_amd64_nowindow",
],
out = "v2ray-windows-64.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("windows", "amd64", "0"),
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",
":geodata",
"//infra/control/main:v2ctl_windows_386",
"//main:v2ray_windows_386",
"//main:v2ray_windows_386_nowindow",
],
out = "v2ray-windows-32.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("windows", "386", "0"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2020-07-18 22:40:33 -04:00
name = "v2ray_windows_armv7_package",
srcs = [
":config_json",
":geodata",
2020-07-18 22:40:33 -04:00
"//infra/control/main:v2ctl_windows_arm_7",
"//main:v2ray_windows_arm_7",
"//main:v2ray_windows_arm_7_nowindow",
],
2020-07-18 22:40:33 -04:00
out = "v2ray-windows-arm32-v7a.zip",
mappings = gen_mappings("windows", "arm", "7"),
)
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",
":geodata",
"//infra/control/main:v2ctl_freebsd_amd64",
"//main:v2ray_freebsd_amd64",
],
out = "v2ray-freebsd-64.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("freebsd", "amd64", "0"),
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",
":geodata",
"//infra/control/main:v2ctl_freebsd_386",
"//main:v2ray_freebsd_386",
],
out = "v2ray-freebsd-32.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("freebsd", "386", "0"),
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",
":geodata",
"//infra/control/main:v2ctl_openbsd_amd64",
"//main:v2ray_openbsd_amd64",
],
out = "v2ray-openbsd-64.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("openbsd", "amd64", "0"),
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",
":geodata",
"//infra/control/main:v2ctl_openbsd_386",
"//main:v2ray_openbsd_386",
],
out = "v2ray-openbsd-32.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("openbsd", "386", "0"),
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",
":geodata",
"//infra/control/main:v2ctl_dragonfly_amd64",
"//main:v2ray_dragonfly_amd64",
],
out = "v2ray-dragonfly-64.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("dragonfly", "amd64", "0"),
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",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_amd64",
"//main:v2ray_linux_amd64",
],
out = "v2ray-linux-64.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("linux", "amd64", "0"),
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",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_386",
"//main:v2ray_linux_386",
],
out = "v2ray-linux-32.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("linux", "386", "0"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2020-07-18 22:40:33 -04:00
name = "v2ray_linux_arm64_package",
2019-12-26 07:14:21 -05:00
srcs = [
":config_json",
":geodata",
":systemd",
2020-07-18 22:40:33 -04:00
"//infra/control/main:v2ctl_linux_arm64",
"//main:v2ray_linux_arm64",
2019-12-26 07:14:21 -05:00
],
2020-07-18 22:40:33 -04:00
out = "v2ray-linux-arm64-v8a.zip",
mappings = gen_mappings("linux", "arm64", "0"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2020-07-18 22:40:33 -04:00
name = "v2ray_linux_armv7_package",
2019-12-26 07:14:21 -05:00
srcs = [
":config_json",
":geodata",
":systemd",
2020-07-18 22:40:33 -04:00
"//infra/control/main:v2ctl_linux_arm_7",
"//main:v2ray_linux_arm_7",
],
out = "v2ray-linux-arm32-v7a.zip",
mappings = gen_mappings("linux", "arm", "7"),
)
pkg_zip(
name = "v2ray_linux_armv6_package",
srcs = [
":config_json",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_arm_6",
"//main:v2ray_linux_arm_6",
],
out = "v2ray-linux-arm32-v6.zip",
mappings = gen_mappings("linux", "arm", "6"),
)
pkg_zip(
name = "v2ray_linux_armv5_package",
srcs = [
":config_json",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_arm_5",
"//main:v2ray_linux_arm_5",
2019-12-26 07:14:21 -05:00
],
2020-07-18 22:40:33 -04:00
out = "v2ray-linux-arm32-v5.zip",
mappings = gen_mappings("linux", "arm", "5"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2020-07-18 22:40:33 -04:00
name = "v2ray_linux_mips32_package",
2019-12-26 07:14:21 -05:00
srcs = [
":config_json",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_mips",
"//infra/control/main:v2ctl_linux_mips_softfloat",
"//main:v2ray_linux_mips",
"//main:v2ray_linux_mips_softfloat",
],
2020-07-18 22:40:33 -04:00
out = "v2ray-linux-mips32.zip",
mappings = gen_mappings("linux", "mips", "0"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
2020-07-18 22:40:33 -04:00
name = "v2ray_linux_mips32le_package",
2019-12-26 07:14:21 -05:00
srcs = [
":config_json",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_mipsle",
"//infra/control/main:v2ctl_linux_mipsle_softfloat",
"//main:v2ray_linux_mipsle",
"//main:v2ray_linux_mipsle_softfloat",
],
2020-07-18 22:40:33 -04:00
out = "v2ray-linux-mips32le.zip",
mappings = gen_mappings("linux", "mipsle", "0"),
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",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_mips64",
"//main:v2ray_linux_mips64",
],
out = "v2ray-linux-mips64.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("linux", "mips64", "0"),
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",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_mips64le",
"//main:v2ray_linux_mips64le",
],
out = "v2ray-linux-mips64le.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("linux", "mips64le", "0"),
2018-10-04 05:42:58 -04:00
)
2020-07-19 16:51:39 -04:00
pkg_zip(
name = "v2ray_linux_riscv64_package",
srcs = [
":config_json",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_riscv64",
"//main:v2ray_linux_riscv64",
],
out = "v2ray-linux-riscv64.zip",
mappings = gen_mappings("linux", "riscv64", "0"),
)
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",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_s390x",
"//main:v2ray_linux_s390x",
],
out = "v2ray-linux-s390x.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("linux", "s390x", "0"),
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",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_ppc64",
"//main:v2ray_linux_ppc64",
],
out = "v2ray-linux-ppc64.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("linux", "ppc64", "0"),
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",
":geodata",
":systemd",
"//infra/control/main:v2ctl_linux_ppc64le",
"//main:v2ray_linux_ppc64le",
],
out = "v2ray-linux-ppc64le.zip",
2020-07-18 22:40:33 -04:00
mappings = gen_mappings("linux", "ppc64le", "0"),
2018-11-01 07:19:58 -04:00
)