Skip to content

Commit

Permalink
Merge pull request #5 from korlibs/soywiz-patch-1
Browse files Browse the repository at this point in the history
Update install-korge-forge.cmd
  • Loading branch information
soywiz authored Jul 19, 2024
2 parents 80ebeb5 + ab1bf11 commit 6644cf6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/install-korge-forge.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ SET KORGEDIR=%USERPROFILE%\.korge
SET JAVA=%KORGEDIR%\jre-21\bin\java.exe
MKDIR "%KORGEDIR%" 2> NUL

SET XZ=%KORGEDIR%\xzdec.exe

IF NOT EXIST "%XZ%" (
CALL :DOWNLOAD_FILE "https://github.com/korlibs/universal-jre/releases/download/0.0.1/xzdec.exe" "%XZ%" "D55CF3EE369E407AD2D9EF1098C3DDE112139593226A68E42396D1EA392C8037"
)

IF NOT EXIST "%INSTALLER_LOCAL_FILE%" (
CALL :DOWNLOAD_FILE "%INSTALLER_URL%" "%INSTALLER_LOCAL_FILE%" "%INSTALLER_SHA256%"
)
Expand Down Expand Up @@ -79,9 +85,10 @@ EXIT /b

MKDIR "%OUT%" > NUL 2> NUL
echo Extracting %INPUT_FILE%...
tar --strip-components %STRIP_COMPONENTS% -C "%OUT%" -xf "%INPUT_FILE%"
REM tar --strip-components %STRIP_COMPONENTS% -C "%OUT%" -xf "%INPUT_FILE%"
%XZ% -d < "%INPUT_FILE%" | tar --strip-components %STRIP_COMPONENTS% -C "%OUT%" -xf -
EXIT /b

:NORMALIZE_PATH
SET RETVAL=%~f1
EXIT /B
EXIT /B

0 comments on commit 6644cf6

Please sign in to comment.