Files
oh-my-pi/packages/natives/src/embedded-addon.ts
T
can1357 a4f845a465 feat: added CPU variant support for x64 native addons with AVX2/baseline fallback
- Added CPU variant support for x64 native addons with modern (AVX2/x86-64-v3) and baseline (x86-64-v2) variants, enabling automatic fallback when modern variants are unavailable.
- Added automatic AVX2 CPU detection on Linux, macOS, and Windows platforms to select appropriate native addon variant at runtime.
- Updated native addon filename scheme to include CPU variant suffix (e.g., pi_natives.linux-x64-modern.node) for x64 platforms.
- Updated CLI update mechanism to support downloading and installing multiple native addon variants per platform with fallback support.
- Removed fallback untagged pi_natives.node binary creation; platform and variant-tagged binaries are now required.
2026-02-16 18:33:03 +01:00

16 lines
343 B
TypeScript

export type EmbeddedAddonVariant = "modern" | "baseline" | "default";
export interface EmbeddedAddonFile {
variant: EmbeddedAddonVariant;
filename: string;
filePath: string;
}
export interface EmbeddedAddon {
platformTag: string;
version: string;
files: EmbeddedAddonFile[];
}
export const embeddedAddon: EmbeddedAddon | null = null;