From 372138d9a144ee46e317223f7f74bce8f6482ffc Mon Sep 17 00:00:00 2001 From: oliver Date: Thu, 8 Oct 2026 21:11:54 +0800 Subject: [PATCH] Make Forgejo asset upload resilient to schannel revocation-offline errors. Co-authored-by: Cursor --- packaging/publish_forgejo_release.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/publish_forgejo_release.ps1 b/packaging/publish_forgejo_release.ps1 index 9e15fd5..0d633af 100644 --- a/packaging/publish_forgejo_release.ps1 +++ b/packaging/publish_forgejo_release.ps1 @@ -112,7 +112,8 @@ function Upload-ForgejoAsset { $url = "$apiBase/releases/$relId/assets" $curl = Get-Command curl.exe -ErrorAction SilentlyContinue if (-not $curl) { throw "curl.exe required for asset upload" } - & $curl.Source -f -sS -X POST ` + # --ssl-no-revoke: schannel CRYPT_E_REVOCATION_OFFLINE often fails via proxy/offline CA. + & $curl.Source -f -sS --ssl-no-revoke -X POST ` -H "Authorization: token $Token" ` -F "attachment=@$Path" ` $url