mirror of
https://github.com/OpenListTeam/OpenList-Desktop.git
synced 2025-11-25 19:27:33 +08:00
fix: update WinGet package submission logic
This commit is contained in:
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -643,18 +643,7 @@ jobs:
|
|||||||
--submit
|
--submit
|
||||||
|
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
Write-Host "Update failed, attempting to create new package..."
|
Write-Host "First submit, will do manually..."
|
||||||
./wingetcreate.exe new `
|
|
||||||
--urls $x64InstallerUrl $arm64InstallerUrl `
|
|
||||||
--token $env:GITHUB_TOKEN `
|
|
||||||
--submit
|
|
||||||
|
|
||||||
if ($LASTEXITCODE -eq 0) {
|
|
||||||
Write-Host "Successfully submitted new WinGet package"
|
|
||||||
} else {
|
|
||||||
Write-Error "Failed to create new WinGet package"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
Write-Host "Successfully updated existing WinGet package"
|
Write-Host "Successfully updated existing WinGet package"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user