Skip to content

Mac M1 Chip Support #78

@Dreamer-Paul

Description

@Dreamer-Paul

Bug description
Does not support M1 Chip's mac.

To Reproduce
Steps to reproduce the behavior:

  1. Install package
  2. Using this package in M1 Mac

Expected behavior
Supports M1 Chip's Mac.

System information (please complete the following information):

  • OS: MacOS Ventura 13.0
  • App version 4.7.1

Additional context
Similar questions: #37

I checked the code about this question, There seems to be no support.

case "darwin":
  return "mkcert-" + MKCERT_VERSION + "-darwin-amd64"
case "linux":
  if (process.arch === "arm" || process.arch === "arm64")
    return "mkcert-" + MKCERT_VERSION + "-linux-arm"
  else return "mkcert-" + MKCERT_VERSION + "-linux-amd64"

Here is my code in project.

import httpsLocalhost from 'https-localhost';

const httpServer = httpsLocalhost();
certs = await httpServer.getCerts();

That's my log about process.arch and process.platform:

console.log(process.arch, process.platform);
<- arm64 darwin

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleNo recent activity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions