mirror of
https://github.com/Molunerfinn/PicGo.git
synced 2026-09-20 03:16:37 +00:00
🐛 Fix: signed path extract error (#1407)
This commit is contained in:
@@ -201,9 +201,34 @@ jobs:
|
||||
- name: Replace Unsigned with Signed & Update latest.yml
|
||||
shell: powershell
|
||||
run: |
|
||||
# Move signed artifacts to dist folder, overwriting existing ones
|
||||
Move-Item -Path "signed-artifact\*.exe" -Destination "dist\" -Force
|
||||
Write-Host "✅ Signed artifacts moved to dist folder."
|
||||
Write-Host "[Info] Contents of signed-artifact:"
|
||||
Get-ChildItem -Path "signed-artifact" -Recurse | Format-Table FullName, Length
|
||||
|
||||
# If returned zip files, extract them first
|
||||
$zips = Get-ChildItem -Path "signed-artifact\*.zip" -ErrorAction SilentlyContinue
|
||||
if ($zips) {
|
||||
Write-Host "[Info] Found zip file(s), extracting..."
|
||||
foreach ($zip in $zips) {
|
||||
Expand-Archive -Path $zip.FullName -DestinationPath "signed-artifact" -Force
|
||||
Remove-Item -Path $zip.FullName -Force
|
||||
Write-Host "[Done] Extracted: $($zip.Name)"
|
||||
}
|
||||
Write-Host "[Info] Contents after extraction:"
|
||||
Get-ChildItem -Path "signed-artifact" -Recurse | Format-Table FullName, Length
|
||||
}
|
||||
|
||||
$exeFiles = Get-ChildItem -Path "signed-artifact\*.exe" -ErrorAction SilentlyContinue
|
||||
|
||||
if ($exeFiles) {
|
||||
foreach ($exe in $exeFiles) {
|
||||
Move-Item -Path $exe.FullName -Destination "dist\" -Force
|
||||
Write-Host "[Done] Moved signed artifact: $($exe.Name)"
|
||||
}
|
||||
} else {
|
||||
Write-Host "[Error] No .exe files found in signed-artifact!"
|
||||
Get-ChildItem -Path "signed-artifact" -Recurse
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Run the Node.js script to update latest.yml
|
||||
node scripts/update-win-yaml.js
|
||||
@@ -297,6 +322,7 @@ jobs:
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: artifacts
|
||||
pattern: PicGo-*
|
||||
|
||||
- name: List artifacts
|
||||
run: ls -laR artifacts/
|
||||
|
||||
Reference in New Issue
Block a user