diff --git a/fastlane/Fastfile b/fastlane/Fastfile index a1d7355..64a0c2c 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -114,13 +114,19 @@ platform :mac do end UI.message "Output is #{result.inspect}" - return status.exitstatus end # Debugging sh "ls", "-lah", "../build" sh "ls", "-lah", "/Volumes" + output_dmg_path = "build/AutoClicker v#{lane_context[SharedValues::RELEASE_NEXT_VERSION]}-beta-#{lane_context[SharedValues::RELEASE_LAST_TAG_HASH]}.dmg" + + unless File.exist?(output_dmg_path) + UI.error("File does not exist: #{output_dmg_path}") + error!("Exiting lane due to missing output DMG!") + end + # https://docs.fastlane.tools/actions/set_github_release/#set_github_release set_github_release( repository_name: "othyn/macos-auto-clicker", @@ -131,7 +137,7 @@ platform :mac do is_prerelease: true, commitish: "main", upload_assets: [ - "build/AutoClicker v#{lane_context[SharedValues::RELEASE_NEXT_VERSION]}-beta-#{lane_context[SharedValues::RELEASE_LAST_TAG_HASH]}.dmg", + output_dmg_path, "build/AutoClicker.app.dSYM.zip" ] )