18 lines
704 B
Bash
18 lines
704 B
Bash
# shellcheck shell=bash disable=SC2154 # Variables are set by linux-game-manager.sh
|
|
run_update() {
|
|
check_architecture x86_64 aarch64
|
|
local papaSangreUrl="${ipfs[Papa_Sangre_$(uname -m)]}"
|
|
local downloadFile="${papaSangreUrl##*filename=}"
|
|
downloadFile="${downloadFile%%&*}"
|
|
|
|
# download_named reads this dynamically scoped flag.
|
|
# shellcheck disable=SC2034
|
|
local redownload=true
|
|
download_named "$downloadFile" "$papaSangreUrl"
|
|
|
|
local gamePath="${installPath}/Papa_Sangre"
|
|
mkdir -p "$gamePath"
|
|
install -v -m 0755 "${cache}/${downloadFile}" "${gamePath}/PapaSangre.AppImage.new"
|
|
mv -v "${gamePath}/PapaSangre.AppImage.new" "${gamePath}/PapaSangre.AppImage"
|
|
}
|