Git Product home page Git Product logo

Comments (20)

Anemy avatar Anemy commented on August 19, 2024 9

Just a heads up - we've got a ticket in our jira to track/triage this - https://jira.mongodb.org/browse/COMPASS-5574 - hopefully we can get it to y'all soon! We'll post back here as well when there's an update. Thanks for opening the issue

from compass.

gribnoysup avatar gribnoysup commented on August 19, 2024 9

arm64 build for macOS is now available in the download center for the latest beta (1.33.0-beta.2) and will be available in the next stable release so I'm closing the issue. If something in the beta doesn't work for you, please feel free to open a new issue with a specific issue details

from compass.

ngohungphuc avatar ngohungphuc commented on August 19, 2024 7

I'm still waiting for m1 version :(

from compass.

RodrigoRosmaninho avatar RodrigoRosmaninho commented on August 19, 2024 5

I've taken the current master branch (as of this reply) and compiled it on an Apple Silicon machine.
Everything seems perfectly functional, and Activity Manager now shows "Kind: Apple" for all the MongoDB Compass processes 🙂

You can get the dmg file I generated on this link and try it for yourself while you wait for an official release: https://drive.google.com/file/d/1Gzx1YXxv2ZimEZ6wFUEx94h4HGYNJkaw/view?usp=sharing

After dragging the app to the Applications folder you'll need to run this:
xattr -d com.apple.quarantine /Applications/MongoDB\ Compass\ Dev.app

Because Apple places App files downloaded from the internet (from unknown developers/sources) in quarantine and reports them as "damaged" to the user.

from compass.

LinusU avatar LinusU commented on August 19, 2024 2

Electron is currently fixed at version 6.1.7, we need to get to at least 11.0.0 for arm64 support.

"electron": "6.1.7",

Trying to upgrade it I ran into issues with it being stuck at 6.x in hadron-build: mongodb-js/hadron-build#430

from compass.

AbdullahDiaa avatar AbdullahDiaa commented on August 19, 2024 2

Yep, it seems there's only darwin-x64 packages attached to the release.
the application uses rosetta 2 translation layer on M1 macs.
Screen Shot 2022-03-04 at 12 06 50 AM

from compass.

petrhaus avatar petrhaus commented on August 19, 2024 2

I've taken the current master branch (as of this reply) and compiled it on an Apple Silicon machine.
Everything seems perfectly functional, and Activity Manager now shows "Kind: Apple" for all the MongoDB Compass processes 🙂

The performance boost is incredible. Can't wait for the official version.

from compass.

neumann-nico avatar neumann-nico commented on August 19, 2024 2

@RodrigoRosmaninho
Things are getting serious: #3269

from compass.

LinusU avatar LinusU commented on August 19, 2024 1

@Anemy I believe that this issue is asking for native M1 support, it seems like darwin-x64 packages attached to the linked release?

If you're on a recent version of Electron, it should be easy to do that as well. I'm not familiar with the Hadron build tools, but in e.g. electron-packages and Electron Forge you can pass in --arch=arm64 when you build.

from compass.

RodrigoRosmaninho avatar RodrigoRosmaninho commented on August 19, 2024 1

@RodrigoRosmaninho Thank you very much! Which steps did you do to compile it?

@neumann-nico here are the steps I went through:

  1. Clone the repo
  2. Bump node version to one that supports Apple Silicon in package.json, package-lock.json and packages/compass/package.json (I used 16.16.0)
  3. Bump electron-packager to version 15.5.1 in packages/hadron-build/package.json
  4. Find and replace all instances of darwin-x64 to darwin-arm64 in packages/hadron-build/lib/target.js and packages/hadron-build/commands/release.js
  5. Run npm install in the packages/compass directory to download all dependencies
  6. Run npm install -g typescript
  7. Run tsc inside the configs/webpack-config-compass directory (If the typescript isn't compiled, compass won't be able to import this module)
  8. Run npm start in the packages/compass directory to confirm that MongoDB Compass builds and starts successfully
  9. Run npm run package-compass in the packages/compass directory to create the .App file. In my case this command threw an error at the end, but the .App file had already been successfully created in packages/compass/dist.

from compass.

neumann-nico avatar neumann-nico commented on August 19, 2024 1

@RodrigoRosmaninho Thank you very much! Which steps did you do to compile it?

@neumann-nico here are the steps I went through:

1. Clone the repo

2. Bump node version to one that supports Apple Silicon in package.json, package-lock.json and packages/compass/package.json (I used 16.16.0)

3. Bump electron-packager to version 15.5.1 in packages/hadron-build/package.json

4. Find and replace all instances of `darwin-x64` to `darwin-arm64` in packages/hadron-build/lib/target.js and packages/hadron-build/commands/release.js

5. Run `npm install` in the packages/compass directory to download all dependencies

6. Run `npm install -g typescript`

7. Run `tsc` inside the configs/webpack-config-compass directory (If the typescript isn't compiled, compass won't be able to import this module)

8. Run `npm start` in the packages/compass directory to confirm that MongoDB Compass builds and starts successfully

9. Run `npm run package-compass` in the packages/compass directory to create the .App file. In my case this command threw an error at the end, but the .App file had already been successfully created in packages/compass/dist.

Thanks it worked! You should create a pull request :)
Even though there is an error at the end, I think not a lot is missing to be fully working.

Edit: I could get rid of the error: Error: Command failed: bless --folder /Volumes/MongoDB Compass Dev --openfolder /Volumes/MongoDB Compass Dev bless: The 'openfolder' is not supported on Apple Silicon devices

Updating appdmg from 0.6.0 to 0.6.4 helped. Now it also generated the .dmg file :)

from compass.

jgoldverg avatar jgoldverg commented on August 19, 2024

Was just looking into the current electron version, seems they are v12.0.5. Any chance that you could try again @LinusU?

from compass.

Anemy avatar Anemy commented on August 19, 2024

@ngohungphuc @jgoldverg Can you confirm if the newest beta (1.31.0-beta.11 at the time of writing): https://github.com/mongodb-js/compass/releases fixes this issue? We've upgraded electron versions which should address the issue. We're in the process of further upgrading the version as well.

from compass.

petrhaus avatar petrhaus commented on August 19, 2024

2 months later, and with the jira ticket still unassigned, I'd like to ask if "soon" is really going to happen any soon :-)

from compass.

dungmv avatar dungmv commented on August 19, 2024

2 years

from compass.

lockieluke avatar lockieluke commented on August 19, 2024

as far as i know compass is already on electron v13 theres no way they cant support apple silicon

from compass.

neumann-nico avatar neumann-nico commented on August 19, 2024

@Anemy Is there any news for the native m1 version?
Looking forward to the update and thanks to the team for taking the time :)

from compass.

neumann-nico avatar neumann-nico commented on August 19, 2024

@RodrigoRosmaninho Thank you very much! Which steps did you do to compile it?

from compass.

dungmv avatar dungmv commented on August 19, 2024

I've taken the current master branch (as of this reply) and compiled it on an Apple Silicon machine. Everything seems perfectly functional, and Activity Manager now shows "Kind: Apple" for all the MongoDB Compass processes 🙂

You can get the dmg file I generated on this link and try it for yourself while you wait for an official release: https://drive.google.com/file/d/1Gzx1YXxv2ZimEZ6wFUEx94h4HGYNJkaw/view?usp=sharing

After dragging the app to the Applications folder you'll need to run this: xattr -d com.apple.quarantine /Applications/MongoDB\ Compass\ Dev.app

Because Apple places App files downloaded from the internet (from unknown developers/sources) in quarantine and reports them as "damaged" to the user.

You are my hero :D

from compass.

RodrigoRosmaninho avatar RodrigoRosmaninho commented on August 19, 2024

Thanks for the update 👍

from compass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.