Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
142 lines
4.4 KiB
Ruby
142 lines
4.4 KiB
Ruby
# Menivor — iOS release automation (local store builds, no EAS cloud)
|
|
#
|
|
# Builds a signed App Store .ipa locally and uploads it to TestFlight, using the
|
|
# App Store Connect API key for both code signing (cert + sigh) and upload — no
|
|
# Apple ID password or 2FA needed. Distribution cert + App Store profile are
|
|
# fetched/created on this machine automatically (API-key managed signing).
|
|
#
|
|
# Modeled on the proven CalDesk / Fast Reader pipeline. Full docs:
|
|
# /Users/arhansubasi/products/LOCAL-IOS-BUILDS.md
|
|
#
|
|
# This app lives in apps/mobile of an npm workspace (deps hoisted to the repo
|
|
# root) and is Expo SDK 54 (no expo-modules-jsi package → no Swift 6 patch).
|
|
#
|
|
# Prereqs (order matters), run from the repo root then apps/mobile:
|
|
# npm install # (repo root) hoisted install
|
|
# npx expo prebuild -p ios --no-install # (apps/mobile) generate/refresh ios/
|
|
# (cd ios && pod install)
|
|
#
|
|
# Usage (from apps/mobile):
|
|
# fastlane ios beta # next TestFlight build number, build + upload
|
|
# fastlane ios beta build:7 # force a specific build number
|
|
# fastlane ios upload_only # re-upload build/Menivor.ipa (no rebuild)
|
|
# fastlane ios check_build # print latest TestFlight build number
|
|
|
|
default_platform(:ios)
|
|
|
|
WORKSPACE = "ios/Menivor.xcworkspace"
|
|
SCHEME = "Menivor"
|
|
APP_ID = "com.arhansuba.menivor"
|
|
TEAM_ID = "947G2G2JXJ"
|
|
ASC_KEY_ID = "98T8ZPPNGD"
|
|
ASC_ISSUER_ID = "a57e5464-0804-487d-baad-b089a6ef327f"
|
|
ASC_KEY_PATH = File.expand_path("~/.appstore-keys/AuthKey_98T8ZPPNGD.p8")
|
|
XCODEPROJ = "ios/Menivor.xcodeproj"
|
|
|
|
def asc_api_key
|
|
unless File.file?(ASC_KEY_PATH)
|
|
UI.user_error!("ASC API key not found at #{ASC_KEY_PATH}")
|
|
end
|
|
app_store_connect_api_key(
|
|
key_id: ASC_KEY_ID,
|
|
issuer_id: ASC_ISSUER_ID,
|
|
key_filepath: ASC_KEY_PATH,
|
|
in_house: false,
|
|
)
|
|
end
|
|
|
|
platform :ios do
|
|
desc "Build a signed App Store build and upload it to TestFlight"
|
|
lane :beta do |options|
|
|
api_key = asc_api_key
|
|
|
|
# The store is the source of truth for build numbers (EAS used remote
|
|
# versioning), so derive the next number from TestFlight, not the stale
|
|
# local project value.
|
|
next_build =
|
|
if options[:build]
|
|
options[:build].to_i
|
|
else
|
|
latest = latest_testflight_build_number(
|
|
api_key: api_key,
|
|
app_identifier: APP_ID,
|
|
initial_build_number: 0,
|
|
)
|
|
latest.to_i + 1
|
|
end
|
|
UI.message("Using build number #{next_build}")
|
|
|
|
increment_build_number(
|
|
xcodeproj: XCODEPROJ,
|
|
build_number: next_build,
|
|
)
|
|
|
|
# API-key managed signing: pull (or create) an Apple Distribution cert and
|
|
# an App Store provisioning profile onto this machine.
|
|
cert(
|
|
api_key: api_key,
|
|
output_path: "fastlane/signing",
|
|
)
|
|
sigh(
|
|
api_key: api_key,
|
|
app_identifier: APP_ID,
|
|
output_path: "fastlane/signing",
|
|
adhoc: false,
|
|
)
|
|
profile_name = lane_context[SharedValues::SIGH_NAME]
|
|
|
|
update_code_signing_settings(
|
|
path: XCODEPROJ,
|
|
use_automatic_signing: false,
|
|
team_id: TEAM_ID,
|
|
code_sign_identity: "Apple Distribution",
|
|
bundle_identifier: APP_ID,
|
|
profile_name: profile_name,
|
|
)
|
|
|
|
build_app(
|
|
workspace: WORKSPACE,
|
|
scheme: SCHEME,
|
|
configuration: "Release",
|
|
export_method: "app-store",
|
|
output_directory: "build",
|
|
output_name: "Menivor.ipa",
|
|
export_options: {
|
|
provisioningProfiles: { APP_ID => profile_name },
|
|
},
|
|
xcargs: "-allowProvisioningUpdates",
|
|
)
|
|
|
|
upload_to_testflight(
|
|
api_key: api_key,
|
|
app_identifier: APP_ID,
|
|
skip_waiting_for_build_processing: true,
|
|
skip_submission: true,
|
|
)
|
|
|
|
UI.success("Uploaded build #{next_build} to TestFlight. Select it in App Store Connect once processing finishes.")
|
|
end
|
|
|
|
desc "Upload an already-built IPA to TestFlight (re-run after a dropped upload, no rebuild)"
|
|
lane :upload_only do
|
|
upload_to_testflight(
|
|
api_key: asc_api_key,
|
|
app_identifier: APP_ID,
|
|
ipa: "build/Menivor.ipa",
|
|
skip_waiting_for_build_processing: true,
|
|
skip_submission: true,
|
|
)
|
|
UI.success("Uploaded build/Menivor.ipa to TestFlight.")
|
|
end
|
|
|
|
desc "Print latest TestFlight build number + state"
|
|
lane :check_build do
|
|
n = latest_testflight_build_number(
|
|
api_key: asc_api_key,
|
|
app_identifier: APP_ID,
|
|
initial_build_number: 0,
|
|
)
|
|
UI.success("LATEST_TF_BUILD=#{n}")
|
|
end
|
|
end
|