docs/ci: zag is public, drop token handling from the formula, installer and README
CI / test (push) Successful in 3m23s
CI / test (push) Successful in 3m23s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
24c7a2804d
commit
4db6b7b1b3
3 files changed
+8
-25
No files matched your search
@@ -9,17 +9,6 @@ base="https://gitea.samson.media/samson-media/zag/releases/download/v$version"
|
||||
|
||||
cat <<RUBY
|
||||
# Generated by zag's release workflow (.github/ci/render-formula.sh); do not edit by hand.
|
||||
#
|
||||
# The zag repository is private, so downloads send a Gitea access token. Set it before installing:
|
||||
# export HOMEBREW_GITEA_TOKEN=<token with read access to samson-media/zag>
|
||||
class GiteaPrivateReleaseStrategy < CurlDownloadStrategy
|
||||
def _fetch(url:, resolved_url:, timeout:)
|
||||
token = ENV["HOMEBREW_GITEA_TOKEN"]
|
||||
odie "Set HOMEBREW_GITEA_TOKEN to a Gitea access token that can read samson-media/zag" if token.to_s.empty?
|
||||
curl_download resolved_url, "--header", "Authorization: token #{token}", to: temporary_path, timeout: timeout
|
||||
end
|
||||
end
|
||||
|
||||
class Zag < Formula
|
||||
desc "Cross-platform job daemon for long-running FFmpeg and WebDAV media jobs"
|
||||
homepage "https://gitea.samson.media/samson-media/zag"
|
||||
@@ -27,22 +16,22 @@ class Zag < Formula
|
||||
|
||||
on_macos do
|
||||
on_arm do
|
||||
url "$base/zag-macos-arm64", using: GiteaPrivateReleaseStrategy
|
||||
url "$base/zag-macos-arm64"
|
||||
sha256 "$(sha macos-arm64)"
|
||||
end
|
||||
on_intel do
|
||||
url "$base/zag-macos-x64", using: GiteaPrivateReleaseStrategy
|
||||
url "$base/zag-macos-x64"
|
||||
sha256 "$(sha macos-x64)"
|
||||
end
|
||||
end
|
||||
|
||||
on_linux do
|
||||
on_arm do
|
||||
url "$base/zag-linux-arm64", using: GiteaPrivateReleaseStrategy
|
||||
url "$base/zag-linux-arm64"
|
||||
sha256 "$(sha linux-arm64)"
|
||||
end
|
||||
on_intel do
|
||||
url "$base/zag-linux-x64", using: GiteaPrivateReleaseStrategy
|
||||
url "$base/zag-linux-x64"
|
||||
sha256 "$(sha linux-x64)"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user