Commit d634cd86ff4da39b3e4267ea2ef842a4d8d14f3f
1 parent
d725a740
updating seeding script
Showing
1 changed file
with
6 additions
and
13 deletions
ant/seed_md5.xml
@@ -4,15 +4,13 @@ | @@ -4,15 +4,13 @@ | ||
4 | <!-- ========================================================================== --> | 4 | <!-- ========================================================================== --> |
5 | <!-- DO NOT RUN THIS SCRIPT DIRECTLY --> | 5 | <!-- DO NOT RUN THIS SCRIPT DIRECTLY --> |
6 | <!-- ========================================================================== --> | 6 | <!-- ========================================================================== --> |
7 | - | 7 | + |
8 | <!-- This script is called by the LiteLoader build script if the initial MD5s --> | 8 | <!-- This script is called by the LiteLoader build script if the initial MD5s --> |
9 | <!-- are missing. If you want to fire this script then delete the 'md5' folder --> | 9 | <!-- are missing. If you want to fire this script then delete the 'md5' folder --> |
10 | <!-- before running the LiteLoader build. --> | 10 | <!-- before running the LiteLoader build. --> |
11 | - | 11 | + |
12 | <target name="genmd5" description="Seed the initial MCP md5 set"> | 12 | <target name="genmd5" description="Seed the initial MCP md5 set"> |
13 | <echo level="info" message="MCP md5set was not found, making a clean compile" /> | 13 | <echo level="info" message="MCP md5set was not found, making a clean compile" /> |
14 | - <antcall target="clean" /> | ||
15 | - <antcall target="init" /> | ||
16 | <antcall target="recompile" /> | 14 | <antcall target="recompile" /> |
17 | <antcall target="reobfuscate" /> | 15 | <antcall target="reobfuscate" /> |
18 | <antcall target="savemd5" /> | 16 | <antcall target="savemd5" /> |
@@ -21,21 +19,16 @@ | @@ -21,21 +19,16 @@ | ||
21 | <target name="clean"> | 19 | <target name="clean"> |
22 | <echo level="info" message="Cleaning output directories" /> | 20 | <echo level="info" message="Cleaning output directories" /> |
23 | 21 | ||
24 | - <delete dir="${src}" /> | ||
25 | <delete dir="${mcp.dir}/reobf" /> | 22 | <delete dir="${mcp.dir}/reobf" /> |
26 | </target> | 23 | </target> |
27 | 24 | ||
28 | - <target name="init" description="Initialize environment"> | 25 | + <target name="init" depends="clean" description="Initialize environment"> |
29 | <echo level="info" message="Initialising environment" /> | 26 | <echo level="info" message="Initialising environment" /> |
30 | 27 | ||
31 | <mkdir dir="${md5.dir}" /> | 28 | <mkdir dir="${md5.dir}" /> |
32 | - | ||
33 | - <copy todir="${src}" verbose="false" overwrite="true"> | ||
34 | - <fileset dir="${mc.src}" /> | ||
35 | - </copy> | ||
36 | </target> | 29 | </target> |
37 | 30 | ||
38 | - <target name="recompile" description="MCP recompile"> | 31 | + <target name="recompile" depends="init" description="MCP recompile"> |
39 | <echo level="info" message="Compiling MCP sources" /> | 32 | <echo level="info" message="Compiling MCP sources" /> |
40 | 33 | ||
41 | <exec executable="${python_windows}" dir="${mcp.dir}" osfamily="windows"> | 34 | <exec executable="${python_windows}" dir="${mcp.dir}" osfamily="windows"> |
@@ -68,10 +61,10 @@ | @@ -68,10 +61,10 @@ | ||
68 | </exec> | 61 | </exec> |
69 | 62 | ||
70 | </target> | 63 | </target> |
71 | - | 64 | + |
72 | <target name="savemd5" description="Put post-obfuscation MD5 to stored md5 set" if="outmd5set"> | 65 | <target name="savemd5" description="Put post-obfuscation MD5 to stored md5 set" if="outmd5set"> |
73 | <echo level="info" message="Storing obfuscated MD5s" /> | 66 | <echo level="info" message="Storing obfuscated MD5s" /> |
74 | 67 | ||
75 | - <copy file="${temp}/client_reobf.md5" tofile="${md5.dir}/client_mcp.md5" overwrite="true" verbose="true" /> | 68 | + <copy file="${temp.dir}/client_reobf.md5" tofile="${md5.dir}/client_mcp.md5" overwrite="true" verbose="true" /> |
76 | </target> | 69 | </target> |
77 | </project> | 70 | </project> |
78 | \ No newline at end of file | 71 | \ No newline at end of file |