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.
This commit is contained in:
Arkadiusz Fal
2026-07-18 18:10:48 +02:00
parent f3f45fdfdc
commit 90a0c6fd1a

View File

@@ -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"