Skip to content

Commit 4624929

Browse files
committed
Add script for release build
1 parent 75cfcd7 commit 4624929

File tree

6 files changed

+22
-6
lines changed

6 files changed

+22
-6
lines changed

build.proj

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ of patent rights can be found in the PATENTS file in the same directory.
1111
<PropertyGroup>
1212
<Major>0</Major>
1313
<Minor>1</Minor>
14-
<Build>0-dev</Build>
14+
<Build>0</Build>
1515
<Revision>0</Revision>
1616
<DevBuild>true</DevBuild>
1717
<DevNuGetServer>http://reactjs.net/dev/packages/</DevNuGetServer>
@@ -23,6 +23,7 @@ of patent rights can be found in the PATENTS file in the same directory.
2323
<PackageAssemblies Include="React" />
2424
<PackageAssemblies Include="React.Web" />
2525
<PackageAssemblies Include="React.Web.Mvc4" />
26+
<PackageAssemblies Include="React.Web.Mvc3" />
2627
<PackageAssemblies Include="System.Web.Optimization.React" />
2728
<PackageAssemblies Include="Cassette.React" />
2829
</ItemGroup>
@@ -52,8 +53,9 @@ of patent rights can be found in the PATENTS file in the same directory.
5253
<Time Format="yyyyMMdd-HHmm">
5354
<Output TaskParameter="FormattedTime" PropertyName="Date" />
5455
</Time>
55-
<PropertyGroup>
56-
<Build>$(Build)-$(Date)</Build>
56+
<!-- Prepend date to build version if a dev build-->
57+
<PropertyGroup Condition="$(BuildType) != 'Release'">
58+
<Build>$(Build)-dev-$(Date)</Build>
5759
</PropertyGroup>
5860
<AssemblyInfo
5961
CodeLanguage="CS"
@@ -96,10 +98,18 @@ of patent rights can be found in the PATENTS file in the same directory.
9698
</Target>
9799

98100
<Target Name="Push">
99-
<!-- Push packages to dev build server -->
101+
<!-- For dev -->
100102
<Exec
103+
Condition="$(BuildType) != 'Release'"
101104
WorkingDirectory="$(MSBuildProjectDirectory)"
102105
Command="tools\NuGet\nuget.exe push $(PackageOutputDir)\*.symbols.nupkg -Source $(DevNuGetServer) -NonInteractive"
103106
/>
107+
108+
<!-- For release -->
109+
<Exec
110+
Condition="$(BuildType) == 'Release'"
111+
WorkingDirectory="$(MSBuildProjectDirectory)"
112+
Command="tools\NuGet\nuget.exe push $(PackageOutputDir)\*.nupkg -NonInteractive"
113+
/>
104114
</Target>
105115
</Project>

dev-build-push.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@echo off
2-
"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /t:Package;Push
2+
"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /t:Package;Push /p:BuildType=Dev
33
pause

dev-build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@echo off
2-
"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj
2+
"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /p:BuildType=Dev
33
pause

release-build-push.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /t:Package;Push /p:BuildType=Release
3+
pause

release-build.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /p:BuildType=Release
3+
pause

src/release-build.bat

Whitespace-only changes.

0 commit comments

Comments
 (0)