mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2025-05-30 19:52:54 +00:00
35 lines
1.6 KiB
Bash
35 lines
1.6 KiB
Bash
#!/bin/bash
|
|
emuDeckInstallHomebrewGames(){
|
|
setMSG "Installing HomeBrew Games"
|
|
mkdir -p "$toolsPath/homebrew/roms/"
|
|
mkdir -p "$toolsPath/downloaded_media/"
|
|
git clone https://github.com/EmuDeck/emudeck-homebrew.git "$toolsPath/homebrew/roms/" --depth=1
|
|
cd "$toolsPath/homebrew/roms/" && git reset --hard HEAD && git clean -f -d && git pull && echo "Homebrew Games up to date!" || echo "problem pulling Homebrew Games"
|
|
|
|
#Symlinks
|
|
ln -sn "$toolsPath/homebrew/roms/gamegear" "${romsPath}/gamegear/homebrew"
|
|
ln -sn "$toolsPath/homebrew/roms/gb" "${romsPath}/gb/homebrew"
|
|
ln -sn "$toolsPath/homebrew/roms/gba" "${romsPath}/gba/homebrew"
|
|
ln -sn "$toolsPath/homebrew/roms/gbc" "${romsPath}/gbc/homebrew"
|
|
ln -sn "$toolsPath/homebrew/roms/genesis" "${romsPath}/genesis/homebrew"
|
|
ln -sn "$toolsPath/homebrew/roms/mastersystem" "${romsPath}/mastersystem/homebrew"
|
|
ln -sn "$toolsPath/homebrew/roms/nes" "${romsPath}/nes/homebrew"
|
|
ln -sn "$toolsPath/homebrew/roms/snes" "${romsPath}/snes/homebrew"
|
|
|
|
rsync -r --ignore-existing "${toolsPath}/homebrew/roms/downloaded_media/" "${toolsPath}/downloaded_media/" && rm -rf "${toolsPath}/homebrew/roms/downloaded_media/" && echo "true"
|
|
|
|
}
|
|
|
|
emuDeckUninstallHomebrewGames(){
|
|
#Symlinks
|
|
unlink "${romsPath}/gamegear/homebrew"
|
|
unlink "${romsPath}/gb/homebrew"
|
|
unlink "${romsPath}/gba/homebrew"
|
|
unlink "${romsPath}/gbc/homebrew"
|
|
unlink "${romsPath}/genesis/homebrew"
|
|
unlink "${romsPath}/mastersystem/homebrew"
|
|
unlink "${romsPath}/nes/homebrew"
|
|
unlink "${romsPath}/snes/homebrew"
|
|
|
|
rm -rf "$toolsPath/homebrew/roms/" && echo "true"
|
|
} |