rheaarchived
- 40 commits
- 1 branch
- 0 tags
- updated
fix: re-sign sparkle xpc helpers for notarization, fix flaky import ui test
SignedGitea couldn't verify the signature.
Showing 2 changed files with 18 additions and 1 deletion.
.gitea/workflows/release.yml
+15 −0
@@ -62,6 +62,21 @@ jobs:6262 CODE_SIGN_INJECT_BASE_ENTITLEMENTS=NO \6363 OTHER_CODE_SIGN_FLAGS="--keychain $keychain_path --timestamp"646465 - name: Re-sign Sparkle's embedded helpers for notarization66 run: |67 # Sparkle's SPM package ships prebuilt XPC services/helper apps (Autoupdate,68 # Updater.app, Downloader.xpc, Installer.xpc) that keep their own upstream69 # signature after Xcode embeds them, instead of being re-signed with our70 # Developer ID identity — notarization rejects those as "not signed with a71 # valid Developer ID certificate" / "signature does not include a secure72 # timestamp". `--deep` re-signs the app and everything nested inside it73 # (including Sparkle's helpers) with one consistent identity/timestamp/74 # hardened-runtime, which is also why this has to happen after Build Release75 # and before the app gets verified/packaged.76 codesign --force --deep --options runtime --timestamp \77 --sign "Developer ID Application" --keychain "$keychain_path" \78 "build/Build/Products/Release/Rhea.app"796580 - name: Verify code signature6681 run: |6782 APP_PATH="build/Build/Products/Release/Rhea.app"
Tests/RheaUITests/ReceiptImportUITests.swift
+3 −1
@@ -19,7 +19,9 @@ final class ReceiptImportUITests: XCTestCase {1919 // Import selects the "Queued" filter tab, but the stub server can finish extraction2020 // before this test gets to look — switch to "All" so the row stays visible regardless2121 // of which status it's landed in by the time we check.22 app.radioButtons["All"].click()22 let allFilter = app.radioButtons["All"]23 XCTAssertTrue(allFilter.waitForExistence(timeout: 10), "main window should finish rendering before interacting")24 allFilter.click()23252426 let row = app.element(identifierPrefix: "receipt-row-")2527 XCTAssertTrue(row.waitForExistence(timeout: 15), "imported receipt should appear as a row")