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

107 lines
2.4 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",
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 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",
],
out = "v2ray-macos-64.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",
"//main:v2ray_lwindows_amd64_sig",
"//main:v2ray_windows_amd64_nowindow",
"//main:v2ray_lwindows_amd64_nowindow_sig",
"@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",
)
pkg_zip(
name = "v2ray_windows_x86_package",
srcs = [
"//main:v2ray_windows_x86",
"//main:v2ray_windows_x86_sig",
"//main:v2ray_windows_x86_nowindow",
"//main:v2ray_windows_x86_nowindow_sig",
"@v2ray_ext//tools/control/main:v2ctl_windows_x86",
"@v2ray_ext//tools/control/main:v2ctl_windows_x86_sig",
":config_json",
":doc",
":geodata",
],
out = "v2ray-windows-32.zip",
)
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-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",
)
2018-10-03 17:27:42 -04:00
pkg_zip(
name = "v2ray_linux_x86_package",
srcs = [
"//main:v2ray_linux_x86",
"//main:v2ray_linux_x86_sig",
"@v2ray_ext//tools/control/main:v2ctl_linux_x86",
"@v2ray_ext//tools/control/main:v2ctl_linux_x86_sig",
":config_all",
":systemd",
":doc",
":geodata",
],
out = "v2ray-linux-32.zip",
)