mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 06:06:40 +00:00
fix(patches): Only apply patches as part of archive extraction
This commit is contained in:
@@ -29,7 +29,6 @@ class Build
|
||||
|
||||
tarball = download_tarball(meta[:sha])
|
||||
source = extract_tarball(tarball, patches(options))
|
||||
patches(options).each { |patch| apply_patch(patch, source) }
|
||||
app = compile_source(source)
|
||||
|
||||
LibEmbedder.new(app, brew_dir, os.version, extra_libs).embed
|
||||
@@ -98,6 +97,8 @@ class Build
|
||||
result = run_cmd('tar', '-xzf', filename, '-C', source_dir)
|
||||
raise 'ERROR: Tarball extraction failed.' unless result
|
||||
|
||||
patches.each { |patch| apply_patch(patch, target) }
|
||||
|
||||
target
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user