-
Notifications
You must be signed in to change notification settings - Fork 137
/
Copy pathbuild.xml
executable file
·48 lines (42 loc) · 1.73 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<project name="InventoryTweaks" default="dist" basedir=".">
<description>
Deployment to Minecraft task
</description>
<!-- OS-specific properties -->
<condition property="modsDir" value="${user.home}/AppData/Roaming/.minecraft/mods">
<os family="windows" />
</condition>
<condition property="modsDir" value="${user.home}:Library:Application\ Support:minecraft:mods">
<os name="Mac OS X" />
</condition>
<condition property="modsDir" value="${user.home}/.minecraft/mods">
<os family="unix" />
</condition>
<!-- Mod archive distribution -->
<target name="dist">
<echo>Installing...</echo>
<mkdir dir="${modsDir}" />
<echo> - Removing possible older version</echo>
<delete>
<fileset dir="${modsDir}" includes="InvTweaks*" />
</delete>
<echo> - Copying zip to mods folder</echo>
<copy todir="${modsDir}">
<fileset dir="." includes="InvTweaks-DEV.zip" />
</copy>
<echo> - Done!</echo>
</target>
<!-- Launcher setup -->
<property name="script" value="java -Xmx1024m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false -classpath minecraft.jar net.minecraft.LauncherFrame" />
<condition property="launcher.not.available">
<not>
<available file="launcher" property="minecraft.jar.present"/>
</not>
</condition>
<target name="launcher" if="launcher.not.available">
<mkdir dir="launcher" />
<get src="https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar" dest="launcher/minecraft.jar"/>
<echo file="launcher/debug.bat" message="${script}" />
<echo file="launcher/debug.sh" message="${script}" />
</target>
</project>