Project import generated by Copybara.
GitOrigin-RevId: 7e4bd5fedad293356745084be4e06066803a6133
This commit is contained in:
parent
cf8666e49d
commit
377b6301bb
4 changed files with 3 additions and 51 deletions
26
BUILD.bazel
26
BUILD.bazel
|
|
@ -1,26 +0,0 @@
|
||||||
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,3 +0,0 @@
|
||||||
# Homebrew Formulas
|
|
||||||
|
|
||||||
This directory contains homebrew formulas materialized from the main monorepo.
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
class TtsClient < Formula
|
class TtsClient < Formula
|
||||||
desc "Internal TTS Client for CSBX"
|
desc "Internal TTS Client for CSBX"
|
||||||
homepage "https://forgejo.csbx.dev/acmcarther/yesod"
|
homepage "https://forgejo.csbx.dev/acmcarther/yesod"
|
||||||
version "0.0.2-b5422b0"
|
version "0.0.2-fe435d1"
|
||||||
|
|
||||||
# URL to your Forgejo Package Registry
|
url "https://forgejo.csbx.dev/api/packages/acmcarther/generic/tts-client/0.0.2-fe435d1/tts-client-darwin-arm64"
|
||||||
url "https://forgejo.csbx.dev/api/packages/acmcarther/generic/tts-client/0.0.2-b5422b0/tts-client-darwin-arm64"
|
sha256 "4efbf58918f68a6f2a291c75d28387b36bcf58afa09b5fcf363332cad42df009"
|
||||||
sha256 "993f75474bb44819c95561611e2fd085fcc193386881bf102c255eb0af874a4b"
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
# Rename to just 'tts-client' upon installation
|
# Rename to just 'tts-client' upon installation
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
class TtsClient < Formula
|
|
||||||
desc "Internal TTS Client for CSBX"
|
|
||||||
homepage "https://forgejo.csbx.dev/acmcarther/yesod"
|
|
||||||
version "{VERSION}"
|
|
||||||
|
|
||||||
# URL to your Forgejo Package Registry
|
|
||||||
url "{URL}"
|
|
||||||
sha256 "{SHA256}"
|
|
||||||
|
|
||||||
def install
|
|
||||||
# Rename to just 'tts-client' upon installation
|
|
||||||
bin.install "tts-client-darwin-arm64" => "tts-client"
|
|
||||||
end
|
|
||||||
|
|
||||||
test do
|
|
||||||
system "#{bin}/tts-client", "--help"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Loading…
Add table
Reference in a new issue