-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsteam-helper.xml
57 lines (52 loc) · 1.77 KB
/
steam-helper.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
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<project name="steam helper">
<target name="steam-download">
<fail message="steamcmd property is not set" unless="steamcmd" />
<fail message="steamdir property is not set" unless="steamdir" />
<fail message="appid property is not set" unless="appid" />
<exec executable="${steamcmd}">
<arg value="+login" />
<arg value="anonymous" />
<arg value="+force_install_dir" />
<arg value="${steamdir}" />
<arg value="+app_update" />
<arg value="${appid}" />
<arg value="validate" />
<arg value="+exit" />
</exec>
</target>
<target name="create-server-artifacts" depends="steam-download">
<loadfile srcfile="${steamdir}/steamapps/appmanifest_${appid}.acf"
property="steamapps.buildid">
<filterchain>
<linecontainsregexp>
<regexp pattern="^\s*"buildid"\s+"([\d]*)"\s*$" />
</linecontainsregexp>
<tokenfilter>
<replaceregex pattern="^\s*"buildid"\s+"([\d]*)"\s*$" replace="\1" />
</tokenfilter>
<striplinebreaks />
</filterchain>
</loadfile>
<exec executable="cmd">
<arg value="/c" />
<arg value="mvn" />
<arg value="install:install-file" />
<arg value="-Dfile=${steamdir}/common.jar" />
<arg value="-DgroupId=org.gotti.wurmunlimited" />
<arg value="-DartifactId=common" />
<arg value="-Dpackaging=jar" />
<arg value="-Dversion=${steamapps.buildid}" />
</exec>
<exec executable="cmd">
<arg value="/c" />
<arg value="mvn" />
<arg value="install:install-file" />
<arg value="-Dfile=${steamdir}/server.jar" />
<arg value="-DgroupId=org.gotti.wurmunlimited" />
<arg value="-DartifactId=server" />
<arg value="-Dpackaging=jar" />
<arg value="-Dversion=${steamapps.buildid}" />
</exec>
</target>
</project>