Skip to content

Commit

Permalink
Merge pull request #263 from jmontroy90/support-arm64-arch
Browse files Browse the repository at this point in the history
Support arm64 arch
  • Loading branch information
crazy-max committed Oct 20, 2022
2 parents 81e612a + bb21a4c commit 2c19511
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function getMage(version: string): Promise<string> {

const getFilename = (semver: string): string => {
const platform: string = osPlat == 'win32' ? 'Windows' : osPlat == 'darwin' ? 'macOS' : 'Linux';
const arch: string = osArch == 'x64' ? '64bit' : '32bit';
const arch: string = osArch == 'x64' ? '64bit' : osArch == 'arm64' ? 'ARM64' : '32bit';
const ext: string = osPlat == 'win32' ? 'zip' : 'tar.gz';
return util.format('mage_%s_%s-%s.%s', semver, platform, arch, ext);
};

0 comments on commit 2c19511

Please sign in to comment.