Skip to content

Commit

Permalink
feat: support MacOS with M2 chip (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcorpet authored and liuweiGL committed May 4, 2023
1 parent 95b05fb commit aebfd07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/mkcert/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export abstract class BaseSource {
? 'linux-arm'
: 'linux-amd64'
case 'darwin':
return 'darwin-amd64'
return process.arch === 'arm64' ? 'darwin-arm64' : 'darwin-amd64'
default:
throw new Error('Unsupported platform')
}
Expand Down

0 comments on commit aebfd07

Please # to comment.