Skip to content

Commit e67ef80

Browse files
committed
Document --run/-R flag
1 parent 8721565 commit e67ef80

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Usage:
7878
-K, --add-access-group [NAME] Add $(TeamIdentifier).NAME to keychain-access-groups
7979
-L, --identities List local codesign identities
8080
-m, --mobileprovision [FILE] Specify the mobileprovision file to use
81+
-R, --run [SCRIPT] Run a hook script before signing starts
8182
-s, --single Sign a single file instead of an IPA
8283
-S, --self-sign-provision Self-sign mobile provisioning (EXPERIMENTAL)
8384
-v, --verify Verify all the signed files at the end
@@ -164,6 +165,20 @@ creates a dependency list of all the bins and signs them in order. The parallel
164165
signing aims to run in parallel as much tasks as possible without breaking the
165166
dependency list.
166167

168+
## Run hooks
169+
170+
Use `-R, --run` to execute a script before signing starts.
171+
172+
Shell scripts receive the following environment variables:
173+
174+
- `APPLESIGN_DIRECTORY`
175+
- `APPLESIGN_MAINBIN`
176+
- `APPLESIGN_OUTFILE`
177+
- `APPLESIGN_TEMPDIR`
178+
- `APPLESIGN_FILE`
179+
180+
`APPLESIGN_TEMPDIR` is the temporary working directory.
181+
167182
## Mangling
168183

169184
It is possible with `--force-family` to remove the UISupportedDevices from the

lib/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const shortHelpMessage = `Usage:
2020
-m, --mobileprovision [FILE] Specify the mobileprovision file to use
2121
-o, --output [APP.IPA] Path to the output IPA filename
2222
-O, --osversion 9.0 Force specific OSVersion if any in Info.plist
23+
-R, --run [SCRIPT] Run a hook script before signing starts
2324
-T, --tempdir [DIR] Path to the output directory for temporary files
2425
-p, --without-plugins Remove plugins (excluding XCTests) from the resigned IPA
2526
-w, --without-watchapp Remove the WatchApp from the IPA before resigning
@@ -64,6 +65,7 @@ const helpMessage = `Usage:
6465
-K, --add-access-group [NAME] Add $(TeamIdentifier).NAME to keychain-access-groups
6566
-L, --identities List local codesign identities
6667
-m, --mobileprovision [FILE] Specify the mobileprovision file to use
68+
-R, --run [SCRIPT] Run a hook script before signing starts
6769
-s, --single Sign a single file instead of an IPA
6870
-S, --self-sign-provision Self-sign mobile provisioning (EXPERIMENTAL)
6971
-v, --verify Verify all the signed files at the end

0 commit comments

Comments
 (0)