Menu

[r50]: / trunk / preloader / FlashMediaPlayback / build / build_rsl.xml  Maximize  Restore  History

Download this file

62 lines (51 with data), 2.3 kB

 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
<project name="Strobe.SWZ" default="create.swz" basedir="../../..">
<description>creates the signed Strobe.SWF</description>
<property file="${basedir}/preloader/FlashMediaPlayback/build/build_rsl.properties" />
<target name="create.swz" depends="digest, sign, version"/>
<target name="sign" depends="checkOS" >
<exec executable="${swz.currentdir}/sign/dat2sgn${extension}">
<arg value="${swf.file}"/>
<arg value="${swz.path}/StrobeMediaPlayback.swz" />
<arg value="${swz.currentdir}/sign/connectkey.pem"/>
<arg value="${swz.currentdir}/sign/connectcert.pem"/>
</exec>
</target>
<target name="checkOS">
<condition property="isWindows">
<os family="windows" />
</condition>
<condition property="isMac">
<os family="mac" />
</condition>
<condition property="extension" value=".exe">
<os family="windows" />
</condition>
<condition property="extension" value="">
<os family="mac" />
</condition>
</target>
<target name="digest">
<echo>Digest: ${swf.file}</echo>
<checksum file="${swf.file}" algorithm="SHA-256" property="swf.digest" />
<replaceregexp file="${swz.currentdir}/../src/FlashMediaPlayback.as"
match="STROBE_SWZ_DIGEST:String = '(.*)';"
replace="STROBE_SWZ_DIGEST:String = '${swf.digest}';" />
</target>
<target name="version">
<version.set version="${swz.version}" />
</target>
<!-- target name="version.from.digest" >
<echo>Digest: ${swf.digest}</echo>
<version.set version="${swf.digest}" />
</target -->
<!-- Define a task for setting the version in both preloader and the name of the loaded swz -->
<macrodef name="version.set">
<attribute name="version"/>
<sequential>
<replaceregexp file="${swz.currentdir}/../src/FlashMediaPlayback.as"
match="STROBE_SWZ_URL:String = '(.*)'"
replace="STROBE_SWZ_URL:String = 'StrobeMediaPlayback_@{version}_for_fp${flash.target.player.base}.swz'"/>
<move file="${swz.path}/StrobeMediaPlayback.swz" tofile="${fmp.dir}/StrobeMediaPlayback_@{version}_for_fp${flash.target.player.base}.swz" />
</sequential>
</macrodef>
</project>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.