forked from N3h3miah/OrbitalMaterialScience
-
Notifications
You must be signed in to change notification settings - Fork 4
/
OrbitalScience.build
189 lines (168 loc) · 6.19 KB
/
OrbitalScience.build
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<?xml version="1.0"?>
<!-- NAnt script -->
<project name="Nehemiah KSP mods" default="all" basedir=".">
<description>Pack the files for the different KSP mods</description>
<!-- Set this to true to copy the debug DLL -->
<property name="debug" value="false" />
<!-- Build directories -->
<property name="build.dir" value="build" />
<property name="NEOS.dir" value="${build.dir}/NEOS" />
<property name="OSS.dir" value="${build.dir}/OSS" />
<property name="KRP.dir" value="${build.dir}/KRP" />
<property name="KEES.dir" value="${build.dir}/KEES" />
<property name="GameData.dir" value="GameData/NehemiahInc" />
<!--
- OSS - Orbital Station Science (Was: KLS, OMS, and MPP)
- KRP - Kemini Research Program
- KEES - Kerbal Environmental Effects Study
- NEOS - Nehemiah Enginneering Orbital Science (Was: All-in-One)
-->
<property name="NEOS.Version" value="0.9.1" />
<property name="OSS.Version" value="0.9.1" />
<property name="KRP.Version" value="0.9.1" />
<property name="KEES.Version" value="0.9.1" />
<property name="CurrMod.dir" value="${build.dir}" />
<target name="init" description="copy generated files into GameData">
<call target="copyDll" />
<call target="copyKSPedia" />
</target>
<target name="clean" description="remove all generated files">
<delete dir="${CurrMod.dir}" />
<!-- work around bug in nant 0.92 which doesn't perform a proper fileset copy if the directory doesn't exist. -->
<mkdir dir="${CurrMod.dir}" />
</target>
<target name="all" description="pack the diferent mods">
<call target="neosZip" />
<call target="ossZip" />
<call target="krpZip" />
<call target="keesZip" />
</target>
<target name="copyDll" description="copy the dll from the plugin folder to game data" >
<copy todir="${GameData.dir}/NE_Science_Common/Plugins">
<fileset basedir="Plugin/NE_Science/bin/Release">
<include name="NE_Science.dll"/>
</fileset>
</copy>
</target>
<target name="copyKSPedia" description="copy the KSPedia from the Unity folder to game data" >
<copy todir="${GameData.dir}/NE_Science_Common/KSPedia">
<fileset basedir="Unity Projects/KSPedia/AssetBundles/">
<include name="neos.ksp"/>
</fileset>
</copy>
</target>
<target name="copyCommonFiles">
<copy todir="${CurrMod.dir}">
<fileset basedir="GameData">
<include name="NehemiahInc/NE_Science_Common/**" />
<exclude name="**/*.mdb" unless="${debug}" />
<exclude name="**/*.pdb" unless="${debug}" />
</fileset>
</copy>
<copy todir="${CurrMod.dir}">
<fileset>
<include name="README.md" />
<include name="LICENSE" />
</fileset>
</copy>
</target>
<target name="copyMM" description="Copy Module Manager to current mod dir">
<copy todir="${CurrMod.dir}">
<fileset basedir="ExternalDependencies/ModuleManager">
<include name="ModuleManager*.dll" />
</fileset>
</copy>
</target>
<target name="neosCopy" description="Create final directory layout for NEOS">
<property name="CurrMod.dir" value="${NEOS.dir}" />
<call target="clean" />
<call target="copyCommonFiles" />
<call target="copyMM"/>
<copy todir="${CurrMod.dir}/NehemiahInc">
<fileset basedir="GameData/NehemiahInc" >
<include name="KEES/**" />
<include name="Kemini/**" />
<include name="KerbalLifeScience/**" />
<include name="MultiPurposeParts/**" />
<include name="OMS/**" />
<include name="NEOS.version" />
</fileset>
</copy>
</target>
<target name="ossCopy" description="Create final directory layout for OSS">
<property name="CurrMod.dir" value="${OSS.dir}" />
<call target="clean" />
<call target="copyCommonFiles" />
<copy todir="${CurrMod.dir}/NehemiahInc">
<fileset basedir="GameData/NehemiahInc" >
<include name="KerbalLifeScience/**" />
<include name="MultiPurposeParts/**" />
<include name="OMS/**" />
<include name="NE-OSS.version" />
</fileset>
</copy>
</target>
<target name="krpCopy" description="Create final directory layout for KRP">
<property name="CurrMod.dir" value="${KRP.dir}" />
<call target="clean" />
<call target="copyCommonFiles" />
<call target="copyMM"/>
<copy todir="${CurrMod.dir}/NehemiahInc">
<fileset basedir="GameData/NehemiahInc" >
<include name="Kemini/**" />
<include name="NE-KRP.version" />
</fileset>
</copy>
</target>
<target name="keesCopy" description="Create final directory layout for KEES">
<property name="CurrMod.dir" value="${KEES.dir}" />
<call target="clean" />
<call target="copyCommonFiles" />
<copy todir="${CurrMod.dir}/NehemiahInc">
<fileset basedir="GameData/NehemiahInc" >
<include name="KEES/**" />
<include name="NE-KEES.version" />
</fileset>
</copy>
</target>
<target name="neosZip" description="Create zip for the Nehemiah Engineering Orbital Science mod">
<call target="neosCopy"/>
<property name="CurrMod.file" value="${build.dir}/NehemiahEngineeringOrbitalScience_${NEOS.Version}.zip" />
<delete file="${CurrMod.file}" />
<zip zipfile="${CurrMod.file}" ziplevel="9">
<fileset basedir="${CurrMod.dir}" >
<include name="**/*" />
</fileset>
</zip>
</target>
<target name="ossZip" description="Create zip for the Orbital Station Science mod">
<call target="ossCopy"/>
<property name="CurrMod.file" value="${build.dir}/OrbitalStationScience_${OSS.Version}.zip" />
<delete file="${CurrMod.file}" />
<zip zipfile="${CurrMod.file}" ziplevel="9">
<fileset basedir="${CurrMod.dir}" >
<include name="**/*" />
</fileset>
</zip>
</target>
<target name="krpZip" description="Create zip for the Kemini Research Program mod">
<call target="krpCopy"/>
<property name="CurrMod.file" value="${build.dir}/KeminiResearchProgram_${KRP.Version}.zip" />
<delete file="${CurrMod.file}" />
<zip zipfile="${CurrMod.file}" ziplevel="9">
<fileset basedir="${CurrMod.dir}" >
<include name="**/*" />
</fileset>
</zip>
</target>
<target name="keesZip" description="Create zip for the KEES mod">
<call target="keesCopy"/>
<property name="CurrMod.file" value="${build.dir}/KerbalEnvironmentalEffectsStudy_${KEES.Version}.zip" />
<delete file="${CurrMod.file}" />
<zip zipfile="${CurrMod.file}" ziplevel="9">
<fileset basedir="${CurrMod.dir}" >
<include name="**/*" />
</fileset>
</zip>
</target>
</project>