From 6cd4c6189d447c74cf7deb0c18032c7baa621f24 Mon Sep 17 00:00:00 2001 From: LibreHacker Date: Tue, 28 Jul 2020 13:42:52 +0300 Subject: [PATCH] init update --- Download.sh | 7 ++++--- Tools/Update.sh | 7 +++++++ 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100755 Tools/Update.sh diff --git a/Download.sh b/Download.sh index 29340d4..0156059 100755 --- a/Download.sh +++ b/Download.sh @@ -21,6 +21,7 @@ cp -r bin/{Editor.sh,Urho3DPlayer} ../../bin mkdir ../../lib cp -r lib/Urho3D ../../lib cd ../../ -ln -s Tools/Start.sh -ln -s Tools/Editor.sh -mv Download.sh Tools/ +mv Tools/Start.sh ./ +mv Tools/Editor.sh ./ +mv Tools/Update.sh ./ +rm Download.sh diff --git a/Tools/Update.sh b/Tools/Update.sh new file mode 100755 index 0000000..428ce77 --- /dev/null +++ b/Tools/Update.sh @@ -0,0 +1,7 @@ +#!/bin/bash +wget https://git.macaw.me/LibreHacker/LibreU3DSDK/raw/branch/master/Tools/Update.sh Tools/ +if (($(sha512sum Update.sh | awk '{print $1}') != $(sha512sum Tools/Update.sh | awk '{print $1}'))); +then + mv -f Tools/Update.sh ./ + Update.sh +fi