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

Raspberry Pi Support #59

Open
NoozAbooz opened this issue Jan 26, 2021 · 14 comments
Open

Raspberry Pi Support #59

NoozAbooz opened this issue Jan 26, 2021 · 14 comments
Labels
enhancement New feature or request

Comments

@NoozAbooz
Copy link

As you mentioned on the website, you said you'd like Raspberry Pi support. I just used the compiling instructions to run deskreen on my Raspberry Pi, and it ran without a hitch. I was testing on my pi's browser window, but it did properly capture and display my pi's screen. I think if you directly built this for armv7l, then it would work perfectly.
Screenshot_2021-01-26_09-26-08

@NoozAbooz NoozAbooz added the enhancement New feature or request label Jan 26, 2021
@pavlobu
Copy link
Owner

pavlobu commented Jan 26, 2021

This is awesome news! Github workflows, as far as I know, does not support build on arm platforms yet. But we can connect amazon ec2 instance just for that purpose. Do you know if they have a "no charge and free to use" program to do frequent arm builds for open source projects? If so I'll be working on setting up this pipeline in future. Right now you can upload your build to some repo so the others can benefit from your build.

Cheers,
Paul

@pavlobu
Copy link
Owner

pavlobu commented Jan 26, 2021

@NoozAbooz
Copy link
Author

This is awesome news! Github workflows, as far as I know, does not support build on arm platforms yet. But we can connect amazon ec2 instance just for that purpose. Do you know if they have a "no charge and free to use" program to do frequent arm builds for open source projects? If so I'll be working on setting up this pipeline in future. Right now you can upload your build to some repo so the others can benefit from your build.

Cheers,
Paul

So when I ran it directly, it worked. I tried building it but it said "unsupported arch arm"

@pavlobu
Copy link
Owner

pavlobu commented Jan 26, 2021

I just used the compiling instructions to run deskreen on my Raspberry Pi

did you compile it on your RPI or just ran an .Appimage downloaded from releases?

@pavlobu
Copy link
Owner

pavlobu commented Jan 26, 2021

I found that we can actually cross compile electron app for arm on amd platforms! Hope it will work:
https://www.electronjs.org/docs/development/build-instructions-linux#cross-compilation

@NoozAbooz
Copy link
Author

I just used the compiling instructions to run deskreen on my Raspberry Pi

did you compile it on your RPI or just ran an .Appimage downloaded from releases?

Oh sorry, I meant that I ran yarn start, I didn't compile it.

@pavlobu
Copy link
Owner

pavlobu commented Jan 26, 2021

oh I see

I compiled it once on my raspberry pi and I had to specify one flag in electron builder in package.json

Let me find it. With that flag no issue with arm platform will be and it will package it

@pavlobu
Copy link
Owner

pavlobu commented Jan 26, 2021

here:
electron-userland/electron-builder#4279 (comment)

try adding the arm flag to electron-builder command in package.json in this line:

"package": "yarn build && electron-builder build --publish never",

should look like this
"package": "yarn build && electron-builder build --armv7l --publish never",

@pavlobu
Copy link
Owner

pavlobu commented Jan 26, 2021

then run:
yarn package
and it will output compiled binaries to ./release

@NoozAbooz
Copy link
Author

Alright, here's the compiled appimage. Uploaded it to Discord since it was the most convenient 😆.
https://cdn.discordapp.com/attachments/769219853219004456/803673926554484736/Deskreen-1.0.1-armv7l.AppImage.zip

@NoozAbooz
Copy link
Author

Also, I'm a co-dev on pi-apps, a app store for open source raspberry pi apps. Could I add this amazing piece of software to it?

@pavlobu
Copy link
Owner

pavlobu commented Jan 26, 2021

Sure you can add it there! Can you share the instructions on how to upload binaries and updates of binaries there? I'll later include this upload to release.yml github workflow so it will be pushed there automatically

@cycool29
Copy link

Sure you can add it there! Can you share the instructions on how to upload binaries and updates of binaries there? I'll later include this upload to release.yml github workflow so it will be pushed there automatically

I think you won't need to set up workflow to do so. Just push out releases and pi-apps dev will update the link in the scripts. 😁

@EDIflyer
Copy link

Amazing app @pavlobu - thanks so much for developing it! Also great to have this in pi-apps (@NoozSBC 😀). I see it's still v1.0.1, any chance of updating to 2.0.3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants