Skip to content

envato/homebrew-envato-aws-vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Envato envato-aws-vault

Homebrew tap for the Envato port of the aws-vault by 99designs/ByteNess too.

How do I install these formulae?

brew install envato/envato-aws-vault/<formula>

Or brew tap envato/envato-aws-vault and then brew install <formula>.

Documentation

brew help, man brew or check Homebrew's documentation.

Updating formulae

  1. Make sure you are working in the actual homebrew tap directory, likely /opt/homebrew/Library/Taps/envato/homebrew-envato-aws-vault
  2. Open a PR with the update, something like: brew bump-formula-pr --url https://github.com/envato/aws-vault/archive/refs/tags/v<VERSION>.tar.gz --version <VERSION>+envato --no-fork from the Formula directory should do the trick. It will do commits and pull-requests on your behalf, so maybe try with -n first to see what it's going to do.
  3. Ensure the tests pass on the PR
  4. When ready, don't merge the PR. Instead, label it with pr-pull.
  5. This will trigger the "Publish" workflow, which will automatically merge the updates and close the PR.
  6. You may wish to add additional build architectures to the Formula:
    1. Download the bottle for the appropriate releases from the homebrew-envato-aws-vault repository Releases, E.g. the 5.1.0+envato bottle
    2. Unpack it in a tmp directory, make sure you remove all of the attributes that apple scribbles on it (ls -l will show an @ next to a file with an attribute) xattr -r -d <attribute - globs don't work> <directory> for each attribute you find should do the trick.
    3. Download the approriate release/architecture binary from the envato/aws-vault repository Releases, E.g. the 5.1.0+envato arm64 binary
    4. Remove all of the attributes that apple has added to your scary downloaded executable. Something like: xattr -l aws-vault-darwin-arm64 to list em all and xattr -d com.apple.quarantine aws-vault-darwin-arm64 && xattr -d com.apple.macl aws-vault-darwin-arm64 && xattr -d com.apple.metadata:kMDItemWhereFroms aws-vault-darwin-arm64 should do the trick. Do keep in mind you are removing Apples malware protection from these downloads so make 100% sure you got them from github and the correct repository.
    5. Replace the aws-vault/5.1.0+envato/bin/aws-vault binary in the unpacked bottle with your new architecture, make sure you leave it with 555 permissions.
    6. Tar up the new bottle, the name should be the same as the one you downloaded above with the insertion of arm64 before the macos release. E.g. tar zcvf aws-vault-5.1.0+envato.arm64_monterey.bottle.tar.gz aws-vault
    7. Get the SHA256 checksum for your shiny new manually created bottle: E.g. sha256sum aws-vault-5.1.0+envato.arm64_monterey.bottle.tar.gz.
    8. Edit the release of the appropriate homebrew-envato-aws-vault release and upload the new bottle you just made, the link for the 5.1.0+envato example we have been using is here.
    9. Edit the Formula/aws-vault.rb file to add a reference to your new bottle and push your change to the main branch. Your edit should look something like this commit. This file is linted so pay attention to the lining up of the fields and make sure you add the arm64 bottle before plain bottle.
    10. Test by doing a pull on your homebrew-envato-aws-vault tap repository and then test the upgrade by running brew upgrade aws-vault.
    11. Swear about the fact that no-one has figured out how to make the homebrew github actions do this manual crap for us and resolve to figure it out and commit the changes here.
    12. Put that in the too much hassle basket and just do it manually next time.

About

Homebrew tap for envato fork of aws-vault

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages