Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix getBit returning Intel for Linux and Raspberry Pi packages
  • Loading branch information
ogoregen authored Jun 24, 2026
commit f6676855ca3b0d59a09652c405536e6e1da3da7d
13 changes: 9 additions & 4 deletions src/hooks/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ const getOS = (name) => {
};

const getBit = (name) => {
if (name.includes('x64')) return 'Intel';
if (name.includes('.deb')) return 'Debian Package (.deb)';
else if (name.includes('.flatpak')) return 'Flatpak';
else if (name.includes('.snap')) return 'Snap';
else if (name.includes('.msi')) return '64-bit';
else if (name.includes('macos-aarch64')) return 'Apple Silicon';
else if (name.includes('macos-x64')) return 'Intel';
else if (name.includes('windows64')) return '64-bit';
else if (name.includes('windows32')) return '32-bit';
else if (name.includes('macos-aarch64')) return 'Apple Silicon';
else if (name.includes('linux-arm32')) return '32-bit';
else if (name.includes('linux-arm64')) return '64-bit';
else if (name.includes('linux-arm32')) return '32-bit';
else if (name.includes('linux-aarch64')) return 'Arm';
else if (name.includes('x64')) return '64-bit';
else return null;
};

Expand Down Expand Up @@ -118,7 +123,7 @@ export const usePreparedReleases = (releases) => {
};

/**
Hook to detect the OS where the site is mounted.
Hook to detect the OS where the site is mounted.
Will default to Windows if fails to detect other.
**/
export const useMachineOS = (releases) => {
Expand Down