# appstore-kit Scripts shared by the iOS apps. Check it out beside the apps (`~/git/krz/appstore-kit`) or point `APPSTORE_KIT` at it. ## release-ios.sh Archives an iOS or macOS app, checks the archive's version and build against the project, and exports or uploads it to App Store Connect. Each app's `scripts/release-ios.sh` sets its options and sources this file; the options are listed at the top of it. Run from a clean `main`. ```sh #!/bin/sh PUBLISH="${MOONRISE_PUBLISH:-1}" name=Moonrise project=App/Moonrise.xcodeproj scheme=Moonrise spec=App/project.yml . "${APPSTORE_KIT:-$(dirname "$0")/../../appstore-kit}/release-ios.sh" ``` Extra checks go in a `preflight()` function defined before the `.` line. Set `platform=macos` to archive the Mac app instead; an app on both has one wrapper per platform. ## render-header.sh Renders the product page headers, `header-21x9.png` and `header-16x9.png`, from an app's `AppStore/header.conf` and its `screenshots/iphone-6.9` images. Needs Chromium and ImageMagick. ```sh ../appstore-kit/render-header.sh App/AppStore ```