-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathRelease.ps1
More file actions
15 lines (11 loc) · 683 Bytes
/
Release.ps1
File metadata and controls
15 lines (11 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ExePath = $PSScriptRoot + '\OpenWithPPGUI\bin\OpenWithPPGUI.exe'
$Version = [Diagnostics.FileVersionInfo]::GetVersionInfo($ExePath).FileVersion
$workDir = 'D:\Work'
$TargetDir = $workDir + '\OpenWithPP-' + $Version
Copy-Item $PSScriptRoot\OpenWithPPGUI\bin $TargetDir -Recurse
Remove-Item $TargetDir\OpenWithPPShellExtension.pdb -ErrorAction Ignore
Remove-Item $TargetDir\OpenWithPPShellExtension.lib -ErrorAction Ignore
Remove-Item $TargetDir\OpenWithPPShellExtension.exp -ErrorAction Ignore
Remove-Item $TargetDir\OpenWithPPShellExtension.ilk -ErrorAction Ignore
& 'C:\Program Files\7-Zip\7z.exe' a -t7z -mx9 "$TargetDir.7z" -r "$TargetDir\*"
Start-Process $workDir