From 3e7086d11e7c47e0924602f3e4642cc47be11659 Mon Sep 17 00:00:00 2001 From: GandC Date: Sun, 13 Sep 2026 16:31:17 +0300 Subject: [PATCH] fix being used by | another process --- .gitea/workflows/windows.yml | 46 ++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/windows.yml b/.gitea/workflows/windows.yml index b55fcb6..40690b4 100644 --- a/.gitea/workflows/windows.yml +++ b/.gitea/workflows/windows.yml @@ -988,6 +988,7 @@ jobs: shell: pwsh run: | $ErrorActionPreference = "Stop" + Set-Location rustdesk $runnerRes = Get-ChildItem ` @@ -998,26 +999,28 @@ jobs: Select-Object -First 1 if ($runnerRes) { - Copy-Item $runnerRes.FullName ` + Copy-Item ` + $runnerRes.FullName ` ".\libs\portable\Runner.res" ` -Force } - $manifest = ".\res\manifest.xml" - $tempManifest = ".\res\manifest.xml.tmp" + $manifest = ".\res\manifest.xml" + $tempManifest = ".\res\manifest.xml.tmp" - Get-Content $manifest | - Where-Object { $_ -notmatch "dpiAware" } | - Set-Content ` - $tempManifest ` - -Encoding utf8 + Get-Content $manifest | + Where-Object { $_ -notmatch "dpiAware" } | + Set-Content ` + $tempManifest ` + -Encoding utf8 - Move-Item ` - $tempManifest ` - $manifest ` - -Force + Move-Item ` + $tempManifest ` + $manifest ` + -Force Push-Location ".\libs\portable" + try { python -m pip install ` --disable-pip-version-check ` @@ -1055,15 +1058,28 @@ jobs: $output = Join-Path ".\dist" $outputName - Copy-Item $packer $output -Force + Copy-Item ` + $packer ` + $output ` + -Force - $hash = Get-FileHash $output -Algorithm SHA256 + $hash = Get-FileHash ` + $output ` + -Algorithm SHA256 ( $hash.Hash.ToLower() + " " + $outputName - ) | Set-Content "$output.sha256" -Encoding ASCII + ) | Set-Content ` + "$output.sha256" ` + -Encoding ASCII + + Write-Host "" + Write-Host "============================================" + Write-Host "Windows portable build completed successfully" + Write-Host "============================================" + Write-Host $output - name: Upload Windows build uses: https://github.com/actions/upload-artifact@v7