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

Unofficial LilyPond version for macOS Catalina #39

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions Casks/lilypond-64-bit.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
cask 'lilypond-64-bit' do
version '2.20.0,20200311175017'
sha256 '655bb00970279ae72d3c7dfe19186db9025f0cb5eae7e3c4485c1b3b1116bc69'

# bintray.com/marnen/lilypond-darwin-64/download_file?file_path=lilypond- was verified as official when first introduced to the cask
url "https://bintray.com/marnen/lilypond-darwin-64/download_file?file_path=lilypond-#{version.before_comma}.build#{version.after_comma}-darwin-64.tar.gz"
appcast 'https://bintray.com/marnen/lilypond-darwin-64/lilypond-2.20.0#release'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could mention the #{version.before_comma} (but make sure to put it in double quotes if you do that).

name 'LilyPond'
homepage 'https://lilypond.org/'

app 'LilyPond.app'

binaries = [
'abc2ly',
'convert-ly',
'etf2ly',
'gs',
'lilymidi',
'lilypond',
'lilypond-book',
'lilypond-invoke-editor',
'lilysong',
'midi2ly',
'musicxml2ly',
]

binaries.each do |shimscript|
binary "#{staged_path}/#{shimscript}.wrapper.sh", target: shimscript
end

preflight do
binaries.each do |shimscript|
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
IO.write "#{staged_path}/#{shimscript}.wrapper.sh", <<~EOS
#!/bin/sh
exec '#{appdir}/LilyPond.app/Contents/Resources/bin/#{shimscript}' "$@"
EOS
end
end

zap trash: [
'~/Library/Preferences/org.lilypond.lilypond.plist',
'~/Library/Preferences/org.lilypond.lilypond.LSSharedFileList.plist',
]
end