From 90a0c6fd1aacd75855eef8c33d06ee7374b450f3 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 18 Jul 2026 18:10:48 +0200 Subject: [PATCH] Fix doubled fastlane/ prefix in notarize lane shell paths fastlane's sh runs from the fastlane/ directory, so the stapler/ditto/ hdiutil commands resolved fastlane/builds/... to fastlane/fastlane/ builds/... and failed after successful notarization. --- fastlane/Fastfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 790d807a..0dda5695 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -350,10 +350,12 @@ platform :mac do # Staple the notarization ticket so Gatekeeper doesn't need to phone home # when the user first launches from Sparkle/DMG. - sh "xcrun stapler staple 'fastlane/builds/#{version}-#{build}/macOS/#{APP_NAME}.app'" + # NOTE: sh runs from the fastlane/ directory, so paths here are relative + # to it (no fastlane/ prefix), unlike action arguments above. + sh "xcrun stapler staple 'builds/#{version}-#{build}/macOS/#{APP_NAME}.app'" # Package the stapled .app into a .zip (Sparkle) and .dmg (Homebrew / direct). - dir = "fastlane/builds/#{version}-#{build}/macOS" + dir = "builds/#{version}-#{build}/macOS" app = "#{dir}/#{APP_NAME}.app" zip = "#{dir}/#{APP_NAME}-#{version}-macOS.zip" dmg = "#{dir}/#{APP_NAME}-#{version}-macOS.dmg"