Commit ee89f2b

mo <email@solidware.ca>
2011-03-05 04:36:33
create target to build production.installer.
1 parent 99905c5
support/config/solidware.pfx
Binary file
support/default.build
@@ -33,6 +33,8 @@
   </target>
 
   <target name="_publish.installer" depends="compile">
+    <echo message="url: ${publish.url}" />
+    <echo message="name: ${product.name}" />
     <property name="project.file" value="${base.dir}\product\desktop.ui\desktop.ui.csproj" />
     <property name="support.url" value="http://solidware.ca/" />
     <property name="command.line" value='${project.file} /t:publish /m /p:UpdateEnabled=true /p:UpdateRequired=true /p:MinimumRequiredVersion=${version.number} /p:PublisherName="${publisher.name}" /p:ProductName="${product.name}" /p:PublishUrl=${publish.url} /p:InstallUrl=${publish.url} /p:UpdateUrl=${update.url} /p:Install=True /p:ApplicationVersion=${major}.${minor}.${build}.* /p:ApplicationRevision=${revision} /p:UpdateInterval=1 /p:UpdateIntervalUnits=Minutes /p:UpdateUrlEnabled=True /p:IsWebBootstrapper=True /p:InstallFrom=Web /p:PublishDir=${publish.dir} /p:ManifestKeyFile="${key.file}" /p:ManifestCertificateThumbprint="${key.file.thumbprint}" /p:SupportUrl=${support.url}' />
@@ -47,4 +49,21 @@
     <property name="publisher.name" value="SolidWare Inc." />
     <call target="_publish.installer" />
   </target>
+
+  <target name="load.prod.properties">
+    <if test="${file::exists('production.properties.xml')}">
+      <echo message="loading production properties..." />
+      <include buildfile="production.properties.xml" />
+    </if>
+  </target>
+
+  <target name="prod.installer" depends="load.prod.properties">
+    <echo message="prod.installer" />
+    <property name="publish.url" value="http://solidware.ca/downloads/apps/" />
+    <property name="update.url" value="${publish.url}" />
+    <property name="publish.dir" value="${tmp.dir}\public\" />
+    <property name="product.name" value="More Money" />
+    <property name="publisher.name" value="SolidWare Inc." />
+    <call target="_publish.installer" />
+  </target>
 </project>
support/production.properties.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<properties>
+  <property name="project.config" value="RELEASE" />
+  <property name="key.file" value="${config.dir}\solidware.pfx" />
+  <property name="key.file.thumbprint" value="" />
+  <property name="key.file.password" value="" />
+</properties>