mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-08-17 17:22:16 +02:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user