在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:toolmantim/tap-release开源软件地址:https://github.com/toolmantim/tap-release开源编程语言:JavaScript 98.0%开源软件介绍:Automatically update Homebrew taps when you publish new releases to GitHub. Built with Probot. UsageFirstly, you’ll need to install the Tap Release GitHub App. This listens out for any releases, or any changes to the configuration. Then, add a For example, given the following asset: app.zip
tap: my-org/homebrew-app/app.rb
template: |
class App < Formula
desc "$REPO_DESCRIPTION"
homepage "$REPO_WEBSITE"
version "$STABLE_VERSION"
url "$STABLE_ASSET_URL"
sha256 "$STABLE_ASSET_SHA256"
def install
prefix.install "app"
end
end When a new release is published to class App < Formula
desc "The best app ever"
homepage "https://github.com/my-org/app"
version "v2.4.0"
url "https://github.com/my-org/app/releases/download/v4.2.0/app.zip"
sha256 "f3832d8966dd39f7ae1316195ebb379cf18aece281bc2f7c43dd799130ebf460"
def install
prefix.install "app"
end
end If you don't use release assets, you can also just use a URL pattern. For example, given the following template for a Node style tap: url: "https://registry.npmjs.org/app/-/app-$VERSION_NUMBER.tgz"
tap: my-org/homebrew-app/app.rb
template: |
class App < Formula
desc "$REPO_DESCRIPTION"
homepage "$REPO_WEBSITE"
version "$STABLE_VERSION"
url "$STABLE_ASSET_URL"
sha256 "$STABLE_ASSET_SHA256"
# ...
end When a new release is published (e.g. class App < Formula
desc "The best app ever"
homepage "https://github.com/my-org/app"
version "v4.2.0"
url "https://registry.npmjs.org/app/-/app-4.2.0.tgz"
sha256 "f3832d8966dd39f7ae1316195ebb379cf18aece281bc2f7c43dd799130ebf460"
# ...
end Template variablesYou can use any of the following variables in your formula template, and they'll be substituted when the tap is regenerated:
Asset & URL variablesYou can use any of the following variables in the
Configuration optionsYou can configure Tap Release using the following key in your
Tap Release also supports Probot Config, if you want to store your configuration files in a central repository. DevelopingIf you have Node v8+ installed locally, you can run the tests, and a local app, using the following commands: # Install dependencies
yarn
# Run the tests
npm test
# Run the app locally
npm start If you don't have Node installed, you can use Docker Compose: # Run the tests
docker-compose run --rm app npm test ContributingThird-pary contributions are welcome! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论