Project import generated by Copybara.
GitOrigin-RevId: 972a0827462b131c99dd8103b01bdae0d6d22565
This commit is contained in:
parent
656137a566
commit
479f03cb62
4 changed files with 31 additions and 31 deletions
26
BUILD.bazel
Normal file
26
BUILD.bazel
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
genrule(
|
||||||
|
name = "generate_tts_client_rb",
|
||||||
|
srcs = [
|
||||||
|
"tts-client.rb.tpl",
|
||||||
|
"//experimental/users/acmcarther/llm/tts_grpc:tts_client_go",
|
||||||
|
],
|
||||||
|
outs = ["tts-client.rb"],
|
||||||
|
cmd = """
|
||||||
|
# Identify the binary. It's the file that doesn't end in .tpl
|
||||||
|
for f in $(locations //experimental/users/acmcarther/llm/tts_grpc:tts_client_go); do
|
||||||
|
BINARY=$$f
|
||||||
|
break
|
||||||
|
done
|
||||||
|
|
||||||
|
# Calculate SHA256
|
||||||
|
if command -v sha256sum >/dev/null 2>&1; then
|
||||||
|
HASH=$$(sha256sum $$BINARY | cut -d' ' -f1)
|
||||||
|
else
|
||||||
|
HASH=$$(shasum -a 256 $$BINARY | cut -d' ' -f1)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Substitute into template
|
||||||
|
sed "s/{SHA256}/$$HASH/g" $(location tts-client.rb.tpl) > $@
|
||||||
|
""",
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
|
)
|
||||||
|
|
@ -1 +1,3 @@
|
||||||
# Homebrew Formulas\n\nFormulas in this directory are automatically synced to acmcarther/yesod-homebrew-tools.
|
# Homebrew Formulas
|
||||||
|
|
||||||
|
This directory contains homebrew formulas materialized from the main monorepo.
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
# tools/homebrew/copy.bara.sky
|
|
||||||
|
|
||||||
# Source: Your Monorepo
|
|
||||||
sourceUrl = "https://forgejo.csbx.dev/acmcarther/yesod.git"
|
|
||||||
# Destination: The Public Homebrew Tap
|
|
||||||
destinationUrl = "https://forgejo.csbx.dev/acmcarther/yesod-homebrew-tools.git"
|
|
||||||
|
|
||||||
core.workflow(
|
|
||||||
name = "default",
|
|
||||||
origin = git.origin(
|
|
||||||
url = sourceUrl,
|
|
||||||
ref = "main",
|
|
||||||
),
|
|
||||||
destination = git.destination(
|
|
||||||
url = destinationUrl,
|
|
||||||
fetch = "main",
|
|
||||||
push = "main",
|
|
||||||
),
|
|
||||||
# Only look at the tools/homebrew directory
|
|
||||||
origin_files = glob(["tools/homebrew/**"]),
|
|
||||||
|
|
||||||
authoring = authoring.pass_thru("Copybara <copybara@csbx.dev>"),
|
|
||||||
|
|
||||||
# Move tools/homebrew/<file> -> <file> in the destination
|
|
||||||
transformations = [
|
|
||||||
core.move("tools/homebrew", ""),
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
@ -4,8 +4,8 @@ class TtsClient < Formula
|
||||||
version "0.0.1"
|
version "0.0.1"
|
||||||
|
|
||||||
# URL to your Forgejo Package Registry
|
# URL to your Forgejo Package Registry
|
||||||
url "https://forgejo.csbx.dev/api/packages/acmcarther/generic/tts-client/0.0.1/tts-client-darwin-arm64"
|
url "https://forgejo.csbx.dev/api/packages/acmcarther/generic/tts-client/0.0.2/tts-client-darwin-arm64"
|
||||||
sha256 "13d2109abd08b49f553595e9ea9df541dd37e9a8a316baa32c9d6c563743813f"
|
sha256 "{SHA256}"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
# Rename to just 'tts-client' upon installation
|
# Rename to just 'tts-client' upon installation
|
||||||
Loading…
Add table
Reference in a new issue