update scripts

This commit is contained in:
Jack 2016-02-16 09:09:50 -05:00
parent 1a1c101b9a
commit 8ca8c73868
2 changed files with 5 additions and 3 deletions

View file

@ -26,6 +26,10 @@ unzip LBRYURIHandler.app.zip &>/dev/null
unzip LBRY\ Updater.app.zip &>/dev/null unzip LBRY\ Updater.app.zip &>/dev/null
echo "Installing update" echo "Installing update"
mkdir -p "$lbrycrd_directory"
echo $current_version > "${lbrycrd_directory}/lbry_app_version.txt"
rm -rf /Applications/LBRY.app &>/dev/null rm -rf /Applications/LBRY.app &>/dev/null
rm -rf /Applications/LBRYURIHandler.app &>/dev/null rm -rf /Applications/LBRYURIHandler.app &>/dev/null
rm -rf /Applications/LBRY\ Updater.app &>/dev/null rm -rf /Applications/LBRY\ Updater.app &>/dev/null

View file

@ -21,12 +21,10 @@ echo "Downloading update"
git clone https://github.com/lbryio/lbry.git &>/dev/null git clone https://github.com/lbryio/lbry.git &>/dev/null
cd lbry cd lbry
version=$(git rev-parse HEAD)
echo "Updating lbrynet" echo "Updating lbrynet"
sudo python setup.py install &>/dev/null sudo python setup.py install &>/dev/null
mkdir -p "$lbrynet_directory" mkdir -p "$lbrynet_directory"
echo $version > "${lbrynet_directory}/lbrynet_version.txt" echo $current_version > "${lbrynet_directory}/lbrynet_version.txt"
echo "Cleaning up" echo "Cleaning up"