1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00
v2fly/release/BUILD

59 lines
1.2 KiB
Python
Raw Normal View History

2018-10-03 14:32:32 -04:00
package(default_visibility=["//visibility:public"])
load("@v2ray_ext//bazel:build.bzl", "foreign_go_binary")
load("@v2ray_ext//bazel:zip.bzl", "pkg_zip")
2018-10-03 16:06:21 -04:00
load("@v2ray_ext//bazel:gpg.bzl", "gpg_sign")
2018-10-03 14:32:32 -04:00
foreign_go_binary(
name = "v2ray_linux_amd64",
pkg = "v2ray.com/core/main",
output = "v2ray",
os = "linux",
arch = "amd64",
)
2018-10-03 15:18:04 -04:00
gpg_sign(
name = "v2ray_linux_amd64_sig",
base = ":v2ray_linux_amd64",
)
2018-10-03 14:32:32 -04:00
filegroup(
name = "config_json",
srcs = ["config/config.json"],
)
filegroup(
name = "config_all",
srcs = ["config/vpoint_socks_vmess.json", "config/vpoint_vmess_freedom.json"],
)
filegroup(
name = "systemd",
2018-10-03 16:06:21 -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 14:32:32 -04:00
pkg_zip(
name = "v2ray_linux_amd64_package",
srcs = [
":v2ray_linux_amd64",
2018-10-03 15:18:04 -04:00
":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-03 14:32:32 -04:00
":config_all",
":systemd",
":doc",
2018-10-03 16:06:21 -04:00
":geodata",
2018-10-03 14:32:32 -04:00
],
out = "v2ray-linux-64.zip",
)