EmuDeck/functions/appImageInit.sh
Dragoon Dorise 4fb6070d00 &> /dev/null
2024-01-28 10:47:03 +01:00

37 lines
885 B
Bash

#!/bin/bash
appImageInit() {
if [ "$system" == "chimeraos" ]; then
ESDE_chimeraOS
mkdir -p $HOME/Applications
downloads_dir="$HOME/Downloads"
destination_dir="$HOME/Applications"
file_name="EmuDeck"
find "$downloads_dir" -type f -name "*$file_name*.AppImage" -exec mv {} "$destination_dir/$file_name.AppImage" \;
fi
#Autofixes, put here functions that make under the hood fixes.
autofix_duplicateESDE
autofix_lnk
SRM_migration # 2.2 Changes
ESDE_migration # 2.2 Changes
autofix_dynamicParsers # 2.2 Changes
#Force SRM appimage move in case the migration fails
mv "${toolsPath}/srm/Steam-ROM-Manager.AppImage" "${toolsPath}/Steam ROM Manager.AppImage" &> /dev/null
#Xenia temp fix
if [ "$(Xenia_IsInstalled)" == "true" ]; then
setSetting doInstallXenia "true"
fi
# Init functions
mkdir -p "$HOME/emudeck/logs"
mkdir -p "$HOME/emudeck/feeds"
}