Skip to content

Instantly share code, notes, and snippets.

@elleryq
Created May 29, 2015 02:23
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 elleryq/3bd923686ee06d1b638f to your computer and use it in GitHub Desktop.
Save elleryq/3bd923686ee06d1b638f to your computer and use it in GitHub Desktop.
安裝 kwplayer 用的 script,環境 14.04 https://github.com/LiuLang/kwplayer
#!/bin/bash
DEBS="https://github.com/LiuLang/kwplayer-packages/raw/master/python3-xlib_0.15-1_all.deb
https://github.com/LiuLang/kwplayer-packages/raw/master/python3-keybinder_1.1.2-1_all.deb
https://github.com/LiuLang/kwplayer-packages/raw/master/kwplayer_3.5.2-1_all.deb"
# install dependencies
sudo apt-get install python3-html2text python3-ply
# download and install
for DEB in $DEBS; do
deb=$(basename $DEB)
# not existed, download it.
if [ ! -e $deb ]; then
wget $DEB
fi
# check existence then install it.
if [ -e $deb ]; then
sudo dpkg -i $deb
else
echo "Not found: $deb"
fi
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment