Files
MapLibreParticleLab/platform/ios/bazel/macros.bzl
Bart Louwers e4a4b9ec67 macOS Metal + AppKit app (#2205)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-02 01:52:19 +02:00

24 lines
687 B
Python

load("@darwin_config//:config.bzl", "API_KEY", "SEM_VER")
def info_plist(name, base_info_plist, out, **kwargs):
native.genrule(
name = name,
srcs = [
base_info_plist,
"//:git_hash",
],
outs = [
out,
],
cmd = ("""
cp $(location {}) $@
plutil -replace MLNCommitHash -string $$(cat $(location //:git_hash)) $@
sem_version=\"""" + SEM_VER + """\"
token=\"""" + API_KEY + """\"
plutil -replace MLNSemanticVersionString -string $$sem_version $@
plutil -replace MLNApiKey -string $$token $@
""").format(base_info_plist),
**kwargs
)