diff options
author | sr55 <[email protected]> | 2011-08-12 19:50:47 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-08-12 19:50:47 +0000 |
commit | c7dc5e69f2244206a41dea18a2f4c502c25bafb4 (patch) | |
tree | 474bf83947140cb57700b02dd91610d1276ed465 /win | |
parent | 8c5ee4f7af5d391fd12a6678881d64e23a401b4a (diff) |
WinGui: Added in release installer support to the msbuild file.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4169 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/build.xml | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/win/CS/build.xml b/win/CS/build.xml index 89921f719..19168497c 100644 --- a/win/CS/build.xml +++ b/win/CS/build.xml @@ -24,21 +24,26 @@ <!-- Dependencies -->
<PropertyGroup>
- <NightlyDependsOn>Nightly;NightlyPostBuildEvent</NightlyDependsOn>
+ <NightlyDependsOn>BuildRelease;NightlyPostBuildEvent</NightlyDependsOn>
+ </PropertyGroup>
+
+ <PropertyGroup>
+ <InstallDependsOn>BuildRelease;CreateReleasePostBuildEvent</InstallDependsOn>
</PropertyGroup>
<!-- Builds -->
<Target Name="NightlyBuild" DependsOnTargets="$(NightlyDependsOn)"/>
-
+ <Target Name="ReleaseInstaller" DependsOnTargets="$(InstallDependsOn)"/>
+
<!-- Build Components -->
- <Target Name="Nightly">
+ <Target Name="BuildRelease">
<MSBuild Projects ="@(ProjectsToBuild)"
ContinueOnError ="false"
Properties="Configuration=$(Configuration)" >
<Output ItemName="OutputFiles" TaskParameter="TargetOutputs"/>
</MSBuild>
</Target>
-
+
<!-- Events -->
<Target Name="NightlyPostBuildEvent">
<Exec Command="copy $(ProjectDir)Installer\MakeNightly.nsi $(ProjectDir)bin\$(Platform)\Release /Y" Condition="$(Platform) == 'x86'" />
@@ -51,4 +56,15 @@ <Exec Command="makensis $(ProjectDir)bin\$(Platform)\Release\MakeNightly64.nsi" Condition="$(Platform) == 'x64'" />
</Target>
+ <Target Name="CreateReleasePostBuildEvent">
+ <Exec Command="copy $(ProjectDir)Installer\Installer.nsi $(ProjectDir)bin\$(Platform)\Release /Y" Condition="$(Platform) == 'x86'" />
+ <Exec Command="copy $(ProjectDir)Installer\Installer64.nsi $(ProjectDir)bin\$(Platform)\Release /Y" Condition="$(Platform) == 'x64'" />
+
+ <Exec Command="copy $(ProjectDir)handbrakepineapple.ico $(ProjectDir)bin\$(Platform)\Release /Y" />
+ <Exec Command="xcopy $(ProjectDir)doc $(ProjectDir)bin\$(Platform)\Release\doc /I /Y" />
+
+ <Exec Command="makensis $(ProjectDir)bin\$(Platform)\Release\Installer.nsi" Condition="$(Platform) == 'x86'" />
+ <Exec Command="makensis $(ProjectDir)bin\$(Platform)\Release\Installer64.nsi" Condition="$(Platform) == 'x64'" />
+ </Target>
+
</Project>
\ No newline at end of file |