Created basic build file
May need some more work so if commits start to pop up with",,," you'll know why.
This commit is contained in:
parent
a41e3c02b1
commit
a0d4b364c5
4 changed files with 112 additions and 0 deletions
6
build.properties
Normal file
6
build.properties
Normal file
|
@ -0,0 +1,6 @@
|
|||
dir.development=./
|
||||
dir.mcp=${dir.development}forge/mcp
|
||||
version.minecraft=1.6.2
|
||||
version.mod.major=0
|
||||
version.mod.minor=1
|
||||
version.mod.revis=3
|
98
build.xml
Normal file
98
build.xml
Normal file
|
@ -0,0 +1,98 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<project name="CoreMachine" default="build">
|
||||
|
||||
<property file="build.properties" />
|
||||
<property environment="env" />
|
||||
<property name="file.core" value="Darks_CoreMachine_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
||||
<property name="file.fm" value="Hydraulics_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
||||
<property name="file.al" value="Automation_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
||||
<property name="file.ft" value="Farming_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
||||
<property name="file.gs" value="Security_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
||||
|
||||
<target name="build">
|
||||
|
||||
<copy todir="${dir.development}">
|
||||
<fileset dir="../Minecraft Forge Latest/" />
|
||||
</copy>
|
||||
|
||||
<copy todir="${dir.mcp}/src/minecraft">
|
||||
|
||||
<fileset dir="${dir.development}src">
|
||||
<exclude name=".git/**"/>
|
||||
<exclude name="**/*.xml"/>
|
||||
</fileset>
|
||||
|
||||
</copy>
|
||||
|
||||
<!-- Make all directories -->
|
||||
<mkdir dir="output" />
|
||||
|
||||
<!-- Download other git repos -->
|
||||
<exec dir="${dir.mcp}" executable="cmd" osfamily="windows">
|
||||
<arg line="git.bat" />
|
||||
</exec>
|
||||
<exec dir="${dir.mcp}" executable="bash" osfamily="unix">
|
||||
<arg line="git.sh" />
|
||||
</exec>
|
||||
|
||||
|
||||
<!-- Replace version numbers -->
|
||||
<replace dir="${dir.mcp}/src/minecraft" token="@MAJOR@" value="${version.mod.major}" />
|
||||
<replace dir="${dir.mcp}/src/minecraft" token="@MINOR@" value="${version.mod.minor}" />
|
||||
<replace dir="${dir.mcp}/src/minecraft" token="@REVIS@" value="${version.mod.revis}" />
|
||||
<replace dir="${dir.mcp}/src/minecraft" token="@BUILD@" value="${env.BUILD_NUMBER}" />
|
||||
|
||||
<exec dir="${dir.mcp}" executable="cmd" osfamily="windows">
|
||||
<arg line="recompile.bat" />
|
||||
</exec>
|
||||
<exec dir="${dir.mcp}" executable="cmd" osfamily="windows">
|
||||
<arg line="reobfuscate_srg.bat" />
|
||||
</exec>
|
||||
|
||||
<exec dir="${dir.mcp}" executable="bash" osfamily="unix">
|
||||
<arg line="recompile.sh" />
|
||||
</exec>
|
||||
<exec dir="${dir.mcp}" executable="bash" osfamily="unix">
|
||||
<arg line="reobfuscate_srg.sh" />
|
||||
</exec>
|
||||
|
||||
<!-- Copy compiled files into folders to be zipped -->
|
||||
<copy todir="core">
|
||||
<fileset dir="${dir.mcp}/reobf/minecraft/dark/core" excludes=".git/**" />
|
||||
<fileset dir="${dir.mcp}/reobf/minecraft/dark/api" excludes=".git/**" />
|
||||
</copy>
|
||||
<copy todir="fm">
|
||||
<fileset dir="${dir.mcp}/reobf/minecraft/dark/fluid" excludes=".git/**" />
|
||||
<fileset dir="${dir.mcp}/reobf/minecraft/dark/mech" excludes=".git/**" />
|
||||
</copy>
|
||||
<copy todir="al">
|
||||
<fileset dir="${dir.mcp}/reobf/minecraft/dark/assembly" excludes=".git/**" />
|
||||
</copy>
|
||||
<copy todir="ft">
|
||||
<fileset dir="${dir.mcp}/reobf/minecraft/dark/farmtech" excludes=".git/**" />
|
||||
</copy>
|
||||
<copy todir="gs">
|
||||
<fileset dir="${dir.mcp}/reobf/minecraft/dark/security" excludes=".git/**" />
|
||||
</copy>
|
||||
|
||||
<!-- OUTPUT LATEST JAR AND ZIP FILES -->
|
||||
<jar destfile="${file.core}">
|
||||
<fileset dir="core" />
|
||||
</jar>
|
||||
<jar destfile="${file.fm}">
|
||||
<fileset dir="fm" />
|
||||
</jar>
|
||||
<jar destfile="${file.al}">
|
||||
<fileset dir="al" />
|
||||
</jar>
|
||||
<jar destfile="${file.ft}">
|
||||
<fileset dir="ft" />
|
||||
</jar>
|
||||
<jar destfile="${file.gs}">
|
||||
<fileset dir="gs" />
|
||||
</jar>
|
||||
|
||||
<copy todir="output" file="build.properties" />
|
||||
</target>
|
||||
</project>
|
4
git.bat
Normal file
4
git.bat
Normal file
|
@ -0,0 +1,4 @@
|
|||
git clone https://github.com/DarkGuardsman/Fluid-Mechanics.git
|
||||
git clone https://github.com/DarkGuardsman/Assembly-Line.git
|
||||
git clone https://github.com/DarkGuardsman/FarmTech.git
|
||||
git clone https://github.com/DarkGuardsman/Greater-Security.git
|
4
git.sh
Normal file
4
git.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
git clone https://github.com/DarkGuardsman/Fluid-Mechanics.git
|
||||
git clone https://github.com/DarkGuardsman/Assembly-Line.git
|
||||
git clone https://github.com/DarkGuardsman/FarmTech.git
|
||||
git clone https://github.com/DarkGuardsman/Greater-Security.git
|
Loading…
Reference in a new issue