1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/release/BUILD

338 lines
8.5 KiB
Python
Raw Normal View History

2018-10-03 14:32:32 -04:00
package(default_visibility=["//visibility:public"])
load("@v2ray_ext//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(
name = "config_json",
2018-10-29 18:13:31 -04:00
srcs = ["config/config.json", "config/vpoint_socks_vmess.json", "config/vpoint_vmess_freedom.json"],
2018-10-03 14:32:32 -04:00
)
filegroup(
name = "systemd",
2018-10-04 04:00:38 -04:00
srcs = ["config/systemd/v2ray.service", "config/systemv/v2ray"],
2018-10-03 14:32:32 -04:00
)
filegroup(
name = "doc",
srcs = glob(["doc/*.md"]),
)
2018-10-03 16:06:21 -04:00
filegroup(
name = "geodata",
srcs = ["config/geoip.dat", "config/geosite.dat"],
)
2018-10-03 17:27:42 -04:00
pkg_zip(
name = "v2ray_darwin_amd64_package",
srcs = [
"//main:v2ray_darwin_amd64",
"//main:v2ray_darwin_amd64_sig",
"@v2ray_ext//tools/control/main:v2ctl_darwin_amd64",
"@v2ray_ext//tools/control/main:v2ctl_darwin_amd64_sig",
":config_json",
":doc",
":geodata",
],
2018-10-04 07:15:29 -04:00
out = "v2ray-macos.zip",
2018-10-04 03:55:51 -04:00
mappings = gen_mappings("darwin", "amd64"),
2018-10-03 17:27:42 -04:00
)
pkg_zip(
name = "v2ray_windows_amd64_package",
srcs = [
"//main:v2ray_windows_amd64",
2018-10-04 05:42:58 -04:00
"//main:v2ray_windows_amd64_sig",
2018-10-03 17:27:42 -04:00
"//main:v2ray_windows_amd64_nowindow",
2018-10-04 05:42:58 -04:00
"//main:v2ray_windows_amd64_nowindow_sig",
2018-10-03 17:27:42 -04:00
"@v2ray_ext//tools/control/main:v2ctl_windows_amd64",
"@v2ray_ext//tools/control/main:v2ctl_windows_amd64_sig",
":config_json",
":doc",
":geodata",
],
out = "v2ray-windows-64.zip",
2018-10-04 05:42:58 -04:00
mappings = gen_mappings("windows", "amd64"),
2018-10-03 17:27:42 -04:00
)
pkg_zip(
name = "v2ray_windows_x86_package",
srcs = [
2018-10-04 06:45:19 -04:00
"//main:v2ray_windows_386",
"//main:v2ray_windows_386_sig",
"//main:v2ray_windows_386_nowindow",
"//main:v2ray_windows_386_nowindow_sig",
"@v2ray_ext//tools/control/main:v2ctl_windows_386",
"@v2ray_ext//tools/control/main:v2ctl_windows_386_sig",
2018-10-03 17:27:42 -04:00
":config_json",
":doc",
":geodata",
],
out = "v2ray-windows-32.zip",
2018-10-04 06:45:19 -04:00
mappings = gen_mappings("windows", "386"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
name = "v2ray_freebsd_amd64_package",
srcs = [
"//main:v2ray_freebsd_amd64",
"//main:v2ray_freebsd_amd64_sig",
"@v2ray_ext//tools/control/main:v2ctl_freebsd_amd64",
"@v2ray_ext//tools/control/main:v2ctl_freebsd_amd64_sig",
":config_json",
":doc",
":geodata",
],
out = "v2ray-freebsd-64.zip",
mappings = gen_mappings("freebsd", "amd64"),
)
pkg_zip(
name = "v2ray_freebsd_x86_package",
srcs = [
2018-10-04 06:45:19 -04:00
"//main:v2ray_freebsd_386",
"//main:v2ray_freebsd_386_sig",
"@v2ray_ext//tools/control/main:v2ctl_freebsd_386",
"@v2ray_ext//tools/control/main:v2ctl_freebsd_386_sig",
2018-10-04 05:42:58 -04:00
":config_json",
":doc",
":geodata",
],
out = "v2ray-freebsd-32.zip",
2018-10-04 06:45:19 -04:00
mappings = gen_mappings("freebsd", "386"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
name = "v2ray_openbsd_amd64_package",
srcs = [
"//main:v2ray_openbsd_amd64",
"//main:v2ray_openbsd_amd64_sig",
"@v2ray_ext//tools/control/main:v2ctl_openbsd_amd64",
"@v2ray_ext//tools/control/main:v2ctl_openbsd_amd64_sig",
":config_json",
":doc",
":geodata",
],
out = "v2ray-openbsd-64.zip",
mappings = gen_mappings("openbsd", "amd64"),
)
pkg_zip(
name = "v2ray_openbsd_x86_package",
srcs = [
2018-10-04 06:45:19 -04:00
"//main:v2ray_openbsd_386",
"//main:v2ray_openbsd_386_sig",
"@v2ray_ext//tools/control/main:v2ctl_openbsd_386",
"@v2ray_ext//tools/control/main:v2ctl_openbsd_386_sig",
2018-10-04 05:42:58 -04:00
":config_json",
":doc",
":geodata",
],
out = "v2ray-openbsd-32.zip",
2018-10-04 06:45:19 -04:00
mappings = gen_mappings("openbsd", "386"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
name = "v2ray_dragonfly_amd64_package",
srcs = [
"//main:v2ray_dragonfly_amd64",
"//main:v2ray_dragonfly_amd64_sig",
"@v2ray_ext//tools/control/main:v2ctl_dragonfly_amd64",
"@v2ray_ext//tools/control/main:v2ctl_dragonfly_amd64_sig",
":config_json",
":doc",
":geodata",
],
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(
name = "v2ray_linux_amd64_package",
srcs = [
2018-10-03 17:27:42 -04:00
"//main:v2ray_linux_amd64",
"//main:v2ray_linux_amd64_sig",
2018-10-03 14:32:32 -04:00
"@v2ray_ext//tools/control/main:v2ctl_linux_amd64",
2018-10-03 15:18:04 -04:00
"@v2ray_ext//tools/control/main:v2ctl_linux_amd64_sig",
2018-10-29 18:13:31 -04:00
":config_json",
2018-10-03 14:32:32 -04:00
":systemd",
":doc",
2018-10-05 16:00:56 -04:00
":geodata",
2018-10-03 14:32:32 -04:00
],
out = "v2ray-linux-64.zip",
2018-10-04 05:42:58 -04:00
mappings = gen_mappings("linux", "amd64"),
2018-10-03 14:32:32 -04:00
)
2018-10-03 17:27:42 -04:00
pkg_zip(
name = "v2ray_linux_x86_package",
srcs = [
2018-10-04 06:45:19 -04:00
"//main:v2ray_linux_386",
"//main:v2ray_linux_386_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_386",
"@v2ray_ext//tools/control/main:v2ctl_linux_386_sig",
2018-10-29 18:13:31 -04:00
":config_json",
2018-10-03 17:27:42 -04:00
":systemd",
":doc",
":geodata",
],
out = "v2ray-linux-32.zip",
2018-10-04 06:45:19 -04:00
mappings = gen_mappings("linux", "386"),
2018-10-04 05:42:58 -04:00
)
pkg_zip(
name = "v2ray_linux_arm_package",
srcs = [
"//main:v2ray_linux_arm",
"//main:v2ray_linux_arm_sig",
"//main:v2ray_linux_arm_armv7",
"//main:v2ray_linux_arm_armv7_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_arm",
"@v2ray_ext//tools/control/main:v2ctl_linux_arm_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_arm_armv7",
"@v2ray_ext//tools/control/main:v2ctl_linux_arm_armv7_sig",
2018-10-29 18:13:31 -04:00
":config_json",
2018-10-04 05:42:58 -04:00
":systemd",
":doc",
":geodata",
],
out = "v2ray-linux-arm.zip",
mappings = gen_mappings("linux", "arm"),
)
pkg_zip(
name = "v2ray_linux_arm64_package",
srcs = [
"//main:v2ray_linux_arm64",
"//main:v2ray_linux_arm64_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_arm64",
"@v2ray_ext//tools/control/main:v2ctl_linux_arm64_sig",
2018-10-29 18:13:31 -04:00
":config_json",
2018-10-04 05:42:58 -04:00
":systemd",
":doc",
":geodata",
],
out = "v2ray-linux-arm64.zip",
mappings = gen_mappings("linux", "arm64"),
)
pkg_zip(
name = "v2ray_linux_mips_package",
srcs = [
"//main:v2ray_linux_mips",
"//main:v2ray_linux_mips_sig",
"//main:v2ray_linux_mips_softfloat",
"//main:v2ray_linux_mips_softfloat_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_mips",
"@v2ray_ext//tools/control/main:v2ctl_linux_mips_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_mips_softfloat",
"@v2ray_ext//tools/control/main:v2ctl_linux_mips_softfloat_sig",
2018-10-29 18:13:31 -04:00
":config_json",
2018-10-04 05:42:58 -04:00
":systemd",
":doc",
":geodata",
],
out = "v2ray-linux-mips.zip",
mappings = gen_mappings("linux", "mips"),
)
pkg_zip(
name = "v2ray_linux_mipsle_package",
srcs = [
"//main:v2ray_linux_mipsle",
"//main:v2ray_linux_mipsle_sig",
"//main:v2ray_linux_mipsle_softfloat",
"//main:v2ray_linux_mipsle_softfloat_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_mipsle",
"@v2ray_ext//tools/control/main:v2ctl_linux_mipsle_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_mipsle_softfloat",
"@v2ray_ext//tools/control/main:v2ctl_linux_mipsle_softfloat_sig",
2018-10-29 18:13:31 -04:00
":config_json",
2018-10-04 05:42:58 -04:00
":systemd",
":doc",
":geodata",
],
out = "v2ray-linux-mipsle.zip",
mappings = gen_mappings("linux", "mipsle"),
)
pkg_zip(
name = "v2ray_linux_mips64_package",
srcs = [
"//main:v2ray_linux_mips64",
"//main:v2ray_linux_mips64_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_mips64",
"@v2ray_ext//tools/control/main:v2ctl_linux_mips64_sig",
2018-10-29 18:13:31 -04:00
":config_json",
2018-10-04 05:42:58 -04:00
":systemd",
":doc",
":geodata",
],
out = "v2ray-linux-mips64.zip",
mappings = gen_mappings("linux", "mips64"),
)
pkg_zip(
name = "v2ray_linux_mips64le_package",
srcs = [
"//main:v2ray_linux_mips64le",
"//main:v2ray_linux_mips64le_sig",
2018-10-04 06:45:19 -04:00
"@v2ray_ext//tools/control/main:v2ctl_linux_mips64le",
"@v2ray_ext//tools/control/main:v2ctl_linux_mips64le_sig",
2018-10-29 18:13:31 -04:00
":config_json",
2018-10-04 05:42:58 -04:00
":systemd",
":doc",
":geodata",
],
out = "v2ray-linux-mips64le.zip",
mappings = gen_mappings("linux", "mips64le"),
)
pkg_zip(
name = "v2ray_linux_s390x_package",
srcs = [
"//main:v2ray_linux_s390x",
"//main:v2ray_linux_s390x_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_s390x",
"@v2ray_ext//tools/control/main:v2ctl_linux_s390x_sig",
2018-10-29 18:13:31 -04:00
":config_json",
2018-10-04 05:42:58 -04:00
":systemd",
":doc",
":geodata",
],
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(
name = "v2ray_linux_ppc64_package",
srcs = [
"//main:v2ray_linux_ppc64",
"//main:v2ray_linux_ppc64_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_ppc64",
"@v2ray_ext//tools/control/main:v2ctl_linux_ppc64_sig",
":config_json",
":systemd",
":doc",
":geodata",
],
out = "v2ray-linux-ppc64.zip",
mappings = gen_mappings("linux", "ppc64"),
)
pkg_zip(
name = "v2ray_linux_ppc64le_package",
srcs = [
"//main:v2ray_linux_ppc64le",
"//main:v2ray_linux_ppc64le_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_ppc64le",
"@v2ray_ext//tools/control/main:v2ctl_linux_ppc64le_sig",
":config_json",
":systemd",
":doc",
":geodata",
],
out = "v2ray-linux-ppc64le.zip",
mappings = gen_mappings("linux", "ppc64le"),
)