From 3413ef2c2c51e4080178d2ce988446df7e6d0e94 Mon Sep 17 00:00:00 2001 From: emanueljacob Date: Thu, 4 Jan 2024 11:23:52 +0100 Subject: [PATCH] Fix error cause by missing target dir when copying custom icons --- src/Commands/Build.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Commands/Build.php b/src/Commands/Build.php index 511cfa61d..3d4107364 100644 --- a/src/Commands/Build.php +++ b/src/Commands/Build.php @@ -237,6 +237,10 @@ private function copyIcons(): void $targetDirectory = base_path('vendor/area17/twill/frontend/icons-custom'); $originalIcons = config('twill.block_editor.core_icons'); + if (!file_exists($targetDirectory)) { + mkdir($targetDirectory); + } + foreach (config('twill.block_editor.directories.source.icons') as $iconDirectory) { // We do not want to process original icons. if ($iconDirectory !== $originalIcons) {