README.md
32 lines · 1078 bytes
3 symbols in this file
1# appstore-kit
2
3Scripts shared by the iOS apps. Check it out beside the apps (`~/git/krz/appstore-kit`) or
4point `APPSTORE_KIT` at it.
5
6## release-ios.sh
7
8Archives an iOS or macOS app, checks the archive's version and build against the project, and
9exports or uploads it to App Store Connect. Each app's `scripts/release-ios.sh` sets its options and
10sources this file; the options are listed at the top of it. Run from a clean `main`.
11
12```sh
13#!/bin/sh
14PUBLISH="${MOONRISE_PUBLISH:-1}"
15name=Moonrise
16project=App/Moonrise.xcodeproj
17scheme=Moonrise
18spec=App/project.yml
19. "${APPSTORE_KIT:-$(dirname "$0")/../../appstore-kit}/release-ios.sh"
20```
21
22Extra checks go in a `preflight()` function defined before the `.` line. Set `platform=macos` to
23archive the Mac app instead; an app on both has one wrapper per platform.
24
25## render-header.sh
26
27Renders the product page headers, `header-21x9.png` and `header-16x9.png`, from an app's
28`AppStore/header.conf` and its `screenshots/iphone-6.9` images. Needs Chromium and ImageMagick.
29
30```sh
31../appstore-kit/render-header.sh App/AppStore
32```