Skip to content

Add arm build - #2094

Merged
zcbenz merged 23 commits into
masterfrom
arm
Jul 2, 2015
Merged

zcbenz merged 23 commits into
masterfrom
arm

Conversation

@zcbenz

@zcbenz zcbenz commented Jul 1, 2015

Copy link
Copy Markdown
Contributor

This PR adds support for cross compiling for arm target.

Closes #366.

@zcbenz

zcbenz commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

Currently it is blocked by the lack of libnotify development headers in the sysroot image provided by Chromium, so we have two options here: 1) provide our own sysroot image or 2) disable libnotify support in arm build. I'll try the first way first.

@zcbenz

zcbenz commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

Another thing is there are actually two versions of arm target here, one is armel(version 6), the other is armhf(version 7), I will only provide armhf build since it is powerful enough to run electron and it is widely used.

@luan007

luan007 commented Jul 1, 2015

Copy link
Copy Markdown

this looks great 👍 , do we need to compile libchromiumcontent manually or it's just fully automatic?

@zcbenz

zcbenz commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

@luan007 It is fully automatic like the other targets.

@luan007

luan007 commented Jul 1, 2015

Copy link
Copy Markdown

@zcbenz Thank you! Our Build is stuck at an unauthorized message during init_download from amazons3(contentlib), maybe it will work after the merge?

@zcbenz
zcbenz force-pushed the arm branch 2 times, most recently from b6aa7c2 to cf5ae57 Compare July 2, 2015 01:26
@zcbenz
zcbenz force-pushed the arm branch 10 times, most recently from 73dc2da to 94a6cdc Compare July 2, 2015 02:41
@zcbenz

zcbenz commented Jul 2, 2015

Copy link
Copy Markdown
Contributor Author

@luan007 This branch is still WIP, you should wait until it gets merged.

@zcbenz

zcbenz commented Jul 2, 2015

Copy link
Copy Markdown
Contributor Author

We now can successfully create distribution for arm target, and have both ia32 and arm targets building on travis ci.

zcbenz added a commit that referenced this pull request Jul 2, 2015
@zcbenz
zcbenz merged commit 5ccc909 into master Jul 2, 2015
@zcbenz
zcbenz deleted the arm branch July 2, 2015 08:04
@luan007

luan007 commented Jul 2, 2015

Copy link
Copy Markdown

amazing!

@jlord

jlord commented Jul 3, 2015

Copy link
Copy Markdown
Contributor

✨ ✨ ✨ ✨ ✨ So great!

I should have read this thread earlier, before trying to get Atom going with it myself—this means the next release will include the ARM builds so when building Atom it will find the right Electron?

@miladsajjadi

Copy link
Copy Markdown

I am beginner in electron packager. i want to build my project for target arch arm v7. what should i do?
running this:

electron-packager . MYPROJECT --platform=linux --arch=armhf --overwrite --prune
will cause in:
Unsupported arch armhf; must be one of: ia32, x64

my host machine is windows. does electron packager add support for arm build?

@jujubetz

Copy link
Copy Markdown

Same as miladsajjadi here

@jlord

jlord commented Jun 27, 2016

Copy link
Copy Markdown
Contributor

@miladsajjadi @jujubetz The current version of ARM that Electron uses is armv7. There is an open issue to name it more precisely #2343.

@jujubetz

Copy link
Copy Markdown

Thanks @jlord. 👍

@Gitelaus

Copy link
Copy Markdown

Sorry to resurrect such an old pull request, but I noticed @jujubetz and @miladsajjadi are (or were) on the same path I'm currently heading down, using electron-packager to compile for Raspberry Pi - I interpreted @jlord's answer as changing the arch=armv7 - but this is definitely not the case. Pinging people here to hopefully find some definitive answers to my scenario.

@jujubetz

Copy link
Copy Markdown

Hey @nathanjdawson I think there is no "easy" way to "pack" a electron app to raspberry pi now... I'm now doing this: clone my electron app from git, using npm install (it download the electron arm release automatically (https://github.com/electron/electron/releases)) and then i did a script that start my app by running:

/home/pi/myapp/node_modules/electron-prebuilt/dist/electron /home/pi/myapp .

It is not the best solution but it's working now.

@Gitelaus

Copy link
Copy Markdown

@jujubetz thanks so much for the reply! From what I could find an ARM addition to electron-packager is not fair off, considering the github issues thread it's only waiting on a naming convention change. Hope your project is going well, again thank you for the answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants