This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
cb-legacy-dev/installers/_install-mingw64.bat
2023-11-18 17:56:10 +01:00

17 lines
692 B
Batchfile

@echo off
REM MinGW-W64 installation
REM =================================
pushd "%~dp0"
mkdir CodeBlocks
if not exist "%~dp0\installers\x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z" (
mkdir installers
echo Downloading MinGW-W64 8.1.0 compiler
powershell Invoke-WebRequest 'https://altushost-swe.dl.sourceforge.net/project/mingw-w64/Toolchains targetting Win64/Personal Builds/mingw-builds/8.1.0/threads-posix/seh/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z' -UserAgent "Wget" -OutFile "%~dp0\installers\x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z"
)
echo Unpacking MinGW-W64 8.1.0
"%ZPATH%\7z.exe" x "%~dp0\installers\x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z" -o"%~dp0\CodeBlocks"