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-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",
|
|
|
|
],
|
|
|
|
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",
|
|
|
|
],
|
|
|
|
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",
|
|
|
|
)
|