2022-08-15 14:27:38 +00:00
|
|
|
# This file contains the fastlane.tools configuration
|
|
|
|
# You can find the documentation at https://docs.fastlane.tools
|
|
|
|
#
|
|
|
|
# For a list of all available actions, check out
|
|
|
|
#
|
|
|
|
# https://docs.fastlane.tools/actions
|
|
|
|
#
|
|
|
|
# For a list of all available plugins, check out
|
|
|
|
#
|
|
|
|
# https://docs.fastlane.tools/plugins/available-plugins
|
|
|
|
#
|
|
|
|
|
|
|
|
# Uncomment the line if you want fastlane to automatically update itself
|
|
|
|
# update_fastlane
|
|
|
|
|
|
|
|
DEVELOPER_KEY_ID = ENV['DEVELOPER_KEY_ID']
|
|
|
|
DEVELOPER_KEY_ISSUER_ID = ENV['DEVELOPER_KEY_ISSUER_ID']
|
|
|
|
DEVELOPER_KEY_FILEPATH = ENV['DEVELOPER_KEY_FILEPATH']
|
|
|
|
|
|
|
|
add_extra_platforms(platforms: [:tvos])
|
|
|
|
|
|
|
|
before_all do
|
|
|
|
update_fastlane
|
|
|
|
end
|
|
|
|
|
|
|
|
platform :ios do
|
|
|
|
desc "Push a new beta build to TestFlight"
|
|
|
|
lane :beta do
|
|
|
|
app_store_connect_api_key(
|
|
|
|
key_id: DEVELOPER_KEY_ID,
|
|
|
|
issuer_id: DEVELOPER_KEY_ISSUER_ID,
|
|
|
|
key_filepath: DEVELOPER_KEY_FILEPATH
|
|
|
|
)
|
|
|
|
|
2022-08-15 14:55:18 +00:00
|
|
|
build = get_build_number(xcodeproj: "Yattee.xcodeproj")
|
2022-08-15 14:27:38 +00:00
|
|
|
version = get_version_number(
|
|
|
|
xcodeproj: "Yattee.xcodeproj",
|
|
|
|
target: "Yattee (iOS)"
|
|
|
|
)
|
|
|
|
|
|
|
|
build_app(
|
|
|
|
scheme: "Yattee (iOS)",
|
2022-08-15 14:55:18 +00:00
|
|
|
output_directory: "fastlane/builds/#{version}-#{build}/iOS",
|
2022-08-15 14:27:38 +00:00
|
|
|
output_name: "Yattee-#{version}-iOS.ipa",
|
2022-11-13 22:57:51 +00:00
|
|
|
xcargs: "-allowProvisioningUpdates"
|
2022-08-15 14:27:38 +00:00
|
|
|
)
|
|
|
|
|
2022-08-15 15:14:09 +00:00
|
|
|
altool(
|
|
|
|
altool_app_type: "ios",
|
|
|
|
altool_ipa_path: lane_context[SharedValues::IPA_OUTPUT_PATH]
|
|
|
|
)
|
2022-08-15 14:27:38 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
platform :tvos do
|
|
|
|
desc "Push a new beta build to TestFlight"
|
|
|
|
lane :beta do
|
|
|
|
app_store_connect_api_key(
|
|
|
|
key_id: DEVELOPER_KEY_ID,
|
|
|
|
issuer_id: DEVELOPER_KEY_ISSUER_ID,
|
|
|
|
key_filepath: DEVELOPER_KEY_FILEPATH
|
|
|
|
)
|
|
|
|
|
2022-08-15 14:55:18 +00:00
|
|
|
build = get_build_number(xcodeproj: "Yattee.xcodeproj")
|
2022-08-15 14:27:38 +00:00
|
|
|
version = get_version_number(
|
|
|
|
xcodeproj: "Yattee.xcodeproj",
|
|
|
|
target: "Yattee (tvOS)"
|
|
|
|
)
|
|
|
|
|
|
|
|
build_app(
|
|
|
|
scheme: "Yattee (tvOS)",
|
2022-08-15 14:55:18 +00:00
|
|
|
output_directory: "fastlane/builds/#{version}-#{build}/tvOS",
|
2022-08-15 14:27:38 +00:00
|
|
|
output_name: "Yattee-#{version}-tvOS.ipa",
|
2022-11-13 22:57:51 +00:00
|
|
|
xcargs: "-allowProvisioningUpdates"
|
2022-08-15 14:27:38 +00:00
|
|
|
)
|
|
|
|
|
2022-08-15 15:14:09 +00:00
|
|
|
altool(
|
|
|
|
altool_app_type: "tvos",
|
|
|
|
altool_ipa_path: lane_context[SharedValues::IPA_OUTPUT_PATH]
|
|
|
|
)
|
2022-08-15 14:27:38 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
platform :mac do
|
|
|
|
desc "Push a new beta build to TestFlight"
|
|
|
|
lane :beta do
|
|
|
|
app_store_connect_api_key(
|
|
|
|
key_id: DEVELOPER_KEY_ID,
|
|
|
|
issuer_id: DEVELOPER_KEY_ISSUER_ID,
|
|
|
|
key_filepath: DEVELOPER_KEY_FILEPATH
|
|
|
|
)
|
|
|
|
|
2022-08-15 14:55:18 +00:00
|
|
|
build = get_build_number(xcodeproj: "Yattee.xcodeproj")
|
2022-08-15 14:27:38 +00:00
|
|
|
version = get_version_number(
|
|
|
|
xcodeproj: "Yattee.xcodeproj",
|
|
|
|
target: "Yattee (macOS)"
|
|
|
|
)
|
|
|
|
|
|
|
|
build_app(
|
|
|
|
scheme: "Yattee (macOS)",
|
2022-08-15 14:55:18 +00:00
|
|
|
output_directory: "fastlane/builds/#{version}-#{build}/macOS",
|
2022-08-15 14:27:38 +00:00
|
|
|
output_name: "Yattee-#{version}-macOS.app",
|
2022-11-13 22:57:51 +00:00
|
|
|
xcargs: "-allowProvisioningUpdates"
|
2022-08-15 14:27:38 +00:00
|
|
|
)
|
|
|
|
|
2022-08-15 15:14:09 +00:00
|
|
|
altool(
|
|
|
|
altool_app_type: "macos",
|
|
|
|
altool_ipa_path: lane_context[SharedValues::PKG_OUTPUT_PATH]
|
|
|
|
)
|
2022-08-15 14:27:38 +00:00
|
|
|
end
|
|
|
|
end
|