mirror of
https://github.com/ClydeyEXE/uc2-recomp.git
synced 2026-11-25 10:02:18 +00:00
5d414c4b81
setup.ps1 now installs Git, Python 3.12 and the VS 2022 Build Tools (C++, CMake, Ninja) with winget after one question, clones the pinned toolkit when the repo came as a zip without its submodule, asks for the disc image in a file dialog, accepts an extracted disc folder, numbers its steps and can put a desktop shortcut down. Setup.cmd and Play.cmd in the root run it and the game with a double-click.
10 lines
484 B
Batchfile
10 lines
484 B
Batchfile
@echo off
|
|
rem Double-click to set everything up and build the game: see tools\setup.ps1 for what it does and its options.
|
|
rem Started from PowerShell 7, the inherited module path hides Windows PowerShell's own cmdlets; clearing it fixes that.
|
|
set "PSModulePath="
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0tools\setup.ps1" %*
|
|
set "SETUP_EXIT=%ERRORLEVEL%"
|
|
rem Keep the window open when double-clicked, so the result can be read.
|
|
if "%~1"=="" pause
|
|
exit /b %SETUP_EXIT%
|