rpcs3qt: Add macOS support to the updater.

This commit is contained in:
Steveice10 2024-01-22 23:36:49 -08:00 committed by Megamouse
parent 5fe36872c5
commit 3ef48cbdd5
7 changed files with 152 additions and 24 deletions

14
rpcs3/update_helper.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
# This script copies the new app over the old app and launches it.
# This is required since invalidating the code signing of an app by
# replacing it while it is running can result in the app being killed.
if [ "$#" -ne 2 ]; then
echo "Usage: update_helper.sh <new_app> <old_app>"
exit 1
fi
new_app="$1/"
old_app="$2/"
cp -Rf -p "$new_app" "$old_app"
open -n -a "$2" --args --updating