mirror of
https://github.com/Vita3K/Vita3K.git
synced 2026-07-11 01:34:23 +02:00
28 lines
874 B
Bash
Executable File
28 lines
874 B
Bash
Executable File
#!/bin/sh
|
|
echo ============================================================
|
|
echo ====================== Vita3K Updater ======================
|
|
echo ============================================================
|
|
# cd to the correct path so the update doesn't happen outside the vita3k dir
|
|
cd $(dirname $(readlink -f "$0"))
|
|
|
|
boot=0
|
|
if [ ! -e vita3k-latest.zip ]; then
|
|
echo Checking for Vita3K updates...
|
|
echo Attempting to download and extract the latest Vita3K version in progress...
|
|
curl -L https://github.com/Vita3K/Vita3K/releases/download/continuous/ubuntu-latest.zip -o ./vita3k-latest.zip
|
|
else
|
|
boot=1
|
|
fi
|
|
|
|
echo Installing update ...
|
|
unzip -q -o ./vita3k-latest.zip
|
|
rm -f ./vita3k-latest.zip
|
|
chmod +x ./Vita3K
|
|
echo Vita3K updated with success
|
|
if [ $boot -eq 1 ]; then
|
|
echo start Vita3K
|
|
./Vita3K
|
|
else
|
|
read -p "Press [Enter] key to continue..."
|
|
fi
|