Skip to content

Commit

Permalink
Changed batch files to build setup and zip files.
Browse files Browse the repository at this point in the history
  • Loading branch information
rstam committed Aug 29, 2012
1 parent a458636 commit 448c9f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
5 changes: 3 additions & 2 deletions Installer/makeinstaller.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@ECHO OFF
SET FullVersion=1.5.0.4566
SET Version=1.5
SET FullVersion=1.6.0.4624
SET Version=1.6
SET Configuration=Release
SET SourceBase=..

Expand All @@ -15,3 +15,4 @@ echo Building installer
%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe CSharpDriverInstaller.wixproj

echo Done Building installer v%Version%
pause
15 changes: 7 additions & 8 deletions packages/makepackages.bat
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
set VER=1.5.0.4566
set VER=1.6.0.4624
set PACKAGES=packages-%VER%

echo Creating %PACKAGES%
pause

rmdir /s /q %PACKAGES%
mkdir %PACKAGES%
xcopy /f /d /y ..\DriverSetup\Release\CSharpDriver.msi %PACKAGES%\
ren %PACKAGES%\CSharpDriver.msi CSharpDriver-%VER%.msi
xcopy /f /d /y ..\Installer\bin\Release\CSharpDriver-%VER%.msi %PACKAGES%\

del "Release Notes v.1.5.txt"
xcopy /f /y "..\Release Notes\Release Notes v1.5.md"
ren "Release Notes v1.5.md" "Release Notes v1.5.txt"
del "Release Notes v.1.6.txt"
xcopy /f /y "..\Release Notes\Release Notes v1.6.md"
ren "Release Notes v1.6.md" "Release Notes v1.6.txt"

set ZIPEXE="C:\Program Files\7-Zip\7z.exe"
set ZIPFILE=%PACKAGES%\CSharpDriver-%VER%.zip
%ZIPEXE% a %ZIPFILE% ..\License.txt
%ZIPEXE% a %ZIPFILE% "Release Notes v1.5.txt"
%ZIPEXE% a %ZIPFILE% "Release Notes v1.6.txt"
%ZIPEXE% a %ZIPFILE% ..\Driver\bin\Release\MongoDB.Bson.dll
%ZIPEXE% a %ZIPFILE% ..\Driver\bin\Release\MongoDB.Bson.pdb
%ZIPEXE% a %ZIPFILE% ..\Driver\bin\Release\MongoDB.Bson.xml
Expand All @@ -25,7 +24,7 @@ set ZIPFILE=%PACKAGES%\CSharpDriver-%VER%.zip
%ZIPEXE% a %ZIPFILE% ..\Driver\bin\Release\MongoDB.Driver.xml
%ZIPEXE% a %ZIPFILE% ..\Help\CSharpDriverDocs.chm

del "Release Notes v1.5.txt"
del "Release Notes v1.6.txt"

echo Created %PACKAGES%
pause

0 comments on commit 448c9f1

Please sign in to comment.