fix(native): allow ASSETS.md in macOS (#1745)

StencilCraft's nightly packages ship ASSETS.md beside their other notices,
so the layout check refused the whole archive.
This commit is contained in:
DreamCatchedStudios authored and GitHub committed 2026-11-30 20:07:03 -05:00
1 parent 10608981e8
commit 9db8f27602
1 file changed
+1 -1
+1 -1
View File
@@ -191,7 +191,7 @@ pub(crate) fn validate_namespaces(adapter: Adapter, paths: &Paths) -> Result<(),
}
fn notice(text: &str) -> bool {
["README.md", "LICENSE", "LICENSE-MIT", "LICENSE-APACHE", "COPYRIGHT", "NOTICE", "ATTRIBUTION.md"].contains(&text)
["README.md", "LICENSE", "LICENSE-MIT", "LICENSE-APACHE", "COPYRIGHT", "NOTICE", "ATTRIBUTION.md", "ASSETS.md"].contains(&text)
|| (text.starts_with("OFL-") && text.ends_with(".txt") && !text.contains('/') && text.len() > "OFL-.txt".len())
}