Skip to content

Commit 820e581

Browse files
committed
fix: duplicate path error problem issue(#610)
1 parent 8b99777 commit 820e581

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

build.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ object LaikaBuild {
8181
import pink.cozydev.protosearch.ui.SearchUI
8282

8383
def input = {
84+
85+
if (sys.props("os.name").toLowerCase.startsWith("windows")) {
86+
val wellKnownPath = java.nio.file.Paths.get("src/.well-known")
87+
if (java.nio.file.Files.exists(wellKnownPath))
88+
java.nio.file.Files.setAttribute(wellKnownPath, "dos:hidden", true)
89+
}
8490
val securityPolicy = new URI(
8591
"https://raw.githubusercontent.com/typelevel/.github/refs/heads/main/SECURITY.md"
8692
).toURL()

0 commit comments

Comments
 (0)