Last active
September 11, 2019 01:32
-
-
Save composite/cd13f64497276d8d310e2c277955b54e to your computer and use it in GitHub Desktop.
Intellij patch update when fails in IDE. (for 2018.2 and above. windows only.) place in your jetbrains IDE directory, and run it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ECHO OFF | |
| SETLOCAL | |
| REM Keep it if you placed this batch file in IDEA base directory. | |
| SET BASEDIR=%~dp0 | |
| REM Keep it if you are using default installation. but don't forget to check your config folder named by Jetbrains IDE. | |
| SET PATCH=%userprofile%\.IntelliJIdea\data\system\tmp\patch-update\ | |
| REM If you are using portable installation with portapps.io, comment above by prepend REM, and uncomment below by remove REM | |
| REM SET PATCH=%BASEDIR%..\data\system\tmp\patch-update\ | |
| REM manual patch by parameter. you can run with specify patch jar path if you downloaded manually. | |
| IF EXIST "%1" ( | |
| ECHO APPLYING PATCH %1 | |
| SET PATCH=%1 | |
| GOTO PATCH | |
| ) | |
| FOR /r "%PATCH%" %%i IN (*-patch-win.jar) DO SET PATCH=%%i | |
| IF EXIST "%PATCH%\*" ( | |
| ECHO PATCH FILE %PATCH% NOT SPECIFIED. | |
| PAUSE | |
| GOTO END | |
| ) | |
| IF NOT EXIST "%PATCH%" ( | |
| ECHO PATCH FILE %PATCH% NOT EXISTS. | |
| PAUSE | |
| GOTO END | |
| ) | |
| :PATCH | |
| ECHO. | |
| REM If you didn't set java with %PATH%, you must specify java path manually below. | |
| java.exe -jar "%PATCH%" %BASEDIR% | |
| PAUSE | |
| :END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment