From 5d4b3f715e22f91f2dadbe097567d146c3a40d15 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Fri, 28 Feb 2025 19:14:58 +0100 Subject: [PATCH] Remove global files from additional output list --- CHDataManagement/Model/Content+Generation.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHDataManagement/Model/Content+Generation.swift b/CHDataManagement/Model/Content+Generation.swift index a10a168..b98b608 100644 --- a/CHDataManagement/Model/Content+Generation.swift +++ b/CHDataManagement/Model/Content+Generation.swift @@ -8,6 +8,7 @@ extension Content { self.storage.writeNotification = { [weak self] in self?.results.created(outputFile: $0) } + self.addGloballyRequiredFiles() self.generatePagesInternal() self.generatePostFeedPagesInternal() self.generateTagPagesInternal() @@ -51,6 +52,10 @@ extension Content { } } + private func addGloballyRequiredFiles() { + results.general.require(files: settings.general.requiredFiles) + } + private func copyRequiredFiles() { let count = results.requiredFiles.count var completed = 0