1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-17 13:05:24 +00:00

fix file mappings

This commit is contained in:
Darien Raymond 2018-10-04 09:55:51 +02:00
parent 3c3ec9660f
commit 7be96a1629
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package(default_visibility=["//visibility:public"])
load("@v2ray_ext//bazel:zip.bzl", "pkg_zip")
load("//release:mapping.bzl", "gen_mappings")
filegroup(
name = "config_json",
@ -39,6 +40,7 @@ pkg_zip(
":geodata",
],
out = "v2ray-macos-64.zip",
mappings = gen_mappings("darwin", "amd64"),
)
pkg_zip(

7
release/mapping.bzl Normal file
View File

@ -0,0 +1,7 @@
def gen_mappings(os, arch):
return {
"v2ray_core/release/doc": "doc",
"v2ray_core/release/config": "",
"v2ray_core/main/" + os + "/" + arch: "",
"v2ray_ext/tools/control/main/" + os + "/" + arch: "",
}