mirror of
https://github.com/yattee/yattee.git
synced 2026-07-19 05:42:04 +00:00
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:
@@ -350,10 +350,12 @@ platform :mac do
|
|||||||
|
|
||||||
# Staple the notarization ticket so Gatekeeper doesn't need to phone home
|
# Staple the notarization ticket so Gatekeeper doesn't need to phone home
|
||||||
# when the user first launches from Sparkle/DMG.
|
# 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).
|
# 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"
|
app = "#{dir}/#{APP_NAME}.app"
|
||||||
zip = "#{dir}/#{APP_NAME}-#{version}-macOS.zip"
|
zip = "#{dir}/#{APP_NAME}-#{version}-macOS.zip"
|
||||||
dmg = "#{dir}/#{APP_NAME}-#{version}-macOS.dmg"
|
dmg = "#{dir}/#{APP_NAME}-#{version}-macOS.dmg"
|
||||||
|
|||||||
Reference in New Issue
Block a user