Content-Length: 338967 | pFad | https://github.com/processing/processing-website/commit/f6676855ca3b0d59a09652c405536e6e1da3da7d

ad Fix getBit returning Intel for Linux and Raspberry Pi packages · processing/processing-website@f667685 · GitHub
Skip to content

Commit f667685

Browse files
authored
Fix getBit returning Intel for Linux and Raspberry Pi packages
1 parent bae1716 commit f667685

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/hooks/download.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ const getOS = (name) => {
1111
};
1212

1313
const getBit = (name) => {
14-
if (name.includes('x64')) return 'Intel';
14+
if (name.includes('.deb')) return 'Debian Package (.deb)';
15+
else if (name.includes('.flatpak')) return 'Flatpak';
16+
else if (name.includes('.snap')) return 'Snap';
17+
else if (name.includes('.msi')) return '64-bit';
18+
else if (name.includes('macos-aarch64')) return 'Apple Silicon';
19+
else if (name.includes('macos-x64')) return 'Intel';
1520
else if (name.includes('windows64')) return '64-bit';
1621
else if (name.includes('windows32')) return '32-bit';
17-
else if (name.includes('macos-aarch64')) return 'Apple Silicon';
18-
else if (name.includes('linux-arm32')) return '32-bit';
1922
else if (name.includes('linux-arm64')) return '64-bit';
23+
else if (name.includes('linux-arm32')) return '32-bit';
2024
else if (name.includes('linux-aarch64')) return 'Arm';
25+
else if (name.includes('x64')) return '64-bit';
2126
else return null;
2227
};
2328

@@ -118,7 +123,7 @@ export const usePreparedReleases = (releases) => {
118123
};
119124

120125
/**
121-
Hook to detect the OS where the site is mounted.
126+
Hook to detect the OS where the site is mounted.
122127
Will default to Windows if fails to detect other.
123128
**/
124129
export const useMachineOS = (releases) => {

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/processing/processing-website/commit/f6676855ca3b0d59a09652c405536e6e1da3da7d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy