mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-18 20:02:32 +12:00
d7f1cc47cc
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
31 lines
993 B
Bash
Executable file
31 lines
993 B
Bash
Executable file
#!/bin/bash
|
|
set -ev # display each line executed along with output
|
|
brew update &
|
|
while true; do
|
|
ps -p$! 2>& 1>/dev/null
|
|
if [ $? = 0 ]; then
|
|
echo "still updating..."; sleep 5
|
|
else
|
|
break
|
|
fi
|
|
done
|
|
|
|
# Upgrade to python 3.x
|
|
brew upgrade python
|
|
brew install enchant
|
|
brew postinstall python # this installs pip
|
|
sudo -H pip3 install --upgrade pip setuptools wheel
|
|
pip3 install pyinstaller PyQt5 lxml pyenchant pytest pytest-faulthandler
|
|
brew install hunspell
|
|
# Fooling PyEnchant as described in the wiki.
|
|
# https://github.com/olivierkes/manuskript/wiki/Package-manuskript-for-OS-X
|
|
sudo touch /usr/local/share/aspell
|
|
#
|
|
# Note that if qt install is terminated by Travis CI then it is likely
|
|
# building from source instead of pouring from a homebrew bottle.
|
|
# Fix by choosing lowest osx_image value [1] for xcode that has a
|
|
# homebrew qt bottle [2].
|
|
# [1] https://docs.travis-ci.com/user/reference/osx#os-x-version
|
|
# [2] https://formulae.brew.sh/formula/qt
|
|
brew install qt
|