Skip to content

Instantly share code, notes, and snippets.

@laqieer
Created May 18, 2023 14:42
Show Gist options
  • Save laqieer/e4d97d0ab5ca94d773b67f772ad2b8da to your computer and use it in GitHub Desktop.
Save laqieer/e4d97d0ab5ca94d773b67f772ad2b8da to your computer and use it in GitHub Desktop.
Batch script to update FE modding resources by 7743
@echo off
where git > nul
if %errorlevel% neq 0 (
echo "git is required."
echo "Please install it from the following website."
echo "https://gitforwindows.org/"
pause
start https://gitforwindows.org/
goto EXIT
)
where 7z > nul
if %errorlevel% neq 0 (
echo "7z is required."
echo "Please install it from the following website."
echo "https://www.7-zip.org/download.html"
pause
start https://www.7-zip.org/download.html
goto EXIT
)
where curl > nul
if %errorlevel% neq 0 (
echo "curl is required."
echo "Please install it from the following website."
echo "https://curl.se/windows/"
pause
start https://curl.se/windows/
goto EXIT
)
if not exist "FE-Repo" (
echo "The first download takes about 20 minutes."
git clone https://github.com/Klokinator/FE-Repo
) else (
cd FE-Repo
git pull
cd ..
)
if not exist "FE-Repo-Music" (
git clone https://github.com/Klokinator/FE-Repo-Music
) else (
cd FE-Repo-Music
git pull
cd ..
)
if not exist "song" (
curl "https://cdn.discordapp.com/attachments/1078054076803207179/1103807951468249239/song.7z" -O song.7z
7z x song.7z
del /q song.7z
)
if not exist "DirectPlayS" (
curl -L "https://github.com/FEBuilderGBA/DirectPlayS/releases/download/20230504/DirectPlayS.7z" > DirectPlayS.7z
7z x DirectPlayS.7z
del /q DirectPlayS.7z
)
:EXIT
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment