ruby : specify Apple frameworks explicitly on build (#3270)

* Add Apple frameworks to $LDFLAGS when needed

* Add utility method to Options

* Remove unnecessary propaty date from gemspec

* Add Apple frameworks for CoreML build

* Add Accelerate framework only for Apple platform

* Fix ZipURI#cache signature

* Download test fixtures if needed
This commit is contained in:
KITAITI Makoto
2025-06-23 13:34:05 +09:00
committed by GitHub
parent e6c10cf3d5
commit cead8f5357
7 changed files with 49 additions and 13 deletions

View File

@ -132,13 +132,13 @@ module Whisper
class ZipURI < URI
def cache
zip_path = Pathname(super)
zip_path = super
dest = unzipped_path
return if dest.exist? && dest.mtime >= zip_path.mtime
escaping dest do
system "unzip", "-q", "-d", zip_path.dirname.to_path, zip_path.to_path, exception: true
end
zip_path.to_path
zip_path
end
def clear_cache