mirror of
https://github.com/grumpycoders/pcsx-redux.git
synced 2024-05-16 19:11:04 -04:00
24 lines
565 B
Batchfile
24 lines
565 B
Batchfile
@echo off
|
|
set OLDCWD=%cd%
|
|
cd %~dp0
|
|
set ROOT=%cd%
|
|
cd %OLDCWD%
|
|
|
|
set REL=%OLDCWD%
|
|
|
|
SETLOCAL EnableDelayedExpansion
|
|
|
|
set MAT=
|
|
set UPP=
|
|
for /f "tokens=*" %%a in ('echo.%ROOT:\=^&echo.%') do (
|
|
set SUB=!SUB!%%a\
|
|
call set TMP=%%src:!SUB!=%%
|
|
set MAT=!SUB!
|
|
)
|
|
set REL=%UPP%!REL:%MAT%=!
|
|
if "!REL!" EQU "!ROOT!" (set REL=) ELSE (set "REL=!REL:\=/!")
|
|
set REL=/!REL!
|
|
|
|
docker pull ghcr.io/grumpycoders/pcsx-redux-build:latest
|
|
docker run --rm --env-file "%ROOT%/env.list" -t -i -w"/project%REL%" -v "%ROOT%:/project" ghcr.io/grumpycoders/pcsx-redux-build:latest bash -l
|