Generates windows updates html files using ant task.

cusax-fix 4856
Damian Minkov 12 years ago
parent 999a7c5535
commit 7c8960801d

@ -651,6 +651,9 @@
<!-- before deleting try building the deltas -->
<antcall target="build-wix-delta-updates"/>
<!-- Creates updates files -->
<antcall target="build-wix-updates-files"/>
<delete dir="${light.dir}" />
<delete dir="${windows.app.dir}/tmp" />
</target>
@ -948,6 +951,58 @@
</foreach>
</target>
<!-- creates updates file, will be shown in dialog when update is
available -->
<target name="build-wix-updates-files">
<mkdir dir="${windows.app.dir}\updates"/>
<copy file="${inst.resrc}\windows\updates\sc.png"
todir="${windows.app.dir}\updates"/>
<copy file="${inst.resrc}\windows\updates\index-bottom.html"
todir="${windows.app.dir}\updates"/>
<copy file="${inst.resrc}\windows\updates\index.css"
todir="${windows.app.dir}\updates"/>
<tstamp>
<format property="current.tstamp" pattern="d MMM yyyy HH:mm:ss"
locale="en,US"/>
</tstamp>
<filter token="BUILD" value="${label}" />
<filter token="DATE" value="${current.tstamp}" />
<filter token="APP_NAME" value="${application.name}" />
<copy file="${inst.resrc}\windows\updates\index-top.html"
todir="${windows.app.dir}\updates"
overwrite="true" filtering="yes"/>
<get src="${link.update.changelog.prefix}/extended-changelog-${label}.html"
dest="changelog-${label}.html"
ignoreerrors="true"/>
<loadfile property="latest.changelog"
srcFile="changelog-${label}.html"
failonerror="false"/>
<!-- Load a default value if file with changelogs is missing -->
<condition property="latest.changelog" value="Nightly builds">
<not>
<isset property="latest.changelog"/>
</not>
</condition>
<concat destfile="${windows.app.dir}\updates\index.html">
<fileset dir="${windows.app.dir}\updates">
<include name="index-top.html"/>
</fileset>
<propertyset>
<propertyref name="latest.changelog"/>
</propertyset>
<fileset dir="${windows.app.dir}\updates">
<include name="index-bottom.html"/>
</fileset>
</concat>
<delete file="${windows.app.dir}\updates\index-top.html"/>
<delete file="${windows.app.dir}\updates\index-bottom.html"/>
<delete file="changelog-${label}.html"/>
</target>
<!-- - - - - - - - - - - BUILDING RELEASE PACKAGES - - - - - - - - - - - -->
<!-- Internal target called by the "clean target" - removes the macosx-specific file -->
<!-- we only execute if at least one (in this case the first) of the links we are

@ -0,0 +1,6 @@
</td>
</tr>
</table>
<br>
</body>
</html>

@ -0,0 +1,21 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>@APP_NAME@ (Build @BUILD@) Changelog</title>
<meta name="robots" content="anchors">
<link href="index.css" type="text/css" rel="stylesheet" media="all">
</head>
<body BGCOLOR="#FFFFFF">
<br />
<table class="dots" width="100%" border="0" cellspacing="0" cellpadding="0" summary="Two column table with heading">
<tr>
<td class="blue" colspan="2">
<h3>@APP_NAME@ build @BUILD@.</h3>
</td>
</tr>
<tr>
<td valign="top" width="50"><img src="sc.png" alt="Jitsi" border="0"></td>
<td valign="top">
<p>Build @BUILD@ for Windows generated on @DATE@.<br></p>

@ -0,0 +1,215 @@
/* Tiger Mac Help task_style.css v2.0f*/
/* <html><head><meta name="robots" content="noindex"></head></html> */
body {
margin: 2px 12px 12px
}
h1 {
font-size: 11pt;
font-family: "Lucida Grande", Arial, sans-serif;
margin-bottom: 0
}
h2 {
font-size: 9pt;
font-family: "Lucida Grande", Arial, sans-serif;
margin-top: 0;
margin-bottom: -10px
}
h3 {
font-size: 9pt;
font-family: "Lucida Grande", Arial, sans-serif;
font-weight: bold;
margin-top: -4px;
margin-bottom: -4px
}
p {
font-size: 9pt;
font-family: "Lucida Grande", Arial, sans-serif;
line-height: 12pt;
text-decoration: none
}
ol {
font-size: 9pt;
font-family: "Lucida Grande", Arial, sans-serif;
line-height: 12pt;
list-style-position: outside;
margin-top: 12px;
margin-bottom: 12px;
margin-left: -18px;
padding-left: 40px
}
ol li {
margin-top: 6px;
margin-bottom: 6px
}
ol p {
margin-top: 6px;
margin-bottom: 6px
}
ul {
font-size: 9pt;
font-family: "Lucida Grande", Arial, sans-serif;
line-height: 12pt;
list-style-type: circle;
list-style-position: outside;
margin-top: 1px;
margin-bottom: 1px;
margin-left: -24px;
padding-left: 20px
}
ul li {
margin-top: 6px;
margin-bottom: 6px
}
ul p {
margin-top: 6px;
margin-bottom: 6px
}
a {
color: #00f;
font-size: 9pt;
font-family: "Lucida Grande", Arial, sans-serif;
line-height: 12pt;
text-decoration: none
}
a:hover {
color: #00f;
font-family: "Lucida Grande", Arial, sans-serif;
text-decoration: underline
}
hr {
text-decoration: none;
border: solid 1px #bfbfbf
}
td {
padding: 6px
}
#banner { background-color: #f2f2f2; background-repeat: no-repeat; padding: -2px 6px 0; position: fixed; top: 0; left: 0; width: 100%; height: 1.2em; float: left; border: solid 1px #bfbfbf }
#caticon {
margin-top: 3px;
margin-bottom: -3px;
margin-right: 5px;
float: left;
}
#pagetitle {
margin-top: 12px;
margin-bottom: 0px;
margin-left: 40px;
width: 88%;
border: solid 1px #fff
}
#mainbox {
margin-top: 2349px;
padding-right: 6px
}
#taskbox {
background-color: #e6edff;
list-style-type: decimal;
list-style-position: outside;
margin: 12px 0;
padding: 2px 12px;
border: solid 1px #bfbfbf
}
#taskbox h2 {
margin-top: 8;
margin-bottom: -4px
}
#machelp { position: absolute; top: 2px; left: 10px }
#index { background-color: #f2f2f2; padding-right: 25px; top: 2px; right: 12px; width: auto; float: right }
#next {
position: absolute;
top: 49px;
left: 88%
}
#asindent {
margin-left: 22px;
font-size: 9pt;
font-family: Verdana, Courier, sans-serif;
}
.bread {
color: #00f;
font-size: 8pt;
margin: -9px 0 -6px
}
.leftborder {
color: #00f;
font-size: 8pt;
margin: -9px 0 -6px;
padding-top: 2px;
padding-bottom: 3px;
padding-left: 8px;
border-left: 1px solid #bfbfbf
}
.mult {
margin-top: -8px
}
.blue {
background-color: #e6edff;
margin-top: -3px;
margin-bottom: -3px;
padding-top: -3px;
padding-bottom: -3px
}
.rightfloater
{
float: right;
margin-left: 15px;
}
.rules {
border-bottom: 1px dotted #ccc
}
.dots {
border: dotted 1px #ccc
}
.seealso {
margin-top: 4px;
margin-bottom: 4px
}
code {
color: black;
font-size: 9pt;
font-family: Verdana, Courier, sans-serif;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Loading…
Cancel
Save