From 1af4c7a748c11be01474421516b8fce0f12b8b39 Mon Sep 17 00:00:00 2001 From: Semyon Bezrukov Date: Thu, 12 Oct 2023 14:25:02 +0300 Subject: [PATCH] Fix windows desktop help paths (#996) --- win-linux/package/windows/make_zip.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/win-linux/package/windows/make_zip.ps1 b/win-linux/package/windows/make_zip.ps1 index 4313b6fbf..46f052be6 100644 --- a/win-linux/package/windows/make_zip.ps1 +++ b/win-linux/package/windows/make_zip.ps1 @@ -40,11 +40,11 @@ Copy-Item -Path "$BrandingDir\data\visual_elements_icon_*" ` # Move Help Get-ChildItem "$BuildDir\$DesktopDir\editors\web-apps\apps\*\main\resources\help" -Directory ` | ForEach-Object { - $src = Resolve-Path -Relative $_.FullName - $dst = $src -replace "$DesktopDir", "$DesktopHelpDir" - Write-Host "Move: $src > $dst" -ForegroundColor Yellow - New-Item $dst -ItemType Directory -Force | Out-Null - Move-Item -Path $src -Destination $dst -Force + $src = $(Split-Path $_.FullName -Parent | Resolve-Path -Relative) + $dst = $src.Replace("\$DesktopDir\","\$DesktopHelpDir\") + Write-Host "Move: $src\help > $dst" -ForegroundColor Yellow + New-Item "$dst" -ItemType Directory | Out-Null + Move-Item -Path "$src\help" -Destination "$dst" } if ( $DesktopDir ) {