AgregoreWeb / agregore-browser

A minimal browser for the distributed web (Desktop version)
https://www.youtube.com/watch?v=TnYKvOQB0ts&list=PL7sG5SCUNyeYx8wnfMOUpsh7rM_g0w_cu&index=14
GNU Affero General Public License v3.0
737 stars 66 forks source link

Pinephone Support #103

Open RangerMauve opened 3 years ago

RangerMauve commented 3 years ago

This is a tracking issue for getting Agregore to work properly on the Pinephone.

https://twitter.com/RangerMauve/status/1390099799320506369

Compiling

So far, I'm able to compile Agregore from source on a pinphone running monjaro+Phosh using the following steps (I did this over SSH but you can probably do it on the phone's terminal app):

Once you've compiled or downloaded the AppImage, you can install it onto the system with AppImageLauncher

On Monjaro you can install it with sudo pacman -S appimagelauncher

From there you should be able to open AppImages from the file explorer (e.g. Portfolio) and get it to install them onto your system.

Known issues:

Other TODOs:

Any help with figuring out issues would be very much appreciated

RangerMauve commented 3 years ago

Even though adding the flags --enable-features=UseOzonePlatform --ozone-platform=wayland on the CLI works great for fixing both the keybaord issue and the fuzziness, I can't actually use the app.commandLine.appendSwitch() API to enable these flags. šŸ¤·

RangerMauve commented 3 years ago

What I did was I added the CLI arguments to the .desktop file that AppImageLauncher created inside ~/.local/share/applications/. Now it seems to be working great!

Not sure if there's a way to do this automagically. šŸ¤·

RangerMauve commented 2 years ago

I think we're going to need to run the build scripts on some sort of ARM computer cluster because cross-compliation just isn't working.

av8ta commented 2 years ago

I have a raspberry pi 4 with 64bit archlinux on it. Actually I think I have two or three. It's the 4gb ram model. Would that be helpful?

RangerMauve commented 2 years ago

I have a raspberry pi 4 with 64bit archlinux on it. Actually I think I have two or three. It's the 4gb ram model. Would that be helpful?

Sadly the pinephone uses a different ARM architecture from the Pi 4 (AFAIK)

The first Pi 4 uses armv7h, and the Pinephone uses aarch64. At least as I understand it. šŸ˜…

av8ta commented 2 years ago

No it is aarch64. The trouble is the os from raspberry is 32 bit. Do they still call it raspbian?

I run a 64 bit archlinux on mine - had to to get ssb running on there because some libraries required 64 bit. So I'm 98.69385624% certain it is aarch64 :)

RangerMauve commented 2 years ago

@av8ta :O If you could try to compile a binary (maybe for alpine?) I'd love to test it on my pinephone.

If it works I might spend some time to set up a PI for running builds on release at my house. šŸ˜

av8ta commented 2 years ago

I'll give it a shot and let you know how I get on :grinning: I'm expecting it will take aaaages haha

av8ta commented 2 years ago

So I broke my raspberry pi in the first attempt! It was a custom archlinux I'd built way back when there weren't any downloadable iso for 64 bit OS. Now it has the new 64 bit raspberry pi os on it so I'll have another crack soon. But I should probably buy a heatsink for it first so it doesn't lock up in the middle of a system upgrade and brick itself again :rofl: