Skip to content

Commit 863f641

Browse files
committed
Updated build script to zip the package with the correct folder structure.
1 parent 6d45fbf commit 863f641

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

resources/build.xml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,24 +299,26 @@ ${line}
299299
<target name="generate.zip" if="is.normal">
300300
<!-- zip the distribution of the library -->
301301

302-
<move todir="${project.dist.version}/tmp/${project.name}-${library.version}">
302+
<move todir="${project.dist.version}/tmp/${project.name}">
303303
<fileset dir="${project.dist.version}/${project.name}" />
304304
</move>
305305

306-
<copy file="${project.dist.version}/tmp/${project.name}-${library.version}/library.properties" tofile="${project.dist.version}/web/download/${project.name}-${library.version}.txt" />
307-
<copy file="${project.dist.version}/tmp/${project.name}-${library.version}/library.properties" tofile="${project.dist.version}/web/download/${project.name}.txt" />
306+
<copy file="${project.dist.version}/tmp/${project.name}/library.properties" tofile="${project.dist.version}/web/download/${project.name}.txt" />
308307

309-
<zip destfile="${project.dist.version}/${project.name}-${library.version}.zip"
310-
basedir="${project.dist.version}/tmp/${project.name}-${library.version}"
308+
<zip destfile="${project.dist.version}/${project.name}.zip"
309+
basedir="${project.dist.version}/tmp"
311310
excludes="**/.DS_Store"
312311
/>
313312

314-
<move file="${project.dist.version}/${project.name}-${library.version}.zip" todir="${project.dist.version}/web/download" />
315-
<copy file="${project.dist.version}/web/download/${project.name}-${library.version}.zip" tofile="${project.dist.version}/web/download/${project.name}.zip" />
313+
<move file="${project.dist.version}/${project.name}.zip" todir="${project.dist.version}/web/download" />
314+
315+
<copy file="${project.dist.version}/web/download/${project.name}.zip" tofile="${project.dist.version}/web/download/${project.name}-${library.version}.zip" />
316+
<copy file="${project.dist.version}/web/download/${project.name}.txt" tofile="${project.dist.version}/web/download/${project.name}-${library.version}.txt" />
316317

317318
<move todir="${project.dist.version}">
318319
<fileset dir="${project.dist.version}/web" />
319320
</move>
321+
320322
<delete dir="${project.dist.version}/tmp" />
321323
</target>
322324

0 commit comments

Comments
 (0)