Created
May 29, 2015 02:23
-
-
Save elleryq/3bd923686ee06d1b638f to your computer and use it in GitHub Desktop.
安裝 kwplayer 用的 script,環境 14.04 https://github.com/LiuLang/kwplayer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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