mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-20 05:07:52 +00:00
13 lines
316 B
Ruby
13 lines
316 B
Ruby
|
require 'rake/clean'
|
||
|
require 'rubygems/package'
|
||
|
|
||
|
desc 'Build gem'
|
||
|
task :package do
|
||
|
spec_source = File.read File.join(File.dirname(__FILE__),'whispercpp.gemspec')
|
||
|
spec = nil
|
||
|
# see: http://gist.github.com/16215
|
||
|
Thread.new { spec = eval("#{spec_source}") }.join
|
||
|
spec.validate
|
||
|
Gem::Package.build(spec)
|
||
|
end
|