Skip to content

Commit

Permalink
Update wrapper to delete remaining file
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz committed Jun 28, 2024
1 parent b9734bd commit 5a3c01a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion korge
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ if [ ! -f "$HOME/.korge/compiler/korge-kotlin-compiler-all.$INSTALLER_VERSION.ja

INSTALLER_TAR_XZ_PATH=$HOME/.korge/compiler/korge-kotlin-compiler-all.$INSTALLER_VERSION.tar.xz
tar -xf "$INSTALLER_TAR_XZ_PATH" -C "$HOME/.korge/compiler"
cp "$HOME/.korge/compiler"/korge-kotlin-compiler-all.jar "$HOME/.korge/compiler/korge-kotlin-compiler-all.$INSTALLER_VERSION.jar"
cp "$HOME/.korge/compiler/korge-kotlin-compiler-all.jar" "$HOME/.korge/compiler/korge-kotlin-compiler-all.$INSTALLER_VERSION.jar"
rm "$HOME/.korge/compiler/korge-kotlin-compiler-all.jar"
rm "$INSTALLER_TAR_XZ_PATH"
fi

Expand Down
1 change: 1 addition & 0 deletions korge.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ IF NOT EXIST "%INSTALLER_LOCAL_FILE%" (
CALL :DOWNLOAD_FILE "%INSTALLER_URL%" "%INSTALLER_LOCAL_FILE%.tar.xz" "%INSTALLER_SHA256%"
CALL :EXTRACT_TAR "%INSTALLER_LOCAL_FILE%.tar.xz" "%INSTALLER_PATH%" 0 "%INSTALLER_LOCAL_FILE%"
COPY /Y "%INSTALLER_PATH%\korge-kotlin-compiler-all.jar" %INSTALLER_LOCAL_FILE% > NUL 2> NUL
DEL "%INSTALLER_PATH%\korge-kotlin-compiler-all.jar" > NUL 2> NUL
DEL "%INSTALLER_LOCAL_FILE%.tar.xz" > NUL 2> NUL
)

Expand Down

0 comments on commit 5a3c01a

Please sign in to comment.