mirror of
https://github.com/abusoww/tuxmate.git
synced 2026-04-22 08:45:12 +02:00
fix: add known AUR packages (google-chrome, etc.) to yay detection
This commit is contained in:
@@ -6,8 +6,14 @@ import { distros, apps, type DistroId } from '@/lib/data';
|
|||||||
// AUR package detection patterns
|
// AUR package detection patterns
|
||||||
export const AUR_PATTERNS = ['-bin', '-git', '-appimage'];
|
export const AUR_PATTERNS = ['-bin', '-git', '-appimage'];
|
||||||
|
|
||||||
|
// Known AUR packages that don't follow the suffix naming convention
|
||||||
|
export const KNOWN_AUR_PACKAGES = new Set([
|
||||||
|
'google-chrome', 'sublime-text-4', 'spotify', 'stremio', 'dropbox',
|
||||||
|
'slack-desktop', 'zoom', 'proton-vpn-gtk-app', 'bitwarden', 'discord'
|
||||||
|
]);
|
||||||
|
|
||||||
export function isAurPackage(packageName: string): boolean {
|
export function isAurPackage(packageName: string): boolean {
|
||||||
return AUR_PATTERNS.some(pattern => packageName.endsWith(pattern));
|
return AUR_PATTERNS.some(pattern => packageName.endsWith(pattern)) || KNOWN_AUR_PACKAGES.has(packageName);
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UseLinuxInitReturn {
|
export interface UseLinuxInitReturn {
|
||||||
|
|||||||
Reference in New Issue
Block a user