Skip to content

Instantly share code, notes, and snippets.

@skypce
Last active December 10, 2016 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skypce/4ebb4ada8e8f4d4fd0c3c908016bee9e to your computer and use it in GitHub Desktop.
Save skypce/4ebb4ada8e8f4d4fd0c3c908016bee9e to your computer and use it in GitHub Desktop.
Popcorn 4 Community 64 bit installation script
#!/bin/bash
sudo rm -fr /opt/pc4
sudo rm -fr /usr/share/applications/pc4.desktop
# create installation dir
sudo mkdir -p /opt/pc4
#install pc4
wget -qO- https://github.com/PopcornTimeCommunity/desktop/releases/download/v0.4.0-2/popcorn-time-community-v0.4.0-2-64bit.tar.xz | sudo tar xJf - -C /opt/pc4
# add app icon
# configure app for desktop use
sudo bash -c "cat <<EOF > /usr/share/applications/pc4.desktop
[Desktop Entry]
Name=Popcorn Time Comunity Edition
Comment=
Exec=/opt/pc4/Popcorn-Time
Icon=/opt/pc4/popcorntime.png
Terminal=false
Type=Application
Categories=Messaging,Internet
EOF"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment