diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 7195b5ca..7bf82dd0 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -34,6 +34,7 @@ platform :ios do key_filepath: DEVELOPER_KEY_FILEPATH ) + build = get_build_number(xcodeproj: "Yattee.xcodeproj") version = get_version_number( xcodeproj: "Yattee.xcodeproj", target: "Yattee (iOS)" @@ -41,7 +42,7 @@ platform :ios do build_app( scheme: "Yattee (iOS)", - output_directory: "fastlane/builds/#{version}-#{lane_context[SharedValues::BUILD_NUMBER]}/iOS", + output_directory: "fastlane/builds/#{version}-#{build}/iOS", output_name: "Yattee-#{version}-iOS.ipa", ) @@ -60,6 +61,7 @@ platform :tvos do key_filepath: DEVELOPER_KEY_FILEPATH ) + build = get_build_number(xcodeproj: "Yattee.xcodeproj") version = get_version_number( xcodeproj: "Yattee.xcodeproj", target: "Yattee (tvOS)" @@ -67,7 +69,7 @@ platform :tvos do build_app( scheme: "Yattee (tvOS)", - output_directory: "fastlane/builds/#{version}-#{lane_context[SharedValues::BUILD_NUMBER]}/tvOS", + output_directory: "fastlane/builds/#{version}-#{build}/tvOS", output_name: "Yattee-#{version}-tvOS.ipa", ) @@ -86,6 +88,7 @@ platform :mac do key_filepath: DEVELOPER_KEY_FILEPATH ) + build = get_build_number(xcodeproj: "Yattee.xcodeproj") version = get_version_number( xcodeproj: "Yattee.xcodeproj", target: "Yattee (macOS)" @@ -93,7 +96,7 @@ platform :mac do build_app( scheme: "Yattee (macOS)", - output_directory: "fastlane/builds/#{version}-#{lane_context[SharedValues::BUILD_NUMBER]}/macOS", + output_directory: "fastlane/builds/#{version}-#{build}/macOS", output_name: "Yattee-#{version}-macOS.app", )