fix being used by
| another process
This commit is contained in:
@@ -988,6 +988,7 @@ jobs:
|
|||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
Set-Location rustdesk
|
Set-Location rustdesk
|
||||||
|
|
||||||
$runnerRes = Get-ChildItem `
|
$runnerRes = Get-ChildItem `
|
||||||
@@ -998,26 +999,28 @@ jobs:
|
|||||||
Select-Object -First 1
|
Select-Object -First 1
|
||||||
|
|
||||||
if ($runnerRes) {
|
if ($runnerRes) {
|
||||||
Copy-Item $runnerRes.FullName `
|
Copy-Item `
|
||||||
|
$runnerRes.FullName `
|
||||||
".\libs\portable\Runner.res" `
|
".\libs\portable\Runner.res" `
|
||||||
-Force
|
-Force
|
||||||
}
|
}
|
||||||
|
|
||||||
$manifest = ".\res\manifest.xml"
|
$manifest = ".\res\manifest.xml"
|
||||||
$tempManifest = ".\res\manifest.xml.tmp"
|
$tempManifest = ".\res\manifest.xml.tmp"
|
||||||
|
|
||||||
Get-Content $manifest |
|
Get-Content $manifest |
|
||||||
Where-Object { $_ -notmatch "dpiAware" } |
|
Where-Object { $_ -notmatch "dpiAware" } |
|
||||||
Set-Content `
|
Set-Content `
|
||||||
$tempManifest `
|
$tempManifest `
|
||||||
-Encoding utf8
|
-Encoding utf8
|
||||||
|
|
||||||
Move-Item `
|
Move-Item `
|
||||||
$tempManifest `
|
$tempManifest `
|
||||||
$manifest `
|
$manifest `
|
||||||
-Force
|
-Force
|
||||||
|
|
||||||
Push-Location ".\libs\portable"
|
Push-Location ".\libs\portable"
|
||||||
|
|
||||||
try {
|
try {
|
||||||
python -m pip install `
|
python -m pip install `
|
||||||
--disable-pip-version-check `
|
--disable-pip-version-check `
|
||||||
@@ -1055,15 +1058,28 @@ jobs:
|
|||||||
|
|
||||||
$output = Join-Path ".\dist" $outputName
|
$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() +
|
$hash.Hash.ToLower() +
|
||||||
" " +
|
" " +
|
||||||
$outputName
|
$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
|
- name: Upload Windows build
|
||||||
uses: https://github.com/actions/upload-artifact@v7
|
uses: https://github.com/actions/upload-artifact@v7
|
||||||
|
|||||||
Reference in New Issue
Block a user