Repository navigation
Add the ability to build arm64 builds - #4198
Conversation
|
💪6️⃣:four: |
|
@jkleinsc thanks for the PR!
We've got #3958 underway which we'll get in and test before this - I gather should we be testing |
|
@iAmWillShepherd you would need a Raspberry PI 3 and it needs to be running a 64 bit OS. Another alternative is a pine64 from https://www.pine64.org/ |
| "deep-equal": "^1.0.1", | ||
| "dexie": "^2.0.0", | ||
| "dugite": "1.58.0", | ||
| "dugite": "1.60.0", |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@iAmWillShepherd if you want compiled binaries, I updated the arm64 ci build to archive the dist directory: https://arm64-ci.electronjs.org/blue/organizations/jenkins/desktop/detail/desktop/20/artifacts |
|
Moving this into 1.2 as it doesn't seem urgent to merge as part of a bugfix release. |
|
@shiftkey so we're not holding off a merge for this feature, what are your thoughts on us adding a feature flag for this instead? that way we can merge (we can even default it to false for dev if we're worried) |
|
@nerdneha I don't believe this needs to be feature flagged, I'm just deferring it to after 1.1.x for focus reasons. Aside from the update to Git (which we should test like usual) the other changes look to be safe to include as-is. |
|
Tested a bunch of the typical Git operations - |
|
Dropping myself from the review process because I've contributed to this PR. |
niik
left a comment
There was a problem hiding this comment.
Hey @jkleinsc, thanks for contributing this!
I have next to no experience with Docker so this is probably a stupid question but does the Dockerfile.arm64v8 file have to live at the root or is that just a convention?
Additionally, could you please add a little blurb about how to build and run the container over at https://github.com/desktop/desktop/blob/master/docs/contributing/setup.md?
| FROM arm64v8/ubuntu:16.04 | ||
|
|
||
| RUN groupadd --gid 114 jenkins \ | ||
| && useradd --uid 110 --gid jenkins --shell /bin/bash --create-home jenkins |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@niik I have usually seen Dockerfiles at the root of a project, but I'm thinking that the Dockerfile doesn't really belong in this PR. It is not needed to build for arm64, it is the Dockerfile I used to test on https://arm64-ci.electronjs.org/blue/organizations/jenkins/desktop. That's why it has a jenkins user in it. I'll remove that file and I'll add a blurb about how to build on arm64. |
|
@niik I removed the file and added the documentation. Let me know if the doc additions make sense. Also, I realized in putting together the docs that the option of building the arm64 build through a cross architecture docker image (eg https://hub.docker.com/r/multiarch/debian-debootstrap/) doesn't work. The build needs arm64 hardware. |
|
@jkleinsc Lovely, thank you so much for going the extra mile and adding that documentation. I'm gonna let this sit for a little bit so that all TZs have a chance to see it before I merge. |
|
🍏 |
This PR adds the ability to build arm64 builds of Desktop.
There are a couple of caveats:
yarnto install dependencies, you need to runscript/install-arm64-deps.shbecause yarn ends up targeting x64 because of this: https://github.com/desktop/desktop/blob/master/app/.npmrc#L4. There are reasons for that, soscript/install-arm64-deps.shworks around it for arm64 builds.To test this PR, I used Electron's arm64 CI here:
https://arm64-ci.electronjs.org/blue/organizations/jenkins/desktop/detail/desktop/17/pipeline