Skip to content

Commit

Permalink
Install fonts on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed May 16, 2024
1 parent 193e182 commit 929829c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions lib/tasks/brew.rake
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ namespace :brew do
homebrew/cask-fonts
]).freeze if macos?

wanted_taps = (wanted_taps + %w[homebrew/linux-fonts]).freeze if linux?

taps = wanted_taps - capture('brew', 'tap').strip.split("\n")

if taps.empty?
Expand All @@ -147,6 +149,11 @@ namespace :brew do
end
end

wanted_fonts = {
'font-meslo-lg-nerd-font' => {},
'font-sauce-code-pro-nerd-font' => {},
}.freeze

wanted_formulae = {
'ansible' => {},
'asimov' => {},
Expand Down Expand Up @@ -208,9 +215,11 @@ namespace :brew do
'terminal-notifier' => {},
}).freeze if macos?

wanted_formulae = wanted_formulae.merge(wanted_fonts).freeze if linux?

converters_dir = Pathname('/Applications/Converters.localized')

wanted_casks = {
wanted_casks = ({
'a-better-finder-rename' => {},
'aerial' => {},
'araxis-merge' => {},
Expand All @@ -227,8 +236,6 @@ namespace :brew do
'firefox' => {},
'fluor' => {},
'fork' => {},
'font-meslo-lg-nerd-font' => {},
'font-sauce-code-pro-nerd-font' => {},
'gcc-arm-embedded' => {},
'handbrake' => { flags: ["--appdir=#{converters_dir}"] },
'hazel' => {},
Expand Down Expand Up @@ -295,7 +302,7 @@ namespace :brew do
'xld' => { flags: ["--appdir=#{converters_dir}"] },
'xnconvert' => { flags: ["--appdir=#{converters_dir}"] },
'xquartz' => {},
}.freeze
} + wanted_fonts).freeze

desc 'Install Casks and Formulae'
task :casks_and_formulae => [:'brew:taps'] do
Expand Down

0 comments on commit 929829c

Please sign in to comment.