Skip to content

Commit

Permalink
Zip release
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrondeau committed Jul 25, 2014
1 parent 512c705 commit 685f0a4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,26 @@ Function GetMSBuildExe {
Return $MSBuildExe
}

Function ZipFiles($Filename, $Source)
{
Add-Type -Assembly System.IO.Compression.FileSystem
$CompressionLevel = [System.IO.Compression.CompressionLevel]::Optimal
[System.IO.Compression.ZipFile]::CreateFromDirectory($Source, $Filename, $CompressionLevel, $false)
}

&(GetMSBuildExe) GoToWindow.sln `
/t:Clean`;Rebuild `
/p:Configuration=Release `
/p:AllowedReferenceRelatedFileExtensions=- `
/p:DebugSymbols=false `
/p:DebugType=None `
/clp:ErrorsOnly `
/v:m
/v:m

$ReleaseFolder = "$PSScriptRoot\Release"

If(!(Test-Path -Path $ReleaseFolder )){
New-Item -ItemType directory -Path $ReleaseFolder
}

ZipFiles "$ReleaseFolder\GoToWindow.zip" "$PSScriptRoot\GoToWindow\bin\Release"

0 comments on commit 685f0a4

Please sign in to comment.