@wix/himalaya-cli 0.2002.0 → 0.2003.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +31 -12
- package/guides/qa-builds.md +50 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -3964,7 +3964,6 @@ var init_himi_package = __esm({
|
|
|
3964
3964
|
var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
|
|
3965
3965
|
var init_icon_catalog_generated = __esm({
|
|
3966
3966
|
"../../core/ts/src/icon-catalog.generated.ts"() {
|
|
3967
|
-
"use strict";
|
|
3968
3967
|
init_define_HHP_CATALOG();
|
|
3969
3968
|
ICON_VIEW_BOX = 24;
|
|
3970
3969
|
ICON_STROKE_WIDTH = 2;
|
|
@@ -9059,7 +9058,7 @@ var init_dist_jobs = __esm({
|
|
|
9059
9058
|
DIST_SHELLS = {
|
|
9060
9059
|
"branded-lite": {
|
|
9061
9060
|
appDir: "apps/himi-branded-lite",
|
|
9062
|
-
bundleId: { ios: "ent.wix.brandedlite.dev", android: "com.wix.himi.brandedlite.dev" },
|
|
9061
|
+
bundleId: { ios: "ent.wix.brandedlite.dev", android: "com.wix.himi.brandedlite.dev", macos: "com.wix.himi.brandedlite.mac.dev" },
|
|
9063
9062
|
provisioningEnv: "HIMI_BRANDED_LITE_PROVISIONING_JSON",
|
|
9064
9063
|
embeddedSuffixes: ["liveactivity"],
|
|
9065
9064
|
extensibleCapabilities: true,
|
|
@@ -9074,7 +9073,7 @@ var init_dist_jobs = __esm({
|
|
|
9074
9073
|
},
|
|
9075
9074
|
"owner-lite": {
|
|
9076
9075
|
appDir: "apps/himi-owner-lite",
|
|
9077
|
-
bundleId: { ios: "ent.wix.ownerlite.dev", android: "com.wix.himi.ownerlite.dev" },
|
|
9076
|
+
bundleId: { ios: "ent.wix.ownerlite.dev", android: "com.wix.himi.ownerlite.dev", macos: "com.wix.himi.ownerlite.mac.dev" },
|
|
9078
9077
|
provisioningEnv: "HIMI_OWNER_LITE_PROVISIONING_JSON",
|
|
9079
9078
|
// #4354 — the iOS project embeds its companion watch app (<host>.watchkitapp).
|
|
9080
9079
|
embeddedSuffixes: ["liveactivity", "watchkitapp"],
|
|
@@ -9127,6 +9126,9 @@ var init_dist_jobs = __esm({
|
|
|
9127
9126
|
// watch id (`<host>.watch.dev`) is not the `<host>.<suffix>` shape the signing mint requires.
|
|
9128
9127
|
game: {
|
|
9129
9128
|
appDir: "apps/himi-game",
|
|
9129
|
+
// No `macos` yet, though apps/himi-game/macos exists: its prepare:customer has no Mac layout
|
|
9130
|
+
// (GAME_LAYOUT.macosAppDir is null), so a Mac build would ship the sample icon and palette rather
|
|
9131
|
+
// than the release's branding. Refused (`macos_shell_unsupported`) until that layout exists.
|
|
9130
9132
|
bundleId: { ios: "com.himalaya.himigame.dev.dev", android: "com.himalaya.himigame.dev.dev" },
|
|
9131
9133
|
provisioningEnv: "HIMI_GAME_PROVISIONING_JSON",
|
|
9132
9134
|
embeddedSuffixes: [],
|
|
@@ -9136,6 +9138,9 @@ var init_dist_jobs = __esm({
|
|
|
9136
9138
|
},
|
|
9137
9139
|
player: {
|
|
9138
9140
|
appDir: "apps/himi-player",
|
|
9141
|
+
// No `macos` yet, though apps/himi-player/macos exists: its scripts/gen.sh re-bakes Player's own
|
|
9142
|
+
// seed in every build and ignores the release seed himi dist prepared (HIMALAYA_SEED_PREPARED), so
|
|
9143
|
+
// the zip would carry Player's content, not the requested release's. Refused until gen.sh keeps it.
|
|
9139
9144
|
bundleId: { ios: "dev.himalaya.player.dev", android: "dev.himalaya.player.dev" },
|
|
9140
9145
|
provisioningEnv: "HIMI_PLAYER_PROVISIONING_JSON",
|
|
9141
9146
|
// The Live Activity extension Player embeds since #3691 (hosted apps' lock-screen timers).
|
|
@@ -9144,7 +9149,7 @@ var init_dist_jobs = __esm({
|
|
|
9144
9149
|
},
|
|
9145
9150
|
"demo-app": {
|
|
9146
9151
|
appDir: "apps/demo-app",
|
|
9147
|
-
bundleId: { ios: "com.himalaya.demoapp.dev", android: "com.himalaya.demoapp.dev" },
|
|
9152
|
+
bundleId: { ios: "com.himalaya.demoapp.dev", android: "com.himalaya.demoapp.dev", macos: "com.himalaya.demoapp.mac.dev" },
|
|
9148
9153
|
provisioningEnv: "DEMO_APP_PROVISIONING_JSON",
|
|
9149
9154
|
embeddedSuffixes: ["widgets"],
|
|
9150
9155
|
extensibleCapabilities: false
|
|
@@ -46697,7 +46702,6 @@ function shouldRevealError(args) {
|
|
|
46697
46702
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
46698
46703
|
var init_validation = __esm({
|
|
46699
46704
|
"../../core/ts/src/validation.ts"() {
|
|
46700
|
-
"use strict";
|
|
46701
46705
|
init_define_HHP_CATALOG();
|
|
46702
46706
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
46703
46707
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -169235,7 +169239,7 @@ var init_cli_help = __esm({
|
|
|
169235
169239
|
Cannot ADD a screen (screens are git-only, RFC 0012), and
|
|
169236
169240
|
carries no attestation, source archive, assets, icon or
|
|
169237
169241
|
minBinaryVersion \u2014 all named in the output.
|
|
169238
|
-
himi dist [--app <a>] [--platform ios,android] [--release <id>] [--allow-draft] [--target <t>]
|
|
169242
|
+
himi dist [--app <a>] [--platform ios,android,macos] [--release <id>] [--allow-draft] [--target <t>]
|
|
169239
169243
|
[--shell branded-lite|owner-lite|brandy|base44|game|player|demo-app] [--signing wix-managed|byo]
|
|
169240
169244
|
[--android-signing qa-keystore|wix-keystore|debug|owner] [--aab]
|
|
169241
169245
|
[--package-name <id> --google-services <file>] [--min-version-code <n>]
|
|
@@ -169799,7 +169803,7 @@ Guides: ${DEVELOPER_PORTAL_URL}`;
|
|
|
169799
169803
|
{ name: "patch", summary: 'change ONE item of a published app \u2014 a screen descriptor, a Tier-5 bundle, tokens, or the app-config baseline \u2014 from a RAW FILE, with no content package and no build. The low-level door: it does not lint your package, because there is no package here; `himi push --only <selector>` is the same edit with the full build + lint gate and is what to reach for when the package is in hand. Derives a new release from the app\'s current LIVE release, or from `--from-release <id>`. An explicit `--draft` or `--live` is REQUIRED \u2014 a patch has no default blast radius \u2014 and `--notes` is required with `--live` on a screen or app-config patch, because off-repo `gitSha` is "dev" and the ledger notes are then the only durable record of bytes that correspond to no commit. A branch does not merge: activating one derived from an older release reverts every item the patch does not move, so that case is refused until `--accept-regressions`. A bundle patch must repoint a screen (`--for-screen`) or the bytes land under a manifest key nothing reads. It cannot ADD a screen (screens are git-only, RFC 0012), never claims a slug \u2014 the app must already be published \u2014 and carries no attestation, source archive, assets, icon or minBinaryVersion, each named in the output.', required: "screen <id> --file <descriptor.json> [--bundle <sha256|none>] | bundle --file <bundle.js> (--for-screen <id>[,<id>] | --no-rebind) | tokens --file <tokens.json> | app-config --file <app-config.json> ; (--draft|--live) --app <a> [--from-release <id>] [--accept-regressions] [--label <n>] [--notes <t>] [--force] [--allow-binary-gap] [--target <t>] (--control-token)" },
|
|
169800
169804
|
{ name: "flags", summary: "read and change the app's OPERATIONAL flags (RFC 0013) \u2014 `list` prints what the DEVICE door serves, `set <key> --definition` creates or replaces one, `ramp <key>` moves its rollout share or kills it, `rm <key>` deletes it and echoes the definition back so the removal is reversible. Every write is followed by a read of the same door the device uses, and the answer is reported as `servedNow`: flags are stored in the app's git-committed flags.json, so a control plane with no checkout accepts a write it will never serve.", required: "list|set|ramp|rm [<key>] [--definition <json|@file>] [--percent 0-100] [--enabled true|false] [--app <a>] (--control-token)" },
|
|
169801
169805
|
{ name: "visibility", summary: "read (no value) or set whether the public registry (/v1/apps + the Himi Player picker) LISTS the app. `public` lists it for everyone; `unlisted` hides it from listings while direct reads by app id \u2014 deep links, previews \u2014 keep working. App from --app or the content dir. Setting it needs no republish.", required: "[public|unlisted] [--app <a>] [--content <dir>] (--control-token)" },
|
|
169802
|
-
{ name: "dist", summary: "build an INSTALLABLE QA binary (signed IPA / APK) on the Wix Job Service Mac pool and return an install link \u2014 the serve plane brokers the job, the pool builds it. WAITS for the build by default (~4 min) and prints the install link; `--no-wait` returns a jobId immediately instead. Omitting `--release` builds whatever is LIVE for the app. A named draft is refused unless `--allow-draft` makes that exceptional build explicit. `status <jobId>` / `watch <jobId>` / `list --app <a>` / `cancel <jobId>` inspect and stop builds (`watch` reports up front whether the job mints its own signing identity or borrows one, so a doomed iOS build is cancellable in seconds rather than after the archive). Off-repo, name a target \u2014 `--target wix` for a self-serve Wix login or `--target bo` for the internal employee path (the in-repo default is a local dev plane that isn't reachable off-repo); self-serve callers may build their OWN apps under a tighter budget (2 in flight / 5 per 24h), while a manage-only owner-role credential is refused. `--shell` picks the native host to sign into (branded-lite | owner-lite | brandy | base44 | game | player | demo-app) and defaults to the content package's himalaya.content.json `shell` (templates carry the one they were written for), else branded-lite. The per-app shells ADD the release's declared capabilities to the binary, while Himi Player and demo-app refuse a release declaring one they lack; `--plan` previews it without building; `brandy` builds a site-shell app (the customer's own website as native-framed tabs) on the branded-lite binary under Brandy's bundle ids, so an installed Brandy app updates in place \u2014 it needs a release that serves its own site block (`release_site_missing` otherwise); `game` is the Godot game shell, the only one that serves `godot`. `--signing` defaults to `wix-managed` \u2014 the Wix Apple account mints a per-app signing identity for the build, so the caller provisions no Apple credentials of their own; `--signing byo --site <id>` reuses an existing customer ad-hoc profile and certificate for iOS; requires an owned site and a completed personal signing binding. `--android-signing` is the Android counterpart and a SEPARATE axis (a keystore, not an Apple account): `qa-keystore` (default \u2014 the repo's committed QA key, identical on every pool machine, so a build installs over the previous one), `wix-keystore` (the Wix key the pool machine carries; the build FAILS naming the paths searched if it carries none, rather than quietly signing with something else), or `debug` (the old per-machine key \u2014 QA must uninstall any previous build first). `--aab` builds an Android App Bundle (.aab) for the owner to upload to Google Play AND an APK from the same build \u2014 a download link for the .aab, an install link and QR for the APK; Android only; the bundle is signed with the Wix production key (`wix-keystore`, the upload key Branded apps use) \u2014 any other `--android-signing` is refused \u2014 and the APK with the committed QA key; a self-serve caller gets one only as the store build of its own Containers app (it must own the app's site, and `--aab` sends your Wix login); any other self-serve `--aab` gets 403 android_format_not_allowed. `--app-name <name> --app-icon-url <url>` (together; the icon a `https://static.wixstatic.com/media/<file>` URL) give the binary a name and icon in place of the release's, and a Containers app's store build (`--aab`, or its TestFlight build) needs both. NOT the normal way to ship: screens, Tier-5 bundles, tokens and app-config all go over the air with `himi push` in seconds \u2014 a binary trip is only needed for a NATIVE delta (a new SDUI component, a new declared capability/entitlement, a new bundle id, or a minBinaryVersion floor bump). Refuses to build an app whose launcher icon is missing, a placeholder, or one a store would reject \u2014 the one thing a binary carries that no later OTA push can fix; `--force` builds anyway. Also refuses a release whose member login (WixConsumerAuthProvider) names no siteId, or not in lower case, when Wix says its site requires a member CAPTCHA \u2014 such a binary ships without the CAPTCHA key and every member sign-in fails; whatever it cannot read (the release, the site's setting) only warns and builds; `--skip-captcha-check` builds anyway", required: "[--app <a>] [--platform ios,android] [--release <id>] [--allow-draft] [--target <t>] [--shell branded-lite|owner-lite|brandy|base44|game|player|demo-app] [--signing wix-managed|byo] [--site <id>] [--android-signing qa-keystore|wix-keystore|debug] [--aab] [--min-version-code <n>] [--app-name <name> --app-icon-url <url>] [--borrow-ios-id <bundleId>] [--no-wait] [--force] [--skip-captcha-check] [--plan] | status <jobId> [--target <t>] | watch <jobId> [--target <t>] [--interval <ms>] | list --app <a> [--target <t>] | cancel <jobId> [--target <t>]" },
|
|
169806
|
+
{ name: "dist", summary: "build an INSTALLABLE QA binary (signed IPA / APK) on the Wix Job Service Mac pool and return an install link \u2014 the serve plane brokers the job, the pool builds it. WAITS for the build by default (~4 min) and prints the install link; `--no-wait` returns a jobId immediately instead. Omitting `--release` builds whatever is LIVE for the app. A named draft is refused unless `--allow-draft` makes that exceptional build explicit. `status <jobId>` / `watch <jobId>` / `list --app <a>` / `cancel <jobId>` inspect and stop builds (`watch` reports up front whether the job mints its own signing identity or borrows one, so a doomed iOS build is cancellable in seconds rather than after the archive). Off-repo, name a target \u2014 `--target wix` for a self-serve Wix login or `--target bo` for the internal employee path (the in-repo default is a local dev plane that isn't reachable off-repo); self-serve callers may build their OWN apps under a tighter budget (2 in flight / 5 per 24h), while a manage-only owner-role credential is refused. `--shell` picks the native host to sign into (branded-lite | owner-lite | brandy | base44 | game | player | demo-app) and defaults to the content package's himalaya.content.json `shell` (templates carry the one they were written for), else branded-lite. The per-app shells ADD the release's declared capabilities to the binary, while Himi Player and demo-app refuse a release declaring one they lack; `--plan` previews it without building; `brandy` builds a site-shell app (the customer's own website as native-framed tabs) on the branded-lite binary under Brandy's bundle ids, so an installed Brandy app updates in place \u2014 it needs a release that serves its own site block (`release_site_missing` otherwise); `game` is the Godot game shell, the only one that serves `godot`. `--signing` defaults to `wix-managed` \u2014 the Wix Apple account mints a per-app signing identity for the build, so the caller provisions no Apple credentials of their own; `--signing byo --site <id>` reuses an existing customer ad-hoc profile and certificate for iOS; requires an owned site and a completed personal signing binding. `--android-signing` is the Android counterpart and a SEPARATE axis (a keystore, not an Apple account): `qa-keystore` (default \u2014 the repo's committed QA key, identical on every pool machine, so a build installs over the previous one), `wix-keystore` (the Wix key the pool machine carries; the build FAILS naming the paths searched if it carries none, rather than quietly signing with something else), or `debug` (the old per-machine key \u2014 QA must uninstall any previous build first). `--aab` builds an Android App Bundle (.aab) for the owner to upload to Google Play AND an APK from the same build \u2014 a download link for the .aab, an install link and QR for the APK; Android only; the bundle is signed with the Wix production key (`wix-keystore`, the upload key Branded apps use) \u2014 any other `--android-signing` is refused \u2014 and the APK with the committed QA key; a self-serve caller gets one only as the store build of its own Containers app (it must own the app's site, and `--aab` sends your Wix login); any other self-serve `--aab` gets 403 android_format_not_allowed. `--platform macos` builds the shell's native Mac app (branded-lite, owner-lite, demo-app; any other shell, player and game included for now, is refused `macos_shell_unsupported`): a zip with one `.app`, signed ad hoc and not yet notarized, so the first launch is Control-click \u2192 Open; it is a download link, never a phone QR, and it can't be customer-signed. `--app-name <name> --app-icon-url <url>` (together; the icon a `https://static.wixstatic.com/media/<file>` URL) give the binary a name and icon in place of the release's, and a Containers app's store build (`--aab`, or its TestFlight build) needs both. NOT the normal way to ship: screens, Tier-5 bundles, tokens and app-config all go over the air with `himi push` in seconds \u2014 a binary trip is only needed for a NATIVE delta (a new SDUI component, a new declared capability/entitlement, a new bundle id, or a minBinaryVersion floor bump). Refuses to build an app whose launcher icon is missing, a placeholder, or one a store would reject \u2014 the one thing a binary carries that no later OTA push can fix; `--force` builds anyway. Also refuses a release whose member login (WixConsumerAuthProvider) names no siteId, or not in lower case, when Wix says its site requires a member CAPTCHA \u2014 such a binary ships without the CAPTCHA key and every member sign-in fails; whatever it cannot read (the release, the site's setting) only warns and builds; `--skip-captcha-check` builds anyway", required: "[--app <a>] [--platform ios,android,macos] [--release <id>] [--allow-draft] [--target <t>] [--shell branded-lite|owner-lite|brandy|base44|game|player|demo-app] [--signing wix-managed|byo] [--site <id>] [--android-signing qa-keystore|wix-keystore|debug] [--aab] [--min-version-code <n>] [--app-name <name> --app-icon-url <url>] [--borrow-ios-id <bundleId>] [--no-wait] [--force] [--skip-captcha-check] [--plan] | status <jobId> [--target <t>] | watch <jobId> [--target <t>] [--interval <ms>] | list --app <a> [--target <t>] | cancel <jobId> [--target <t>]" },
|
|
169803
169807
|
{ name: "testflight", summary: 'build, sign and upload an app to TestFlight (internal testers \u2014 no Beta App Review), then WAIT until App Store Connect finishes processing it. Sugar for `store upload --track testflight`. Prompts first: a build number is consumed permanently on a real Apple account and cannot be reused \u2014 `--yes` for CI, `--dry-run` to see the plan without touching anything. The wait is the real check, not a nicety: fastlane prints "Successfully uploaded" for a binary App Store Connect then rejects in processing, and a rejected binary leaves NO build record at all (the reason is emailed). Public App Store review is deliberately NOT automatable here \u2014 `--track appstore` is refused; use /submit-ios-app when you mean to go public', required: "<app> [--track testflight|internal] [--profile <name>] [--yes] [--dry-run] [--skip-build] [--no-wait] [--json]" },
|
|
169804
169808
|
{ name: "store", summary: "`app set --app <id> --site <msid> --android-package himi.<name>` gives an app YOUR account owns (one made with `himi init`) the Google Play store app of a Wix site your account also owns, so `himi dist --aab` makes its Wix-signed (WixOne) Play bundle: the app is LINKED to the site, never converted into a site app, so your `himi login` token keeps working for push and the rest. `app set --link-only` links and holds the site with no package, for an owner-signed app whose Play package is your own. One site per app and one app per site; the package name is permanent once a build locks it. `app show --app <id> --site <msid>` runs the store build's checks without building (saved package name, the site's Premium plan). Both send your `himi login` control token plus the account `wix token`, which the plane uses to verify your account owns the app and the site (`himi docs qa-builds`). `apple-keys setup|status` onboards the owner\u2019s ASC and In-App Purchase keys independently of push and signing profiles. `connect` and `submission status|plan|apply|rejection|reply` submit an app to the App Store from YOUR computer under YOUR Apple account, off-repo (Node 24+): `connect` opens a sign-in page on 127.0.0.1 where you type your Apple ID password and 2FA code (no flag takes them) and creates an Admin API key saved in this computer's keychain, shared with Wix for App Store builds when the app's store/app-store.json names its site; `submission plan` plans the next ordered batch and `apply` applies it only after you type the plan hash's first 8 characters (or click Approve on a local page). The same steps are the store_* tools of `himi mcp` (`himi docs store-submission`). `--platform android` takes `connect` and `submission status|plan|apply|rejection|reply` to Google Play instead: `connect` signs you in to Google in your browser (the OAuth client file from GPLAY_OAUTH_CLIENT_FILE or gplay-node's state dir, else a gcloud sign-in), the facts come from the app's store/google-play.json (category, contactEmail, privacyPolicyUrl, targetAudience, contentRatingCategory, packageName), a site-linked himi.<name> app is Wix-signed (`himi dist --aab`) and any other owner-signed (`--android-signing owner --google-services <file>`, then `google keygen <package>` makes the upload key once and `google resign <in.aab> --keystore <file.p12> --storepass-file <file>` signs the bundle, both on this computer), `apply` takes one `--job`, and `submission approve-reply --platform android --issue <id> --kind appeal|resubmit --text <reply>` records your typed yes on one exact policy reply (no --yes), the only way `reply` or store_reply can plan it. `record show|refresh|sync|pull` reads the app's store record on this computer (~/.himi/store, or HIMI_STORE_HOME / --record-dir): what each store showed when last read, what was last sent and what is drafted, with ages and drift; `refresh --platform android [--part status|tracks|listing|app-content|account|policy|all]` reads Google again into it; `sync` exchanges it with the copy Wix keeps for the app and `pull` only fetches it, for a new computer, with your himi login: the site's owner writes it, and so does the Wix person helping with the app while the owner lets Wix submit it (`wix-submit start`), while a `--read-only` consent only lets them pull; after a job verifies, the record is pushed on its own (a failure is a warning; HIMI_STORE_RECORD_SYNC=off turns it off). `handoff` uploads the app's asc-node records (allowlisted ids, statuses and outcomes; never keys, cookies or passwords) so Wix can take the submission over, `--out`/`--dry-run` keep it local. `wix-submit start [--platform ios|android] [--read-only] [--yes]` lets Wix submit the app for you: after your yes it records your consent for 90 days (read and submit; on Android also Wix-signed builds and Play Console work; `--read-only` is read alone), sends the handoff, and on Android adds the Wix person helping with your app to YOUR Google Play account for 90 days, showing their name and email first, after a typed yes at a terminal (`--yes` answers the consent only; with no one named yet, Wix contacts you and you run start again); `wix-submit stop` withdraws the consent and removes everyone Wix added to your Google Play account for the app (non-zero while anyone may remain); `wix-submit status` shows the consent (scopes, recorded, expires), who is helping and whether they are on your Play account. All are site-owner only (`himi store wix-submit --help`). `google create-app --name <n>` creates the app in your own Play Console after you read Google's Create app declarations and type yes. The App Store Connect group behind `testflight`. `preflight <app>` checks readiness offline (icon, entitlements, encryption flag, version, store.config ids, listing + review record); `upload <app>` is what `testflight` runs; `status <app>` reads live build + processing state. `--profile` selects WHICH App Store Connect account: an app built for a Wix customer ships under the CUSTOMER's Apple team (Apple guideline 4.2.6 forbids an app-generation service submitting on a client's behalf), declared per-app as ios.credentialProfile in store.config.yaml and resolved from ~/.himalaya/store-credentials/<name>.json \u2014 the .p8 itself never enters the repo. `iap draft|plan|apply|status|connect|screenshots|check|mappings` registers an app owner's digital products as in-app purchases (non-consumables, or consumable price tiers): draft reads the Wix catalog and writes the manifest, plan and status only read, apply is the one App Store mutation boundary, connect readies the Wix site to sell them (purchases app, In-App Purchase key, appleIAP provider, product mappings; --preview-tag routes only its Serve calls to a deploy preview), legacy screenshots --profile renders each product's purchase screen from the app (--content) as a bound iPhone shows it to a signed-in member and names the 1290\xD72796 PNG as the item's App Review screenshot, and none of them builds, signs or needs a checkout (`himi docs iap-products`) IAP provisioning defaults to Catalog; managed apply generates screenshots on the server with no local .p8 or profile fallback; --managed is optional and --profile selects legacy mode; --catalog-route or HIMI_IAP_CATALOG_ROUTE has no default.", required: "app set --app <id> --site <msid> (--android-package himi.<name> | --link-only) | app show --app <id> --site <msid> | connect [--dir <app>] [--app <id> --site <msid>] [--no-key] [--profile <name>] | submission status|plan|rejection [--dir <app>] [--apple-id <id>] [--profile <name>] | submission apply (--batch <id> | --job <id>) --plan-hash <hash> | submission reply --text <reply> [--attach <file>]\u2026 [--thread <id>] [--dir <app>] | connect --platform android | submission status|plan|rejection --platform android [--dir <app>] [--issue <id>] | submission apply --platform android --job <id> --plan-hash <hash> | submission reply|approve-reply --platform android --issue <id> --kind appeal|resubmit --text <reply> [--dir <app>] | record show [--dir <app>] [--platform android|ios] [--part <part>] [--record-dir <dir>] | record refresh [--dir <app>] [--platform android] [--part <part>] | record sync|pull [--dir <app>] [--app <id> --site <msid>] [--record-dir <dir>] | handoff [--dir <app>] [--app <id> --site <msid>] [--apple-app-id <id>] [--out <file> | --dry-run] | wix-submit start [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--read-only] [--yes] [--developer <id>] [--android-package himi.<name>] | wix-submit stop [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--yes] [--developer <id>] | wix-submit status [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--developer <id>] | google create-app --name <app name> [--app <id> --site <msid>] [--developer <id>] [--android-package himi.<name>] | google testers pool-add|pool-remove|pool-check [--dir <app>] [--track himi-pool] | google testers consent grant|revoke|status [--dir <app>] | google keygen <package> [--out <file.p12>] [--alias <name>] [--name <certificate name>] | google resign <in.aab> --keystore <file.p12> (--storepass-file <file> | --storepass-env <NAME>) [--alias <name>] [--out <file.aab>] | apple-keys setup|status --app <slug> --site <metaSiteId> --bundle-id <id> [--asc-key-file <p8> --asc-key-id <id> --asc-issuer-id <issuer>] [--iap-key <p8> --iap-key-id <id> --iap-issuer-id <issuer>] [--yes|--dry-run] [--json] | preflight <app> [--profile <n>] | upload <app> [--track <t>] [--profile <n>] [--yes] [--dry-run] | status <app> [--profile <n>] | iap draft --site <msid> " + IAP_CREDENTIAL_OPTIONS + " --apple-app <id> --bundle <id> --base-territory <t> --out <f> [--territories <a,b>] [--locale <l>] [--mode per-item|tiers] [--merge <f>] [--report <f>] [--json] | iap plan --manifest <f> " + IAP_CREDENTIAL_OPTIONS + " --out <f> [--json] | iap apply --plan <f> " + IAP_CREDENTIAL_OPTIONS + " --out <f> [--yes] [--limit <n>] [--no-submit] [--json] | iap status --manifest <f> " + IAP_CREDENTIAL_OPTIONS + " [--out <f>] [--json] | iap connect --manifest <f> [--profile <n>] [--catalog-route <prefix>] [--iap-key <AuthKey.p8> --iap-key-id <id>] [--content <dir>] [--preview-tag dp-<tag>] [--dry-run] [--yes] [--out <f>] [--json] | iap screenshots --manifest <f> --content <dir> --profile <n> [--out-dir <d>] [--only <id,\u2026>] [--force] [--dry-run] [--json] | iap check --manifest <f> --catalog-route <prefix> [--purchases-app <id>] [--content <dir>] [--plist <file>] [--visitor-client <id>] [--json] | iap mappings --site <msid> --purchases-app <id> --catalog-route <prefix> [--product <id> --active true|false --yes] [--json]" },
|
|
169805
169809
|
{ name: "guide", summary: "print the Himalaya overview + headless dev loop + available topics (offline)", required: "[--json]" },
|
|
@@ -290231,6 +290235,7 @@ function scannableUrl(rec) {
|
|
|
290231
290235
|
if (isAppStoreBuild(rec)) return void 0;
|
|
290232
290236
|
if (rec.platform === "android" && rec.androidFormat === "aab") return a3.apk?.downloadUrl;
|
|
290233
290237
|
if (rec.platform === "ios" && rec.iosFormat === "simulator") return void 0;
|
|
290238
|
+
if (rec.platform === "macos") return void 0;
|
|
290234
290239
|
return rec.platform === "ios" ? a3.installPageUrl ?? a3.downloadUrl : a3.downloadUrl ?? a3.installPageUrl;
|
|
290235
290240
|
}
|
|
290236
290241
|
function isInternalOnlyBuild(r3) {
|
|
@@ -290423,6 +290428,11 @@ ${label4}`);
|
|
|
290423
290428
|
io2.log(" QR omitted (an .aab is uploaded to Google Play; it does not install on a device)");
|
|
290424
290429
|
return;
|
|
290425
290430
|
}
|
|
290431
|
+
if (job.platform === "macos") {
|
|
290432
|
+
io2.log(" macos app");
|
|
290433
|
+
io2.log(" QR omitted (a Mac app is downloaded on a Mac; its link is above)");
|
|
290434
|
+
return;
|
|
290435
|
+
}
|
|
290426
290436
|
const { isAppStoreBuild: isAppStoreBuild2 } = await Promise.resolve().then(() => (init_dist_links(), dist_links_exports));
|
|
290427
290437
|
if (isAppStoreBuild2(job)) {
|
|
290428
290438
|
io2.log(` ${String(job.platform)} App Store build`);
|
|
@@ -290568,7 +290578,7 @@ ${label4}`);
|
|
|
290568
290578
|
if (!flags.json) {
|
|
290569
290579
|
io2.log(` app ${rec.app} \xB7 ${rec.platform} \xB7 shell ${rec.shell ?? "?"} \xB7 ${String(rec.gitCommitSha ?? "").slice(0, 12)}`);
|
|
290570
290580
|
io2.log(
|
|
290571
|
-
rec.platform !== "ios" ? " signing: n/a (android signs with its own keystore)" : rec.signing === "byo" ? " signing: CUSTOMER \u2014 pinned personal team and ad-hoc profile; registered devices only" : minted ? " signing: MINTED \u2014 the job fetches its own identity; it will build under the app's own bundle id" : borrowed ? ` signing: BORROWED ${borrowed} \u2014 the binary carries another app's identifier and REPLACES it on the device` : " signing: none dispatched \u2014 the pool must find a profile itself, which fails when it has none.\n Minting is ON by default, so this means the serve plane either has HIMI_DIST_APPLE_SIGNING set to 0/false/off/no, or predates the minting route."
|
|
290581
|
+
rec.platform === "macos" ? " signing: ad hoc (not notarized: Control-click \u2192 Open on first launch)" : rec.platform !== "ios" ? " signing: n/a (android signs with its own keystore)" : rec.signing === "byo" ? " signing: CUSTOMER \u2014 pinned personal team and ad-hoc profile; registered devices only" : minted ? " signing: MINTED \u2014 the job fetches its own identity; it will build under the app's own bundle id" : borrowed ? ` signing: BORROWED ${borrowed} \u2014 the binary carries another app's identifier and REPLACES it on the device` : " signing: none dispatched \u2014 the pool must find a profile itself, which fails when it has none.\n Minting is ON by default, so this means the serve plane either has HIMI_DIST_APPLE_SIGNING set to 0/false/off/no, or predates the minting route."
|
|
290572
290582
|
);
|
|
290573
290583
|
if (rec.adoptedStoreId) {
|
|
290574
290584
|
io2.log(` store identity: ADOPTED ${rec.adoptedStoreId}${rec.adoptedAppleTeamId ? ` (team ${rec.adoptedAppleTeamId})` : ""} \u2014 installs over the live store app`);
|
|
@@ -290660,14 +290670,14 @@ ${label4}`);
|
|
|
290660
290670
|
const captchaSiteId = str3(flags.site) ?? (await appId(contentDir(flags)) === app2 ? captchaContentInput2(contentDir(flags)).siteId : void 0);
|
|
290661
290671
|
const { captchaBindable: captchaBindable2 } = await Promise.resolve().then(() => (init_captcha_bindable(), captcha_bindable_exports));
|
|
290662
290672
|
const { DEFAULT_DIST_SHELL: DEFAULT_DIST_SHELL2 } = await Promise.resolve().then(() => (init_dist_jobs(), dist_jobs_exports));
|
|
290663
|
-
|
|
290673
|
+
const captchaPlatforms = (platform?.length ? platform : str3(flags.destination) === "testflight" ? ["ios"] : ["android"]).filter((p2) => p2 !== "macos");
|
|
290674
|
+
if (flags.force !== true && flags["skip-captcha-check"] !== true && captchaPlatforms.length > 0 && captchaBindable2(distShell ?? DEFAULT_DIST_SHELL2, false)) {
|
|
290664
290675
|
const verdict = await captchaDistGate2({
|
|
290665
290676
|
client: c2,
|
|
290666
290677
|
app: app2,
|
|
290667
290678
|
release: str3(flags.release),
|
|
290668
290679
|
requestedSite: captchaSiteId,
|
|
290669
|
-
|
|
290670
|
-
platforms: platform?.length ? platform : str3(flags.destination) === "testflight" ? ["ios"] : ["android"]
|
|
290680
|
+
platforms: captchaPlatforms
|
|
290671
290681
|
});
|
|
290672
290682
|
if (verdict.refuse) {
|
|
290673
290683
|
print({
|
|
@@ -290893,7 +290903,8 @@ ${label4}`);
|
|
|
290893
290903
|
const handoff = rec.customerAppStore;
|
|
290894
290904
|
const play = rec.playInternal;
|
|
290895
290905
|
const handoffText = typeof handoff?.status === "string" ? ` testflight ${handoff.status}${handoff.error ? ` (${handoff.error})` : ""}` : typeof play?.status === "string" ? ` play internal ${play.status}${play.versionCode ? ` (versionCode ${play.versionCode})` : ""}${play.errorCode ? ` (${play.errorCode})` : ""}` : "";
|
|
290896
|
-
|
|
290906
|
+
const verb = rec.platform === "macos" ? "download for Mac" : "install";
|
|
290907
|
+
io2.log(` ${rec.platform} ${rec.status}${handoffText}${installUrl ? isAab ? ` .aab for Google Play (${rec.ownerBundle ? "UNSIGNED: sign it before uploading" : "not installable"}) \u2192 ${installUrl}` : ` ${verb} \u2192 ${installUrl}` : ""}`);
|
|
290897
290908
|
if (isAab && artifact?.apk?.downloadUrl) io2.log(` ${rec.platform} install APK (same build, QA key) \u2192 ${artifact.apk.downloadUrl}`);
|
|
290898
290909
|
if (artifact?.caveat) io2.log(` \u26A0 ${artifact.caveat}`);
|
|
290899
290910
|
}
|
|
@@ -309337,6 +309348,13 @@ var init_site_pages_apply = __esm({
|
|
|
309337
309348
|
}
|
|
309338
309349
|
});
|
|
309339
309350
|
|
|
309351
|
+
// ../native-config/macos-bundle-id.ts
|
|
309352
|
+
var init_macos_bundle_id = __esm({
|
|
309353
|
+
"../native-config/macos-bundle-id.ts"() {
|
|
309354
|
+
init_define_HHP_CATALOG();
|
|
309355
|
+
}
|
|
309356
|
+
});
|
|
309357
|
+
|
|
309340
309358
|
// ../native-config/customer-build.ts
|
|
309341
309359
|
var LOCAL_CONTRACT_REL;
|
|
309342
309360
|
var init_customer_build = __esm({
|
|
@@ -309346,6 +309364,7 @@ var init_customer_build = __esm({
|
|
|
309346
309364
|
init_splash();
|
|
309347
309365
|
init_plan2();
|
|
309348
309366
|
init_binding_spellings();
|
|
309367
|
+
init_macos_bundle_id();
|
|
309349
309368
|
LOCAL_CONTRACT_REL = ".himi/provisioning.local.json";
|
|
309350
309369
|
}
|
|
309351
309370
|
});
|
package/guides/qa-builds.md
CHANGED
|
@@ -1727,6 +1727,56 @@ returns it as a zip with exactly one `.app` at its root (MOBPUB-1500).
|
|
|
1727
1727
|
`FAILURE` with `ios_format_not_built: …` and no artifact, and an IPA job that reports one fails
|
|
1728
1728
|
with `ios_format_not_requested: …`.
|
|
1729
1729
|
|
|
1730
|
+
### The native Mac app — `--platform macos`
|
|
1731
|
+
|
|
1732
|
+
`macos` is a third platform beside `ios` and `android`: the shell's native Mac app (`<shell>/macos`,
|
|
1733
|
+
`MacHimalayaAppShell`, which rides the iOS renderer), built on the same build machines as the iOS app with the release's
|
|
1734
|
+
contract, seed and icon, and returned as a zip with exactly one `.app`.
|
|
1735
|
+
|
|
1736
|
+
```sh
|
|
1737
|
+
himi dist --app <app> --platform macos --release <id> --wait --target bo
|
|
1738
|
+
himi dist --app <app> --platform ios,android,macos --wait --target bo # one run, three builds
|
|
1739
|
+
```
|
|
1740
|
+
|
|
1741
|
+
- **Which shells.** branded-lite, owner-lite and demo-app: each `DIST_SHELLS` entry with a
|
|
1742
|
+
`bundleId.macos`, pinned equal to its `macos/project.yml` by `dist-macos.test.ts`. Any other shell is
|
|
1743
|
+
refused `400 macos_shell_unsupported`, naming the ones that can. player and game have a macOS
|
|
1744
|
+
project but are refused for now: Player's `scripts/gen.sh` re-bakes its own seed over the release's,
|
|
1745
|
+
and game's `prepare:customer` does not brand its Mac tree, so either would ship content or branding
|
|
1746
|
+
that is not the release's. The same test fails once either reason stops holding.
|
|
1747
|
+
- **What you get:** the zip as `artifact.downloadUrl` (presigned, 7 days), with `artifact.sha256`,
|
|
1748
|
+
`artifact.bytes`, `artifact.expiresAt` and a `caveat` that says how to open it. It is a download for
|
|
1749
|
+
a Mac, so it has no install link and no QR, and it is never the app's phone link on the links
|
|
1750
|
+
surface. The run's install page (`/v1/dist/{jobId}/page`) shows a **Mac** card with a *Download for
|
|
1751
|
+
Mac* button only when the run built one; a phone-only run's page is unchanged.
|
|
1752
|
+
- **Signed ad hoc, not notarized yet.** Every macOS `project.yml` signs with the ad hoc identity
|
|
1753
|
+
(`CODE_SIGN_IDENTITY: "-"`), which Apple Silicon needs to run it at all, and the pool reads no
|
|
1754
|
+
signing identity, profile or keychain. So Gatekeeper refuses a double-click on the first launch:
|
|
1755
|
+
unzip, then **Control-click → Open** (or *System Settings → Privacy & Security → Open Anyway*). The
|
|
1756
|
+
CLI, the Slack DM, the job's `caveat` and the install page all say so. Developer ID signing and
|
|
1757
|
+
notarization (with the identity Wix's own macOS release builds already use) is the next step, not
|
|
1758
|
+
part of this lane.
|
|
1759
|
+
- **Refusals.** `signing: "byo"` is `400 macos_unsigned` (nothing customer-signs a Mac QA build); a
|
|
1760
|
+
release that carries native extensions is `400 macos_extensions_unsupported` (extension code is
|
|
1761
|
+
written into the iOS and Android projects only, so the Mac app would be built without it);
|
|
1762
|
+
TestFlight and Play internal refuse the platform already (`testflight_ios_only`,
|
|
1763
|
+
`play_internal_android_only`), and so does every store build.
|
|
1764
|
+
- **How the pool builds it.** `native-ci` `dist:macos` runs `run-dist.ts macos`: prepare:customer
|
|
1765
|
+
brands the Mac project too (it writes `macos/Config/<Shell>Customer.xcconfig`), the release seed is
|
|
1766
|
+
pinned into `macos/<Target>/Resources/seed`, the version is stamped into `macos/project.yml`, then
|
|
1767
|
+
xcodegen and `xcodebuild build -configuration Release -destination 'generic/platform=macOS'
|
|
1768
|
+
ONLY_ACTIVE_ARCH=NO HIMALAYA_DIST_BUILD=YES`, with no signing setting on the command line (it would
|
|
1769
|
+
reach the local Swift packages). The `.app` must list `MacOSX` in `CFBundleSupportedPlatforms` and be
|
|
1770
|
+
`MACOS` in every Mach-O slice before it is zipped; the seed gate and the `macos` binary-size budget
|
|
1771
|
+
run on the zip. The member CAPTCHA key is not baked (a declared macOS limitation). The bundle id is
|
|
1772
|
+
the one prepare:customer derives from the contract's iOS id (`<id>.mac.dev`, or `<id>.mac`), and a
|
|
1773
|
+
host shell (demo-app) keeps its committed one; the job reports the id read off the built `.app`,
|
|
1774
|
+
and the log line `[dist] macos: <App>.app <id> architectures=…` says which.
|
|
1775
|
+
- **Version skew.** The plane refuses a release whose commit cannot build the Mac app (`macos: 1` in
|
|
1776
|
+
its signing-protocol marker; `409 release_predates_macos`, `503 macos_builds_unavailable`,
|
|
1777
|
+
`501 macos_builds_unconfigured` without `HIMI_DIST_GITHUB_TOKEN`), because an older pool commit has
|
|
1778
|
+
no `dist:macos` script at all.
|
|
1779
|
+
|
|
1730
1780
|
### The iOS lane lives in one shared place
|
|
1731
1781
|
|
|
1732
1782
|
`fastlane dist` runs with `cwd = <app>/ios`, so it needs `<app>/ios/fastlane/Fastfile`. That file is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2003.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "8dd4df686cab6295b24d1313b36d46b4170cb5d6bcccebdb2f664649"
|
|
86
86
|
}
|