mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-28 16:45:42 +00:00
PONZU: fixing install script
This commit is contained in:
parent
2e47b17fb4
commit
f0aa342936
|
@ -662,6 +662,8 @@ ponzu() {
|
||||||
# Check if any of the specified files exist
|
# Check if any of the specified files exist
|
||||||
# If RetroDECK is reset Ponzu must re-cooked
|
# If RetroDECK is reset Ponzu must re-cooked
|
||||||
|
|
||||||
|
log d "Checking for Ponzu"
|
||||||
|
|
||||||
local tmp_folder="/tmp/extracted"
|
local tmp_folder="/tmp/extracted"
|
||||||
local ponzu_files=("$rdhome"/ponzu/Citra*.AppImage "$rdhome"/ponzu/citra*.AppImage "$rdhome"/ponzu/Yuzu*.AppImage "$rdhome"/ponzu/yuzu*.AppImage)
|
local ponzu_files=("$rdhome"/ponzu/Citra*.AppImage "$rdhome"/ponzu/citra*.AppImage "$rdhome"/ponzu/Yuzu*.AppImage "$rdhome"/ponzu/yuzu*.AppImage)
|
||||||
local data_dir
|
local data_dir
|
||||||
|
@ -685,18 +687,21 @@ ponzu() {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
appimage="$ponzu_file"
|
appimage="$ponzu_file"
|
||||||
|
chmod +x "$ponzu_file"
|
||||||
create_dir "$data_dir"
|
create_dir "$data_dir"
|
||||||
log d "Moving AppImage in \"$data_dir\""
|
log d "Moving AppImage in \"$data_dir\""
|
||||||
mv "$appimage" "$data_dir"
|
mv "$appimage" "$data_dir"
|
||||||
cd "$data_dir"
|
cd "$data_dir"
|
||||||
chmod +x "$appimage"
|
local filename=$(basename "$ponzu_file")
|
||||||
|
log d "Setting appimage=$data_dir/$filename"
|
||||||
|
appimage="$data_dir/$filename"
|
||||||
log d "Extracting AppImage"
|
log d "Extracting AppImage"
|
||||||
"$appimage" --appimage-extract
|
"$appimage" --appimage-extract
|
||||||
create_dir "$tmp_folder"
|
create_dir "$tmp_folder"
|
||||||
log d "Cleaning up"
|
log d "Cleaning up"
|
||||||
cp -r squashfs-root/* "$tmp_folder"
|
cp -r squashfs-root/* "$tmp_folder"
|
||||||
rm -rf *
|
rm -rf *
|
||||||
if [[ "$ponzu_file" == *itra*]]; then
|
if [[ "$ponzu_file" == *itra* ]]; then
|
||||||
mv "$tmp_folder/usr/"** .
|
mv "$tmp_folder/usr/"** .
|
||||||
executable="$data_dir/bin/citra-qt"
|
executable="$data_dir/bin/citra-qt"
|
||||||
log d "Making $executable executable"
|
log d "Making $executable executable"
|
||||||
|
@ -714,8 +719,10 @@ ponzu() {
|
||||||
|
|
||||||
cd -
|
cd -
|
||||||
log i "$message"
|
log i "$message"
|
||||||
|
rm -rf "$tmp_folder"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
rm -rf "$rdhome/ponzu"
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: this function is not yet used
|
# TODO: this function is not yet used
|
||||||
|
|
Loading…
Reference in a new issue