victorpopkov / cask-tools

[in migration from Shell to Go] Collection of tools to help maintain the Homebrew-Cask project.
MIT License
8 stars 2 forks source link

cask-scripts

Build Status

Collection of small scripts designed to help maintain the Homebrew-Cask project. The main purpose, however, is to completely automate the process of finding and upgrading outdated casks.

List of scripts

To learn more about each script explore doc directory.

cask-appcast

Get the latest available version, checkpoint and download URL(s) from appcast. Learn more...

cask-check-updates

Scan casks with appcasts for outdated ones and get the latest available version(s). Learn more...

cask-homepage

Check homepages of the casks and try to fix them. Learn more...

Suggested by @miccal.

Installation

Linux

Even though Homebrew-Cask was created specifically for macOS, most of the scripts provided in the current repository can be used on Linux. The installation procedure is quite simple: just clone this repository somewhere on your system and then use install target of the provided Makefile:

git clone https://github.com/victorpopkov/cask-scripts.git
cd cask-scripts
make install

The same thing goes for uninstallation procedure: just use uninstall target if you would like to completely remove cask-scripts from your system.

Dependencies

The scripts need jq and xmlstarlet to be installed on your system. To install both on Linux just run:

apt-get install jq xmlstarlet

macOS

The easiest way to install these scripts on macOS is using my homebrew-tap repository. You’ll need Homebrew installed and then:

brew install victorpopkov/tap/cask-scripts

Alternatively, you can use install target of the provided Makefile the same way as you would install them on Linux. However, using Homebrew is the more recommended way for macOS, since it also installs all the dependencies.

Running tests

For testing purposes, Bats is bundled into this project. In order to run the tests simply use test target of the provided Makefile: make test

License

Released under the MIT License.