mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-07 12:16:14 +00:00
Fix libvips being unconditionally required by tasks (#34620)
This commit is contained in:
parent
3e5d78cc5b
commit
41d00bc28b
|
@ -1,7 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'vips'
|
||||
|
||||
def gen_border(codepoint, color)
|
||||
input = Rails.public_path.join('emoji', "#{codepoint}.svg")
|
||||
dest = Rails.public_path.join('emoji', "#{codepoint}_border.svg")
|
||||
|
@ -191,6 +189,8 @@ namespace :emojis do
|
|||
|
||||
desc 'Generate a spritesheet of emojis'
|
||||
task :generate_emoji_sheet do
|
||||
require 'vips'
|
||||
|
||||
src = Rails.root.join('app', 'javascript', 'mastodon', 'features', 'emoji', 'emoji_data.json')
|
||||
sheet = Oj.load(File.read(src))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user