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

Instructions for getting this to work on a Raspberry Pi 4 #2277

Closed
MarByteBeep opened this issue Aug 27, 2021 · 2 comments
Closed

Instructions for getting this to work on a Raspberry Pi 4 #2277

MarByteBeep opened this issue Aug 27, 2021 · 2 comments

Comments

@MarByteBeep
Copy link

MarByteBeep commented Aug 27, 2021

Hi all,

If any of the maintainers are listening in: I managed to let Popcorn Time run on a Raspberry Pi 4. These are the steps. Perhaps it's an idea to integrate this in the master?

# First flash Raspbian Buster on SD card. I used "Raspberry Pi OS with desktop" from
# https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit
# After installation, that most probably involves reboots, launch terminal window and execute 
# the following bash commands

# Update everything
sudo apt update
sudo apt upgrade

# Install NodeJS 14. Raspbian version cannot go higher than NodeJS 10; use following line instead
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

# Install Gulp and Yarn
sudo npm install yarn -g
sudo npm install gulp -g

# Fetch the repo
git clone -b v0.4.5 https://github.com/popcorn-official/popcorn-desktop.git
cd popcorn-desktop

# And run installer
yarn install

# Build project
gulp build

# This release doesn't have arm support for nw.js. So we also need to download those libraries. 
# Fortunately those can be found here: https://github.com/LeonardLaszlo/nw.js-armv7-binaries 
# Use v0.46.5, as that one closest matches the version in the 0.4.5 release
wget -c https://github.com/LeonardLaszlo/nw.js-armv7-binaries/releases/download/v0.46.5/v0.46.5.tar.gz

# Extract `chrome sdk` dist
tar -xzvf v0.46.5.tar.gz dist/nwjs-sdk-chrome-ffmpeg-branding/nwjs-sdk-v0.46.5-linux-arm.tar.gz --to-command='tar -xzvf -'

# Now replace the linux32 folder containing non arm code with the one we just extracted
rm -rf cache/0.44.5-sdk/linux32
mv nwjs-sdk-v0.46.5-linux-arm/ cache/0.44.5-sdk/linux32

# And remove the download
rm v0.46.5.tar.gz

# All set; run it
sudo gulp run

There are, obviously, a bunch of caveats: the client seems to be very slow. Connecting to peers is slow as well. And for some reason in full screen the UI sometimes doesn't seem to be fading out. But I'm sure that the programmers would be able to iron out these problems.

Enjoy

@MarByteBeep
Copy link
Author

Sure thing. I'll do that. Meanwhile the real solution I think would be if gulpfile.js is updated to include this nw.js arm version if the platform is a Raspberry Pi. Would something like that be doable?

@elvisisvan
Copy link

what is this gulp command?

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

No branches or pull requests

3 participants