fix being used by
| another process
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user