Skip to content
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

Create a larsenwork/homebrew-monoid tap #80

Closed
sscotth opened this issue Jul 27, 2015 · 6 comments
Closed

Create a larsenwork/homebrew-monoid tap #80

sscotth opened this issue Jul 27, 2015 · 6 comments

Comments

@sscotth
Copy link

sscotth commented Jul 27, 2015

It can easily be updated with the release script, and preferably owned under your larsenwork github.

Example casks:

cask :v1 => 'font-monoid' do
  version :latest
  sha256 :no_check

  # github.com is the official download host per the vendor homepage
  url 'https://github.com/larsenwork/monoid/blob/release/Monoid.zip?raw=true'
  homepage 'http://larsenwork.com/monoid/'
  license :ofl

  font 'Monoid-Bold.ttf'
  font 'Monoid-Oblique.ttf'
  font 'Monoid-Regular.ttf'
  font 'Monoid-Retina.ttf'
end
cask :v1 => 'font-monoid-xtralarge-dollar-asterisk-l-nocalt' do
  version :latest
  sha256 :no_check

  # github.com is the official download host per the vendor homepage
  url 'https://github.com/larsenwork/monoid/blob/release/Monoid-XtraLarge-Dollar-Asterisk-l-NoCalt.zip?raw=true'
  homepage 'http://larsenwork.com/monoid/'
  license :ofl

  font 'Monoid-Bold-XtraLarge-Dollar-Asterisk-l-NoCalt.ttf'
  font 'Monoid-Oblique-XtraLarge-Dollar-Asterisk-l-NoCalt.ttf'
  font 'Monoid-Regular-XtraLarge-Dollar-Asterisk-l-NoCalt.ttf'
  font 'Monoid-Retina-XtraLarge-Dollar-Asterisk-l-NoCalt.ttf'
end

https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/brew-tap.md
Homebrew/homebrew-cask-fonts#364

@larsenwork
Copy link
Owner

Using https://github.com/larsenwork/monoid/blob/release/Monoid.zip?raw=true links is a no-go as far as I've understood?
We're currently using rawgit + version.js to serve the binaries.

A quick glance in the other thread lead me to believe it has already been added?

@sscotth
Copy link
Author

sscotth commented Jul 27, 2015

They are probably going to add the base font, but all the variants will need their own cask file.

Homebrew, from what I understand, doesn't really have a consensus on this, but several casks use "raw=true"1, and I can't find any that use rawgit. Either way, I don't think that is a big deal and can use rawgit.

@sscotth
Copy link
Author

sscotth commented Jul 27, 2015

Also, you can reference the latest version with https://cdn.rawgit.com/larsenwork/monoid/release/Monoid.zip like I did above, or you can use a versioned cask like this:

cask :v1 => 'font-monoid' do
  version '0.53'
  sha256 '8413e4308ef10b7121982d81f1c68d29e27ebcceccb536b00458cdb3f275b00d'

  # rawgit.com is the official download host per the vendor homepage
  url 'https://cdn.rawgit.com/larsenwork/monoid/4d2022f8083116435127c863977281ac658de735/Monoid.zip'
  homepage 'http://larsenwork.com/monoid/'
  license :ofl

  font 'Monoid-Bold.ttf'
  font 'Monoid-Oblique.ttf'
  font 'Monoid-Regular.ttf'
  font 'Monoid-Retina.ttf'
end

and

cask :v1 => 'font-monoid-xtralarge-dollar-asterisk-l-nocalt' do
  version '0.53'
  sha256 '5e1e2472079236a2ad07b844545bc56a5e83c8989424957821313b8b36318d7e'

  # rawgit.com is the official download host per the vendor homepage
  url 'https://cdn.rawgit.com/larsenwork/monoid/4d2022f8083116435127c863977281ac658de735/Monoid-XtraLarge-Dollar-Asterisk-l-NoCalt.zip'
  homepage 'http://larsenwork.com/monoid/'
  license :ofl

  font 'Monoid-Bold-XtraLarge-Dollar-Asterisk-l-NoCalt.ttf'
  font 'Monoid-Oblique-XtraLarge-Dollar-Asterisk-l-NoCalt.ttf'
  font 'Monoid-Regular-XtraLarge-Dollar-Asterisk-l-NoCalt.ttf'
  font 'Monoid-Retina-XtraLarge-Dollar-Asterisk-l-NoCalt.ttf'
end

@larsenwork
Copy link
Owner

Ok, thanks for the clarification - problem with all the versions is they might change over time based on user input (e.g. I'm soon changing the default 3 so what used to the alternate will be the default and vice versa) so for now I think it's better just telling people to stop by larsenwork.com/monoid

@sscotth
Copy link
Author

sscotth commented Jul 27, 2015

I believe this will stabilize quickly, but I think no matter what solution, there will be people that might get caught by a default switch like you mentioned.

@larsenwork
Copy link
Owner

Seems like work with little or no gain to me to be honest. I'm perfectly fine with just the default version being added to default Caskroom-fonts and pointing users to larsenwork.com/monoid for custom versions.
But thanks for the suggestion and clarifications 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants