diff --git a/Menu.png b/Menu.png index 1a35a81..a152a30 100644 Binary files a/Menu.png and b/Menu.png differ diff --git a/Release.ps1 b/Release.ps1 index 40d7ff9..3ea2ce7 100644 --- a/Release.ps1 +++ b/Release.ps1 @@ -1,12 +1,14 @@ -$ScriptDir = Split-Path -Path $PSCommandPath -Parent -$ExePath = $ScriptDir + '\OpenWithPPGUI\bin\OpenWithPPGUI.exe' -$Version = [Diagnostics.FileVersionInfo]::GetVersionInfo($ExePath).FileVersion +$ExePath = $PSScriptRoot + '\OpenWithPPGUI\bin\OpenWithPPGUI.exe' +$Version = [Diagnostics.FileVersionInfo]::GetVersionInfo($ExePath).FileVersion $DesktopDir = [Environment]::GetFolderPath('Desktop') -$TargetDir = $DesktopDir + '\OpenWithPP-' + $Version -Copy-Item $ScriptDir\OpenWithPPGUI\bin $TargetDir -Recurse +$TargetDir = $DesktopDir + '\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\*"