0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-19 17:02:13 +02:00

Add scripts

This commit is contained in:
Alexander01998 2020-01-04 23:25:32 +01:00
parent d8fbce0080
commit b74ccecc4b
6 changed files with 35 additions and 0 deletions

4
scripts/build.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
cd ..
call gradlew.bat build
pause

View File

@ -0,0 +1,4 @@
@echo off
cd ..
call gradlew.bat downloadAssets
pause

View File

@ -0,0 +1,5 @@
@echo off
cd ..
call gradlew.bat genSources
call gradlew.bat eclipse
pause

View File

@ -0,0 +1,8 @@
@echo off
cd ..
set /p targetMappings=Target Mappings (net.fabricmc.yarn):
call gradlew.bat migrateMappings -PtargetMappingsArtifact="%targetMappings%" -PinputDir="%cd%/src/main/java" -PoutputDir="%cd%/src/main/new java"
rmdir /s /q "%cd%/src/main/java"
move "%cd%/src/main/new java" "%cd%/src/main/java"
rem gradlew.bat downloadAssets
pause

View File

@ -0,0 +1,7 @@
@echo off
cd ..
set /p targetMappings=Target Mappings (net.fabricmc.yarn:v2):
call gradlew.bat migrateMappings --mappings="%targetMappings%"
rmdir /s /q "%cd%/src/main/java"
move "%cd%/remappedSrc" "%cd%/src/main/java"
pause

7
scripts/premerge.bat Normal file
View File

@ -0,0 +1,7 @@
@echo off
cd ..
set /p id=Pull Request #
set branch=pr%id%
call git fetch origin pull/%id%/head:%branch%
call git checkout %branch%
pause