diff --git a/lib/Exd/FileFormat/Fontconfig.pm b/lib/Exd/FileFormat/Fontconfig.pm new file mode 100644 index 0000000..22adacb --- /dev/null +++ b/lib/Exd/FileFormat/Fontconfig.pm @@ -0,0 +1,20 @@ +package Exd::FileFormat::Fontconfig; + +use v5.40.0; + +use strict; +use warnings; + +use Moo; +use Path::Tiny; + +has exd => (is => 'ro', required => 1, weak_ref => 1); + +sub migration1($self) { + my $exd = $self->exd; + my $app_font_dir = path(__FILE__)->parent->parent->parent->parent->child('fonts/dir'); + my $exd_font_dir = $self->exd->dir->child('fonts/dir'); + $exd_font_dir->mkpath; + system 'cp', '-r', $app_font_dir, $exd_font_dir; +} +1;