From 820e58182c50e118ffc07b1d7f32af79e2094c38 Mon Sep 17 00:00:00 2001 From: Arunanshu Dey Date: Fri, 27 Mar 2026 20:29:25 +0530 Subject: [PATCH] fix: duplicate path error problem issue(#610) --- build.scala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.scala b/build.scala index fc9d13c9..3bb99f70 100644 --- a/build.scala +++ b/build.scala @@ -81,6 +81,12 @@ object LaikaBuild { import pink.cozydev.protosearch.ui.SearchUI def input = { + + if (sys.props("os.name").toLowerCase.startsWith("windows")) { + val wellKnownPath = java.nio.file.Paths.get("src/.well-known") + if (java.nio.file.Files.exists(wellKnownPath)) + java.nio.file.Files.setAttribute(wellKnownPath, "dos:hidden", true) + } val securityPolicy = new URI( "https://raw.githubusercontent.com/typelevel/.github/refs/heads/main/SECURITY.md" ).toURL()