fix-macho fix (#13)

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Max Howell 2022-10-31 08:07:18 -04:00 committed by GitHub
parent 7f339fea48
commit dfb097f9d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
distributable:
url: https://mirrors.edge.kernel.org/pub/software/scm/git/git-{{ version }}.tar.xz
url: https://mirrors.edge.kernel.org/pub/software/scm/git/git-{{version}}.tar.xz
strip-components: 1
versions:

View file

@ -144,7 +144,7 @@ class Fixer
def fix_tea_prefix s
s = Pathname.new(s).relative_path_from(Pathname.new($tea_prefix))
s = s.sub(%r{/v(\d+)\.\d+\.\d+/}, '/v\1/')
s = s.sub(%r{/(.+)\.(\d+)\.\d+\.\d+\.dylib$}, '/\1.dylib')
s = s.sub(%r{/(\.\d+)+\.dylib$}, '/.dylib')
s = "@rpath/#{s}"
return s
end