mirror of
https://github.com/Vita3K/Vita3K-Android.git
synced 2024-12-04 19:48:25 +00:00
Fix macOS updater
I just add a few quotation marks to try to get the script to recognise spaces in the path
This commit is contained in:
parent
349d89a9eb
commit
6342c20536
@ -1,14 +1,14 @@
|
||||
#!/bin/sh
|
||||
DIR="$(dirname $0)"
|
||||
APP_PATH="$(dirname $0)/../../.."
|
||||
DIR="$(dirname "$0")"
|
||||
APP_PATH="$(dirname "$0")/../../.."
|
||||
|
||||
if [ ! -e $DIR/vita3k-latest.dmg ]; then
|
||||
curl -L https://github.com/Vita3K/Vita3K/releases/download/continuous/macos-latest.dmg -o $DIR/vita3k-latest.dmg
|
||||
if [ ! -e "$DIR"/vita3k-latest.dmg ]; then
|
||||
curl -L https://github.com/Vita3K/Vita3K/releases/download/continuous/macos-latest.dmg -o "$DIR"/vita3k-latest.dmg
|
||||
fi
|
||||
|
||||
hdiutil attach $DIR/vita3k-latest.dmg
|
||||
cp -Rf -p /Volumes/Vita3K\ Installer/Vita3K.app $APP_PATH
|
||||
diskutil eject Vita3K\ Installer
|
||||
rm -f $DIR/vita3k-latest.dmg
|
||||
xattr -d com.apple.quarantine $APP_PATH/Vita3K.app
|
||||
open $APP_PATH/Vita3K.app
|
||||
hdiutil attach "$DIR"/vita3k-latest.dmg
|
||||
cp -Rf -p /Volumes/Vita3K\ Installer/Vita3K.app "$APP_PATH"
|
||||
diskutil eject 'Vita3K Installer'
|
||||
rm -f "$DIR"/vita3k-latest.dmg
|
||||
xattr -d com.apple.quarantine "$APP_PATH"/Vita3K.app
|
||||
open "$APP_PATH"/Vita3K.app
|
||||
|
Loading…
Reference in New Issue
Block a user