diff --git a/generated/packages/ali.yaml b/generated/packages/ali.yaml index 7f3b4e4..a0d13a3 100644 --- a/generated/packages/ali.yaml +++ b/generated/packages/ali.yaml @@ -13,6 +13,9 @@ targets: - LinuxArm64: artifact_templates: - "ali_{version}_linux_arm64.tar.gz" + - LinuxArm32: + artifact_templates: + - "ali_{version}_linux_armv7.tar.gz" - MacOS: artifact_templates: - "ali_{version}_darwin_amd64.tar.gz" diff --git a/src/app/src/service/cache.rs b/src/app/src/service/cache.rs index 3fd719f..181f3bc 100644 --- a/src/app/src/service/cache.rs +++ b/src/app/src/service/cache.rs @@ -116,8 +116,8 @@ impl CacheTrait for CacheService { let regex = Regex::new(pattern)?; self.get_package_indexes()? - .iter() - .filter_map(|it| { + .par_iter() + .filter_map(|it: &PackageIndex| { if regex.is_match(&it.name) { if let Ok(p) = self.get_package(&it.name) { Some(p) diff --git a/src/generator/src/pkg/ali.rs b/src/generator/src/pkg/ali.rs index 1a67c4e..fb1bdb0 100644 --- a/src/generator/src/pkg/ali.rs +++ b/src/generator/src/pkg/ali.rs @@ -30,6 +30,16 @@ pub fn release() -> Package { tag_version_regex_template: None, scan_dirs: None, }), + PackageTargetType::LinuxArm32(PackageManagement { + artifact_templates: vec!["ali_{version}_linux_armv7.tar.gz".to_string()], + executable_templates: None, + executable_mappings: None, + install_commands: None, + uninstall_commands: None, + upgrade_commands: None, + tag_version_regex_template: None, + scan_dirs: None, + }), PackageTargetType::MacOS(PackageManagement { artifact_templates: vec!["ali_{version}_darwin_amd64.tar.gz".to_string()], executable_templates: None,