

IFS=',' read -a options $log & echo -e ". Ok !\n" || error=1Įcho -e "You can build for this machine only (linux$arch) or for all platforms, including : Mac, Windows, Linux 32-bits, Linux 64-bits.\n\nFor what platforms do you wish to build (for multiple builds, separate each platform with a comma)" Sudo chown -Rf $USER:$USER $HOME/popcorn-app-$version/ $HOME/tmp $HOME/.npm Wget $githubURL/archive/$version.zip -O $version.zip &> $log & unzip -o $version.zip &> $log & rm $version.zip & echo -e ". & & sudo ln -s /lib/$(arch)-linux-gnu/libudev.so.0 /lib/$(arch)-linux-gnu/libudev.so.1Įcho "- Downloading sources (branch:$version) from GitHub." & sudo ln -s /usr/bin/nodejs /usr/bin/node
Popcorn time free download for mac install#
Sudo npm install -g grunt-cli bower &> $log & echo -e ". If & thenĮcho -e "\n- Updating NPM 'grunt-cli' and 'bower'."Įcho -e "\n- Installing NPM 'grunt-cli' and 'bower'." Sudo apt-get install nodejs wget unzip -y &> $log & echo -e ". Sudo apt-add-repository -y ppa:chris-lea/node.js &> $log & If || thenĮcho "- Checking for dependencies 'nodejs', 'wget' and 'unzip'." Sudo rm -rf /usr/share/applications/sktop Do you want to keep the configuration files (bookmarks, watched list, settings. WARNING: Popcorn-Time is already installed in '$installdir' and will be erased. Sudo rm -rf $HOME/tmp $HOME/popcorn-app-$version $HOME/npm-debug.log $HOME/.npm $HOME/.cache/bower $HOME/.config/configstore/insight-bower.yml $HOME/.config/configstore/update-notifier-bower.yml $HOME/.local/share/bower $log $HOME/.npm & Sudo add-apt-repository -yr ppa:chris-lea/node.js &> /dev/null & Sudo apt-get autoremove -y &> /dev/null &

Sudo apt-get purge nodejs -y &> /dev/null & Sudo rm -rf $installdir/Popcorn-Time /usr/share/pixmaps/popcorntime.png /usr/bin/popcorn-time $HOME/tmp $HOME/popcorn-app-$version $HOME/npm-debug.log $HOME/.npm $HOME/.cache/bower $HOME/.config/configstore/insight-bower.yml $HOME/.config/configstore/update-notifier-bower.yml $HOME/.local/share/bower $log $HOME/$version.zip $HOME/.npm/ Sudo chmod -R 774 $HOME/.config/Popcorn-Time/data Sudo chown -Rf $USER:$USER $HOME/.config/Popcorn-Time/data & Sudo cp -r /tmp/popcorn-config/data $HOME/.config/Popcorn-Time/ &> /dev/null & Sudo cp -r $HOME/.config/Popcorn-Time/data /tmp/popcorn-config/ &> /dev/null You need to run this without 'root' or 'sudo' privileges." & If ps -U root -u root u | grep "$lock" | grep -v grep > /dev/null thenĮcho "Error. & arch=64 || arch=32įor lock in synaptic update-manager software-center apt-get "dpkg " aptitude #Thanks to Andrew for func_apt, nodejs PPA and libudev fix.

This will take about 10-30min to complete. Remove the packages used by this script to build PT if you don't want them in the future.Remove building files if you don't want them anymore.Install Popcorn-Time with shortcuts and commandline options if you wish.

