-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing latest master using brew install sandreas/tap/m4b-tool --HEAD
#213
Comments
brew install sandreas/tap/m4b-tool --HEAD
I figured out how to specify the head in the Ruby formula. The reference was found here: https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md#unstable-versions-head Using head "https://github.com/sandreas/m4b-tool.git", using: :git The full formula can be seen below. # brew tap sandreas/tap
# brew install m4b-tool
class M4bTool < Formula
version "0.4.2"
desc "m4b-tool is a command line utility to merge, split and chapterize audiobook files such as mp3, ogg, flac, m4a or m4b"
homepage "https://github.com/sandreas/m4b-tool"
url "https://github.com/sandreas/m4b-tool/releases/download/v.#{version}/m4b-tool.tar.gz"
sha256 "0ec79733770379dbd11ea9d76fd03d62d8aacca8e66730779f7caaa92f577ba7"
head "https://github.com/sandreas/m4b-tool.git", using: :git
depends_on "php"
depends_on "sandreas/tap/mp4v2"
depends_on "fdk-aac-encoder"
# depends_on "homebrew-ffmpeg/ffmpeg/ffmpeg" => 'with-fdk-aac'
def install
bin.install "m4b-tool.phar" => "m4b-tool"
end
test do
assert_equal "m4b-tool v.#{version}", shell_output("#{bin}/m4b-tool --version").chomp
end
end When calling
So it seems we have to change the |
Did you see the install instructions for the latest pre-release? Just replace the
|
Hello! I'm aware I can just build from source or just use the latest pre-release. However, what I was after was doing this using Homebrew. The reasons are several. Two of them are:
I managed to install the latest pre-release using Homebrew by editing the formula and instead of pointing the head to the latest master I pointed it to the latest pre-release as such: head "https://github.com/sandreas/m4b-tool/files/9721007/m4b-tool.tar.gz" This installs nicely using Unfortunately I'm not experienced in Ruby, nor with Homebrew. But, as mentioned before, probably we need to make the |
Cool, I did not understand that at first. This is really helpful, thank you very much.
Currently, I'm absolutely busy with other things. But I'll keep that in mind for the future and will definitely take a look at this. BTW: @kallegrens the tap is open souce, too: |
Related to #217 The plan is to rework |
Got a PR, switched to a pretty new preview-release since |
Nice to see some progress here! Keep up the good work :) |
Hello!
I would like to install the latest master using Homebrew on MacOS. How do I do this?
Following the guide in the README with
brew install sandreas/tap/m4b-tool
, it simply installs the release version 0.4.2, which is really old.Usually I can do
brew install <package name> --HEAD
to pull the master. However, when doing this I getError: No head is defined for sandreas/tap/m4b-tool
.Any ideas?
The text was updated successfully, but these errors were encountered: