Skip to content
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

Linux ARM support #494

Closed
AndrejaN opened this issue Jun 30, 2018 · 11 comments
Closed

Linux ARM support #494

AndrejaN opened this issue Jun 30, 2018 · 11 comments
Labels
feature Priority: 2

Comments

@AndrejaN
Copy link

AndrejaN commented Jun 30, 2018

Hi guys,

this is not an issue, but i don' know where to write on GitHub for such request.
Could you be kind and add linux ARM support for nw-builder package? I'm using this package for my PopcornTime ARM version. After running npm install and downloading the needed node_modules i manually copy these files ARMFiles.zip in nw-builder/lib, which they actually overwrite these files in the lib folder:

detectCurrentPlatform.js
index.js
platforms.js

After this i run: gulp build -p linuxarm
CAUTION: Because i don't know how to detect ARM platform in file detectCurrentPlatform.js i removed linux32 support and instead of that platform a placed linuxarm. In real working file, it should be add probably another line for ARM architecture CPUs.

Because i don't want to mess with your source files in the code without your permissions, could it be possible in the next version of the package to add ARM support?

Thanks in advance

@kessler
Copy link
Contributor

kessler commented Dec 18, 2018

@AndrejaN Could you submit a quick PR (nothing production ready) so I can have a look?

@AndrejaN
Copy link
Author

AndrejaN commented Dec 24, 2018

Hi, sorry for my later answer. Maybe my solution is not the most elegant, but works for my PopcornTime distribution under Rpi3 by following this lines of code:

"After running npm install and downloading the needed node_modules i manually copy these files ARMFiles.zip in the ../node-modules/nw-builder/lib, which they actually overwrite these files in the lib folder:

detectCurrentPlatform.js
index.js
platforms.js

Then i copy in ../cache folder these files from https://github.com/LeonardLaszlo/nw.js-armv7-binaries/releases/download/v0.28.4/nwjs-sdk-v0.28.4-linux-arm-chrome-branding.tar.gz
After this i run: gulp build -p linuxarm" and wolla!! Copy and run in Raspi3 the output of command

Here are the 3 files that i copy in zip archive.>>>> Adding_LinuxARM.zip
I think that in Line88 in Index.js file 'linuxarm' should be added, but it works in my case without.

@kessler
Copy link
Contributor

kessler commented Dec 24, 2018

@AndrejaN thank you very much for your response. However, I can't really work with something that is not a PR. If you want to introduce these changes to nw-builder it has to start with a PR.

@AndrejaN
Copy link
Author

I'm sorry, i'm new on github and i have never made PR, or mess in the repository code.
As i read on Google, i should open a pull request and add the code there, right?
I'll do that.

Sorry for my ignorance.

@kessler
Copy link
Contributor

kessler commented Dec 26, 2018

@AndrejaN nothing to apologize for. It's all good. Take a look at this: https://help.github.com/articles/creating-a-pull-request/

matt-cook added a commit to lookitscook/nw-builder that referenced this issue Oct 31, 2019
@matt-cook
Copy link

I've created a PR for this: #522

Hoping to get to testing it sometime soon. Let me know if you see any issues.

@AndrejaN
Copy link
Author

AndrejaN commented Nov 4, 2019

Hi,

i have just tested by downloading the provided files and putting them into the folder.
It works just fine, the PT is built without a problem for my RaspberryPi3. Thank you very much.
When could i expect to be included in the final version?

Andreja

@ayushmanchhabra
Copy link
Collaborator

@ayushmanchhabra ayushmanchhabra added t-2 and removed p-2 labels Jul 26, 2022
@ayushmanchhabra ayushmanchhabra closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2022
@ayushmanchhabra ayushmanchhabra changed the title Adding linux ARM support to nw-builder package Linux ARM support Oct 18, 2022
@ayushmanchhabra ayushmanchhabra mentioned this issue Nov 20, 2022
Closed
28 tasks
@ayushmanchhabra
Copy link
Collaborator

For Linux arm builds, we would need to create a custom manifest file and use https://github.com/LeonardLaszlo/nw.js-armv7-binaries/releases/ as the downloadUrl

@ayushmanchhabra
Copy link
Collaborator

Closing for now.

@ayushmanchhabra ayushmanchhabra closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2023
@ayushmanchhabra
Copy link
Collaborator

See 9a92688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Priority: 2
Projects
None yet
Development

No branches or pull requests

4 participants