Crates.io | cargo-distribute |
lib.rs | cargo-distribute |
version | 0.202106.16 |
source | src |
created_at | 2021-06-04 02:52:17.7209 |
updated_at | 2021-06-09 10:03:04.542192 |
description | Template generator for continuous distribution of rust projects to homebrew, linuxbrew and scoop |
homepage | https://github.com/fuyutarow/cargo-distribute |
repository | https://github.com/fuyutarow/cargo-distribute.git |
max_upload_size | |
id | 405978 |
size | 110,397 |
WIP
cargo insatll cargo-distribute
In order to distribute packages using homebrew, two repositories are required.
username/myproject
, https://github.com/usename/myproject
username/homebrew-tap
, https://github.com/usename/homebrew-tap
This is the tap repository you need to distribute using homebrew
usename/homebrew-tap
repository~$ mkdir ~/homebrew-tap
~$ cd $_
~/homebrew-tap$ git init
~/homebrew-tap$ git push
Two files will be generated.
- myproject/.github/workflows/release.yml
- homebrew-tap/templates/myproject.rb
Do a git commit and push in each of the two repositories. username/myproject
and username/homebrew-tap
~$ cd ~/myproject
~/myproject$ echo ./Cargo.toml
~/myproject$ cargo distribute --tap ~/homebrew-tap
~/myproject$ git -A && git commit -m "commit"
~/myproject$ git push
~$ cd ~/homebrew-tap
~/homebrew-tap$ git -A && git commit -m "commit"
~/homebrew-tap$ git push
username/myproject
and push itThis will trigger the distribution.
~$ cd myproject
~/myproject$ git tag vX.Y.Z
~/myproject$ git push --tags