From 5caedebb06e03cc588cf0d99c4fee281b80e0a81 Mon Sep 17 00:00:00 2001 From: Pete Markowsky Date: Tue, 3 May 2022 17:14:02 -0400 Subject: [PATCH] Created a profiles package so provisioning profiles only need to be in one place. (#794) --- Source/santa/BUILD | 2 +- Source/santabundleservice/BUILD | 2 +- Source/santactl/BUILD | 2 +- Source/santad/BUILD | 2 +- Source/santametricservice/BUILD | 2 +- Source/santasyncservice/BUILD | 2 +- profiles/BUILD | 16 ++++++++++++++++ 7 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 profiles/BUILD diff --git a/Source/santa/BUILD b/Source/santa/BUILD index 4f7f78765..59c318818 100644 --- a/Source/santa/BUILD +++ b/Source/santa/BUILD @@ -70,7 +70,7 @@ macos_application( minimum_os_version = "10.15", provisioning_profile = select({ "//:ci_build": None, - "//conditions:default": "Santa_Dev.provisionprofile", + "//conditions:default": "//profiles:santa_dev", }), version = "//:version", visibility = ["//:santa_package_group"], diff --git a/Source/santabundleservice/BUILD b/Source/santabundleservice/BUILD index fe28f3a43..f9e9d3f11 100644 --- a/Source/santabundleservice/BUILD +++ b/Source/santabundleservice/BUILD @@ -32,7 +32,7 @@ macos_command_line_application( minimum_os_version = "10.15", provisioning_profile = select({ "//:ci_build": None, - "//conditions:default": "Santa_Dev.provisionprofile", + "//conditions:default": "//profiles:santa_dev", }), version = "//:version", visibility = ["//:santa_package_group"], diff --git a/Source/santactl/BUILD b/Source/santactl/BUILD index f11a37b1c..91edcffa5 100644 --- a/Source/santactl/BUILD +++ b/Source/santactl/BUILD @@ -70,7 +70,7 @@ macos_command_line_application( minimum_os_version = "10.15", provisioning_profile = select({ "//:ci_build": None, - "//conditions:default": "Santa_Dev.provisionprofile", + "//conditions:default": "//profiles:santa_dev", }), version = "//:version", deps = [":santactl_lib"], diff --git a/Source/santad/BUILD b/Source/santad/BUILD index 368bee9c8..d3f625117 100644 --- a/Source/santad/BUILD +++ b/Source/santad/BUILD @@ -251,7 +251,7 @@ macos_bundle( minimum_os_version = "10.15", provisioning_profile = select({ "//:ci_build": None, - "//conditions:default": "Santa_Daemon_Dev.provisionprofile", + "//conditions:default": "//profiles:daemon_dev", }), version = "//:version", visibility = ["//:santa_package_group"], diff --git a/Source/santametricservice/BUILD b/Source/santametricservice/BUILD index 67ca8970f..8bdae0aec 100644 --- a/Source/santametricservice/BUILD +++ b/Source/santametricservice/BUILD @@ -62,7 +62,7 @@ macos_command_line_application( minimum_os_version = "10.15", provisioning_profile = select({ "//:ci_build": None, - "//conditions:default": "Santa_Dev.provisionprofile", + "//conditions:default": "//profiles:santa_dev", }), version = "//:version", visibility = ["//:santa_package_group"], diff --git a/Source/santasyncservice/BUILD b/Source/santasyncservice/BUILD index c18b96bf4..2d8d1b80c 100644 --- a/Source/santasyncservice/BUILD +++ b/Source/santasyncservice/BUILD @@ -151,7 +151,7 @@ macos_command_line_application( minimum_os_version = "10.15", provisioning_profile = select({ "//:ci_build": None, - "//conditions:default": "Santa_Dev.provisionprofile", + "//conditions:default": "//profiles:santa_dev", }), version = "//:version", visibility = ["//:santa_package_group"], diff --git a/profiles/BUILD b/profiles/BUILD new file mode 100644 index 000000000..a4a4710cc --- /dev/null +++ b/profiles/BUILD @@ -0,0 +1,16 @@ +package( + default_visibility = ["//:santa_package_group"], + features = ["-layering_check"], +) + +licenses(["notice"]) + +filegroup( + name="santa_dev", + srcs=["Santa_Dev.provisionprofile"] +) + +filegroup( + name="daemon_dev", + srcs=["Santa_Daemon_Dev.provisionprofile"], +)