From 7be96a1629872d2425e18b0639be0be754e91e34 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 4 Oct 2018 09:55:51 +0200 Subject: [PATCH] fix file mappings --- release/BUILD | 2 ++ release/mapping.bzl | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 release/mapping.bzl diff --git a/release/BUILD b/release/BUILD index a9a3a075c..c6009071b 100644 --- a/release/BUILD +++ b/release/BUILD @@ -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( diff --git a/release/mapping.bzl b/release/mapping.bzl new file mode 100644 index 000000000..875e2a848 --- /dev/null +++ b/release/mapping.bzl @@ -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: "", + }