Skip to content

Commit

Permalink
fix downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Richtarik committed Feb 3, 2024
1 parent b86494c commit d01627f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/get-arch.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export default function getArch(arch: string): string {
switch (arch) {
case 'x64':
return '64bit';
return 'amd64';
case 'arm':
return 'ARM';
return 'arm';
case 'arm64':
return 'ARM64';
return 'arm64';
default:
throw new Error(`${arch} is not supported`);
}
Expand Down
6 changes: 3 additions & 3 deletions src/get-os.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export default function getOS(platform: string): string {
switch (platform) {
case 'linux':
return 'Linux';
return 'linux';
case 'darwin':
return 'macOS';
return 'darwin';
case 'win32':
return 'Windows';
return 'windows';
default:
throw new Error(`${platform} is not supported`);
}
Expand Down

0 comments on commit d01627f

Please sign in to comment.