Refactor extension configuration and improve Windows build support

This commit is contained in:
crazywhalecc
2026-04-08 11:08:05 +08:00
parent 921870eaea
commit ee854eed41
12 changed files with 119 additions and 19 deletions

View File

@@ -34,6 +34,7 @@ class ConfigValidator
'build-with-php' => ConfigType::BOOL,
'notes' => ConfigType::BOOL,
'display-name' => ConfigType::STRING,
'os' => ConfigType::LIST_ARRAY,
// library and target fields
'headers' => ConfigType::LIST_ARRAY, // @
@@ -88,6 +89,7 @@ class ConfigValidator
'build-with-php' => false,
'notes' => false,
'display-name' => false,
'os' => false,
];
public const array ARTIFACT_TYPE_FIELDS = [ // [required_fields, optional_fields]