forked from mohzy83/NppMarkdownPanel
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakerelease.ps1
More file actions
18 lines (16 loc) · 885 Bytes
/
makerelease.ps1
File metadata and controls
18 lines (16 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if (Test-Path Release\lib\) {Remove-Item Release\lib\ -Recurse -Force}
New-Item "Release\lib\" -itemType Directory
Copy-Item -Force -Recurse -Path PanelCommon\bin\Release\*.dll -Destination Release\lib\
Copy-Item -Force -Recurse -Path Webview2Viewer\bin\Release\*.dll -Destination Release\lib\
Copy-Item -Force -Recurse -Path Webview2Viewer\bin\Release\runtimes\ -Destination Release\lib\runtimes\
function makeReleaseZip($filename, $targetPlattform)
{
$zipName = "Release\AnotherMarkdown-" + (Get-Item $filename).VersionInfo.FileVersion + "-" + $targetPlattform + ".zip"
Compress-Archive `
-Force `
-DestinationPath $zipName `
-LiteralPath $filename, 'Release\lib\', 'README.md', 'help\', 'assets\', 'License.txt'
}
makeReleaseZip "AnotherMarkdown\bin\Release\AnotherMarkdown.dll" "x86"
makeReleaseZip "AnotherMarkdown\bin\Release-x64\AnotherMarkdown.dll" "x64"
pause