mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-12-02 20:22:35 -05:00
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:
1 parent
10608981e8
commit
9db8f27602
1 file changed
+1
-1
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user