Skip to content

Commit

Permalink
Remove duplicate lane
Browse files Browse the repository at this point in the history
  • Loading branch information
spencertransier committed Feb 8, 2024
1 parent c1dc8cf commit 6db7d0d
Showing 1 changed file with 0 additions and 72 deletions.
72 changes: 0 additions & 72 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -301,78 +301,6 @@ lane :build_and_upload_beta do
)
end

#############################################################################
# build_and_upload_app_store
# ---------------------------------------------------------------------------
# This lane builds the app and uploads it to the Mac App Store, optionally
# creating a GitHub release.
# ---------------------------------------------------------------------------
# Usage:
# bundle exec fastlane build_and_upload_app_store [create_github_release:<create github release>]
#
# Example:
# bundle exec fastlane build_and_upload_app_store
# bundle exec fastlane build_and_upload_app_store create_github_release:true
#############################################################################
lane :build_and_upload_app_store do |options|
configure_apply
sh('rake dependencies:pod:clean')
cocoapods

sync_code_signing(
type: 'appstore',
platform: 'macos',
# This Mac app also needs a Mac Installer Distribution certificate
additional_cert_types: ['mac_installer_distribution'],
readonly: true,
app_identifier: 'com.automattic.SimplenoteMac',
api_key_path: APP_STORE_CONNECT_API_KEY_PATH
)

archive_path = File.join(BUILD_FOLDER, 'Simplenote-Mac.xcarchive')
build_simplenote(codesign: true, archive_path: archive_path)

# TestFlight does not suport macOS but we can use deliver to upload the
# binary to the App Store by telling it to skip all the metadata,
# screenshots, etc.
upload_to_app_store(
pkg: File.join(BUILD_FOLDER, 'Simplenote.pkg'),
skip_screenshots: true,
overwrite_screenshots: false,
skip_metadata: true,
skip_app_version_update: true,
run_precheck_before_submit: false,
precheck_include_in_app_purchases: false,
skip_binary_upload: false,
force: true, # Skip verification of HTML preview file
api_key_path: APP_STORE_CONNECT_API_KEY_PATH
)

sentry_upload_dsym(
auth_token: get_required_env('SENTRY_AUTH_TOKEN'),
org_slug: 'a8c',
project_slug: 'simplenotemacos',
# At the time of writing, there's no way to explicitly configure the
# dSYM path, but build_mac_app sets it in the environment if successful.
# See `bundle exec fastlane action build_mac_app`.
dsym_path: ENV.fetch('DSYM_OUTPUT_PATH', nil)
)

# Do not create the GitHub release unless explicitly requested
if options[:create_github_release]
archive_zip_path = "#{archive_path}.zip"
zip(path: archive_path, output_path: archive_zip_path)

create_release(
repository: GITHUB_REPO,
version: ios_get_app_version(public_version_xcconfig_file: VERSION_FILE_PATH),
release_notes_file_path: File.join('Simplenote', 'Resources', 'release_notes.txt'),
release_assets: [archive_zip_path],
prerelease: options[:prerelease]
)
end
end

# Upload the localized metadata (from `fastlane/metadata/`) to App Store Connect
#
# @option [Boolean] with_screenshots (default: false) If true, will also upload the latest screenshot files to ASC
Expand Down

0 comments on commit 6db7d0d

Please sign in to comment.