-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Reques HTTP sync handling, 1.20.6 Cache saving issue resolved.
- Loading branch information
1 parent
482cd17
commit d5e0444
Showing
4 changed files
with
64 additions
and
78 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,49 @@ | ||
@echo off | ||
REM CHMOD 777 | ||
setlocal enabledelayedexpansion | ||
|
||
REM Set JAVA_HOME and PATH for JDK 20 | ||
set "JAVA_HOME=C:\Users\nexti\.jdks\graalvm-ce-21.0.2" | ||
set "PATH=%JAVA_HOME%\bin;%PATH%" | ||
|
||
REM Print Java version | ||
java --version | ||
|
||
REM Clone the repository from GitHub | ||
git clone https://github.com/ShaneBeee/SkBee.git | ||
|
||
REM Change to the repository directory | ||
cd SkBee | ||
|
||
REM Print Gradle version | ||
REM gradlew --version | ||
|
||
REM Run Gradle Wrapper to build the project | ||
call gradlew clean build | ||
REM gradlew clean build | ||
|
||
REM Get the name of the JAR file from the libs directory | ||
for /f %%i in ('dir /b /o-d /a-d .\build\libs\*.jar') do set "jarFileName=%%i" | ||
|
||
REM Set the delimiter | ||
set "delimiter=SkBee-" | ||
|
||
REM Initialize the counter | ||
set "count=0" | ||
|
||
REM Loop to split the string | ||
for /f "tokens=1,* delims=%delimiter%" %%a in ("!jarFileName!") do ( | ||
set "token[!count!]=%%a" | ||
set /a count+=1 | ||
set "inputString=%%b" | ||
) | ||
|
||
set "Dversion=!token[0]:~0,-4!" | ||
|
||
REM Install the JAR file into the local Maven repository | ||
call mvn install:install-file -Dfile=build/libs/%jarFileName% -DgroupId=com.shanebeestudios.skbee -DartifactId=skbee -Dversion=!Dversion! -Dpackaging=jar | ||
|
||
REM Delete the SkBee directory | ||
cd .. | ||
rd /s /q SkBee | ||
endlocal | ||
|
||
endlocal |
This file contains 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
This file contains 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
This file contains 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