Skip to content

Commit

Permalink
feat(release): support building from release git tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jimeh committed Aug 11, 2020
1 parent 66acc01 commit c0e89b1
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions build-emacs-for-macos
Original file line number Diff line number Diff line change
Expand Up @@ -236,24 +236,35 @@ class Build
system(*args)
end

def patch_version
@patch_version ||= begin
case ref
when /^emacs-27.*/
'emacs-27'
when /^emacs-28.*/, 'master'
'emacs-28'
end
end
end

def patches(opts = {})
p = []

if %w[emacs-27 emacs-28].include?(ref)
if patch_version
if opts[:xwidgets]
p << {
url: 'https://github.com/d12frosted/homebrew-emacs-plus/raw/master/' \
"patches/#{ref}/xwidgets_webkit_in_cocoa.patch"
"patches/#{patch_version}/xwidgets_webkit_in_cocoa.patch"
}
end

p << {
url: 'https://github.com/d12frosted/homebrew-emacs-plus/raw/master/' \
"patches/#{ref}/fix-window-role.patch"
"patches/#{patch_version}/fix-window-role.patch"
}
p << {
url: 'https://github.com/d12frosted/homebrew-emacs-plus/raw/master/' \
"patches/#{ref}/system-appearance.patch"
"patches/#{patch_version}/system-appearance.patch"
}
end

Expand Down

0 comments on commit c0e89b1

Please sign in to comment.