forked from PowerShell/PSReadLine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakeRelease.ps1
More file actions
27 lines (19 loc) · 805 Bytes
/
MakeRelease.ps1
File metadata and controls
27 lines (19 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
add-type -AssemblyName System.IO.Compression.FileSystem
if (!(gcm msbuild -ea Ignore))
{
$env:path += ";${env:SystemRoot}\Microsoft.Net\Framework\v4.0.30319"
}
msbuild $PSScriptRoot\PSReadline\PSReadLine.sln /t:Rebuild /p:Configuration=Release
$targetDir = "${env:Temp}\PSReadline"
if (Test-Path $targetDir)
{
rmdir -re $targetDir
}
$null = mkdir $targetDir
cp $PSScriptRoot\PSReadline\bin\Release\PSReadline.dll $targetDir
cp -re $PSScriptRoot\PSReadline\en-US $targetDir
cp $PSScriptRoot\PSReadline\PSReadline.psd1 $targetDir
cp $PSScriptRoot\PSReadline\PSReadline.psm1 $targetDir
cp $PSScriptRoot\PSReadline\PSReadline.format.ps1xml $targetDir
del $PSScriptRoot\PSReadline.zip -ea Ignore
[System.IO.Compression.ZipFile]::CreateFromDirectory($targetDir, "$PSScriptRoot\PSReadline.zip")