mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Move mc decompile source to its own folder
Makes caching easier, ever so slightly more organized.
This commit is contained in:
parent
41622f3491
commit
67f96885aa
3
.gitignore
vendored
3
.gitignore
vendored
@ -24,6 +24,7 @@ dist/
|
|||||||
manifest.mf
|
manifest.mf
|
||||||
|
|
||||||
work/1.*
|
work/1.*
|
||||||
|
work/Minecraft
|
||||||
work/BuildData
|
work/BuildData
|
||||||
work/Bukkit
|
work/Bukkit
|
||||||
work/CraftBukkit
|
work/CraftBukkit
|
||||||
@ -52,8 +53,6 @@ run/
|
|||||||
|
|
||||||
Paper-Server
|
Paper-Server
|
||||||
Paper-API
|
Paper-API
|
||||||
PaperSpigot-Server
|
|
||||||
PaperSpigot-API
|
|
||||||
Paperclip.jar
|
Paperclip.jar
|
||||||
paperclip.jar
|
paperclip.jar
|
||||||
paperclip-*.jar
|
paperclip-*.jar
|
||||||
|
@ -12,4 +12,4 @@ before_install:
|
|||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- '$HOME/.m2/repository'
|
- '$HOME/.m2/repository'
|
||||||
- 'work'
|
- 'work/Minecraft'
|
||||||
|
@ -6,7 +6,7 @@ PS1="$"
|
|||||||
basedir="$(cd "$1" && pwd -P)"
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
||||||
decompiledir="$workdir/$minecraftversion"
|
decompiledir="$workdir/Minecraft/$minecraftversion"
|
||||||
classdir="$decompiledir/classes"
|
classdir="$decompiledir/classes"
|
||||||
|
|
||||||
echo "Extracting NMS classes..."
|
echo "Extracting NMS classes..."
|
||||||
|
@ -9,7 +9,7 @@ basedir="$(cd "$1" && pwd -P)"
|
|||||||
|
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
||||||
decompiledir="$workdir/$minecraftversion"
|
decompiledir="$workdir/Minecraft/$minecraftversion"
|
||||||
|
|
||||||
export importedmcdev=""
|
export importedmcdev=""
|
||||||
function import {
|
function import {
|
||||||
|
@ -6,7 +6,7 @@ PS1="$"
|
|||||||
basedir="$(cd "$1" && pwd -P)"
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
||||||
decompiledir="$workdir/$minecraftversion"
|
decompiledir="$workdir/Minecraft/$minecraftversion"
|
||||||
nms="$decompiledir/net/minecraft/server"
|
nms="$decompiledir/net/minecraft/server"
|
||||||
cb="src/main/java/net/minecraft/server"
|
cb="src/main/java/net/minecraft/server"
|
||||||
gpgsign="$(git config commit.gpgsign || echo "false")"
|
gpgsign="$(git config commit.gpgsign || echo "false")"
|
||||||
|
@ -7,7 +7,7 @@ PS1="$"
|
|||||||
basedir="$(cd "$1" && pwd -P)"
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
||||||
decompiledir="$workdir/$minecraftversion"
|
decompiledir="$workdir/Minecraft/$minecraftversion"
|
||||||
nms="$decompiledir/net/minecraft/server"
|
nms="$decompiledir/net/minecraft/server"
|
||||||
papernms="Paper-Server/src/main/java/net/minecraft/server"
|
papernms="Paper-Server/src/main/java/net/minecraft/server"
|
||||||
mcdevsrc="${decompiledir}/src/net/minecraft/server"
|
mcdevsrc="${decompiledir}/src/net/minecraft/server"
|
||||||
|
@ -11,11 +11,11 @@ accesstransforms="$workdir/BuildData/mappings/"$(cat "${workdir}/BuildData/info.
|
|||||||
classmappings="$workdir/BuildData/mappings/"$(cat "${workdir}/BuildData/info.json" | grep classMappings | cut -d '"' -f 4)
|
classmappings="$workdir/BuildData/mappings/"$(cat "${workdir}/BuildData/info.json" | grep classMappings | cut -d '"' -f 4)
|
||||||
membermappings="$workdir/BuildData/mappings/"$(cat "${workdir}/BuildData/info.json" | grep memberMappings | cut -d '"' -f 4)
|
membermappings="$workdir/BuildData/mappings/"$(cat "${workdir}/BuildData/info.json" | grep memberMappings | cut -d '"' -f 4)
|
||||||
packagemappings="$workdir/BuildData/mappings/"$(cat "${workdir}/BuildData/info.json" | grep packageMappings | cut -d '"' -f 4)
|
packagemappings="$workdir/BuildData/mappings/"$(cat "${workdir}/BuildData/info.json" | grep packageMappings | cut -d '"' -f 4)
|
||||||
jarpath="$workdir/$minecraftversion/$minecraftversion"
|
jarpath="$workdir/Minecraft/$minecraftversion/$minecraftversion"
|
||||||
|
|
||||||
echo "Downloading unmapped vanilla jar..."
|
echo "Downloading unmapped vanilla jar..."
|
||||||
if [ ! -f "$jarpath.jar" ]; then
|
if [ ! -f "$jarpath.jar" ]; then
|
||||||
mkdir -p "$workdir/$minecraftversion"
|
mkdir -p "$workdir/Minecraft/$minecraftversion"
|
||||||
curl -s -o "$jarpath.jar" "https://s3.amazonaws.com/Minecraft.Download/versions/$minecraftversion/minecraft_server.$minecraftversion.jar"
|
curl -s -o "$jarpath.jar" "https://s3.amazonaws.com/Minecraft.Download/versions/$minecraftversion/minecraft_server.$minecraftversion.jar"
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "Failed to download the vanilla server jar. Check connectivity or try again later."
|
echo "Failed to download the vanilla server jar. Check connectivity or try again later."
|
||||||
|
@ -5,7 +5,7 @@ PS1="$"
|
|||||||
basedir="$(cd "$1" && pwd -P)"
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
||||||
decompiledir="$workdir/$minecraftversion"
|
decompiledir="$workdir/Minecraft/$minecraftversion"
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user