This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Totally snagged this off of the EE3 and modified it.
- Loading branch information
Showing
4 changed files
with
87 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#Wed, 10 Jul 2013 19:02:52 -0700 | ||
release.minecraft.version=1.5.2 | ||
release.number=0 |
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" ?> | ||
<!-- Totally using the EE3 build script as a base. Thanks pahimar! https://github.com/pahimar --> | ||
<project name="BurpTech" default="build"> | ||
|
||
<property file="build.properties" prefix="build"/> | ||
|
||
<target name="clean"> | ||
<delete file="mcp\src\minecraft\mcmod.info" /> | ||
<delete dir="mcp\src\minecraft\burptech" /> | ||
<delete dir="mcp\reobf\minecraft" /> | ||
</target> | ||
|
||
<target name="increment_build_number"> | ||
<propertyfile file="build.properties"> | ||
<entry key="release.number" type="int" operation="+" default="1"/> | ||
</propertyfile> | ||
</target> | ||
|
||
<target name="prep"> | ||
<copy todir="mcp\src\minecraft"> | ||
<fileset dir="src\common\" /> | ||
</copy> | ||
</target> | ||
|
||
<target name="replace_tokens"> | ||
<replace dir="mcp\src\minecraft" token="@VERSION@" value="${build.release.minecraft.version}.${build.release.number}" /> | ||
</target> | ||
|
||
<target name="recompile"> | ||
<exec dir="mcp" executable="cmd" osfamily="windows"> | ||
<arg line="/c recompile.bat" /> | ||
</exec> | ||
<exec dir="mcp" executable="bash" osfamily="unix"> | ||
<arg line="recompile.sh" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="reobfuscate"> | ||
<exec dir="mcp" executable="cmd" osfamily="windows"> | ||
<arg line="/c reobfuscate_srg.bat" /> | ||
</exec> | ||
<exec dir="mcp" executable="bash" osfamily="unix"> | ||
<arg line="reobfuscate_srg.sh" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="build"> | ||
<!-- Prep for the build --> | ||
<antcall target="clean" /> | ||
<antcall target="increment_build_number" /> | ||
<antcall target="prep" /> | ||
<antcall target="replace_tokens" /> | ||
<antcall target="recompile" /> | ||
<antcall target="reobfuscate" /> | ||
|
||
<!-- Build the jar --> | ||
<mkdir dir="bin\${build.release.minecraft.version}\" /> | ||
<jar destfile="bin\${build.release.minecraft.version}\burptech-${build.release.minecraft.version}.${build.release.number}.jar"> | ||
<fileset dir="mcp\src\minecraft\" includes="mcmod.info" /> | ||
<fileset dir="mcp\reobf\minecraft" /> | ||
<fileset dir="src\resources" excludes="**/xcf/**" /> | ||
</jar> | ||
|
||
<!-- Clean up the MCP source now that we are done --> | ||
<antcall target="clean" /> | ||
</target> | ||
</project> |
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