-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Feature request) I want a version for mac m1 chip #3302
Comments
Unlikely to happen soon, if ever. If I understand correctly, Apple tightened the screws and M1 apps require notarization (besides also needing to be built on M1). From my experience, the Intel build works decently well through Rosetta. |
Thanks for you attention , i hava a core dump case. either caused by m1 or not . |
@supermanmsc Trilium works mine for me on my M1 mac (2020 version) - Did you try running it with and without rosetta? |
Could you please elaborate on what you mean by tightened screws and required notarization. There are galore open source projects and commercial programs available for Apple Silicon by now. As I understand this is an electron app. This should be a big problem to get this working on an M1/M2. I uninstalled every non native app by now ... some things are missing but (at least for me) its way less then 5% of apps that are not available in a native Version. Kodi being one of them and they plan to support M1 in the next version. Technically this project should be portable way easier. |
It's been a while since I researched that, but IIRC:
IIRC this was complicated by the fact that the Apple policy kind of legally prevents renting Macs for CI (or something like that). I don't doubt that many FOSS projects manage to do that, perhaps they have more manpower or perhaps bigger focus on Mac platform. But Trilium is essentially a one-man show and the overhead of running the builds separately on MacOS isn't very attractive for me, especially given that the rosetta emulation of the x86 build works pretty well. Of course, if somebody is willing to do this (i.e. do the release builds and notarization), then that would be awesome! |
I think the apple certificate is only need if you want to distribute the app via the app store. It's not the case for simple downloads from a webpage or installations via brew. There are big and small open source projects without certificates. I could list you some or you could have a look at the list of brew apps. Obviously there is this button in system settings where you have to agree to run the app even though it's not certified. I even disabled that hate keeper completely because I know that I'm doing and it's annoying otherwise to confirm every second app. |
I would like to give it a try to build the binaries. @zadam do you have some build instructions or can give me some here ? I'll just give it a shot in the meantime:
a bunch of deprecation warnings came up right aways for a start especially:
Just noting... let's see how far I'll get |
You can use |
I think I need a little bit more then that
... how about if you add a BuildFromSource.md to the sources ? |
It does the whole build process all the way until creating the final ZIP file.
There is a guide for "server installation" for Debian based systems - https://github.com/zadam/trilium/wiki/Manual-server-installation But in general I don't really plan to support that. Building from source differs between OSs (including different linux distros), system dependencies changing between OS versions etc. It's a nightmare to maintain. |
To build on Mac M1 you need
in my case I also used nvm to use node 16.18, so I removed all "n exec 16.18.0" calls from copy-trilium.sh and just replaced them with plain npm calls, as my environment was already using 16.18.0 via nvm. so yeah its doable EDIT: btw, here is a patch
|
I'm able to build for arm64 (M1 chip) with this script:
You will get the build from this dist folder inside the dist folder: ./dist/trilium-mac-arm64-src/dist/mac-arm64/Trilium Notes.app |
another try
asset desktop.js 652 KiB [compared for emit] [minimized] (name: desktop) 2 related assets WARNING in ./src/public/app/services/utils.js 295:15-34 1 warning has detailed information that is not shown. webpack 5.93.0 compiled with 1 warning in 2263 ms |
Node version is latest rali@Raynors-MacBook-Pro trilium % node -v |
@leesandao and @jinxiaoman |
Describe feature
(Feature request) I want a version for mac m1 chip
Additional Information
(Feature request) I want a version for mac m1 chip
The text was updated successfully, but these errors were encountered: