Skip to content

Commit

Permalink
use exec tasks to create zip package with correct symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
codeanticode committed Aug 23, 2022
1 parent 3682681 commit cd50293
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ ${line.separator}with the path to where you have the code for Processing 4 check
<antcall target="macosx-dist-sign" />

<!-- copy library files (jar and gstreamer natives) -->
<copy todir="dist/tmp/video/library">
<fileset dir="library" />
</copy>
<exec executable="cp">
<arg value="-R"/>
<arg line="library dist/tmp/video"/>
</exec>

<!-- copy examples -->
<copy todir="dist/tmp/video/examples">
Expand Down Expand Up @@ -203,7 +204,23 @@ ${line.separator}with the path to where you have the code for Processing 4 check

<!-- create zip package -->
<delete file="dist/video.zip"/>
<zip destfile="dist/video.zip" basedir="dist/tmp" excludes="**/.DS_Store" />

<echo>

Creating zip package...
</echo>

<exec executable="find" dir="dist">
<arg line="tmp -name '.DS_Store' -type f -delete" />
</exec>

<exec executable="ditto" dir="dist">
<arg line="-c -k -rsrc tmp video.zip" />
</exec>

<echo>
Done!
</echo>

<!-- copy properties to use by download manager -->
<copy file="library.properties" tofile="dist/video.txt" />
Expand Down

0 comments on commit cd50293

Please sign in to comment.