@wix/himalaya-cli 0.2027.0 → 0.2029.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 +11 -5
- package/guides/qa-builds.md +40 -5
- 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;
|
|
@@ -8493,12 +8492,14 @@ __export(dist_jobs_exports, {
|
|
|
8493
8492
|
IOS_FORMAT_NOT_REQUESTED: () => IOS_FORMAT_NOT_REQUESTED,
|
|
8494
8493
|
JobServiceBroker: () => JobServiceBroker,
|
|
8495
8494
|
JobServiceError: () => JobServiceError,
|
|
8495
|
+
LINUX_ANDROID_SIGNING_POLICIES: () => LINUX_ANDROID_SIGNING_POLICIES,
|
|
8496
8496
|
MAX_MEASURABLE_IDENTITY_WINDOW: () => MAX_MEASURABLE_IDENTITY_WINDOW,
|
|
8497
8497
|
SCOPE_CANCEL: () => SCOPE_CANCEL,
|
|
8498
8498
|
SCOPE_CREATE: () => SCOPE_CREATE,
|
|
8499
8499
|
SCOPE_READ: () => SCOPE_READ,
|
|
8500
8500
|
SITE_SHELL_SERVED_CAPABILITIES: () => SITE_SHELL_SERVED_CAPABILITIES,
|
|
8501
8501
|
WIX_MANAGED_SIGNING_ALIASES: () => WIX_MANAGED_SIGNING_ALIASES,
|
|
8502
|
+
androidDistFitsLinux: () => androidDistFitsLinux,
|
|
8502
8503
|
androidFormatSkewFailed: () => androidFormatSkewFailed,
|
|
8503
8504
|
appleErrorCodesOf: () => appleErrorCodesOf,
|
|
8504
8505
|
borrowableIosIds: () => borrowableIosIds,
|
|
@@ -8727,6 +8728,12 @@ function resolveAndroidSigning(requested) {
|
|
|
8727
8728
|
}
|
|
8728
8729
|
};
|
|
8729
8730
|
}
|
|
8731
|
+
function androidDistFitsLinux(input) {
|
|
8732
|
+
if (input.format !== "apk") return false;
|
|
8733
|
+
if (!LINUX_ANDROID_SIGNING_POLICIES.includes(input.signing)) return false;
|
|
8734
|
+
if (input.operatorEnv?.DIST_ANDROID_KEYSTORE) return false;
|
|
8735
|
+
return true;
|
|
8736
|
+
}
|
|
8730
8737
|
function androidFormatSkewFailed(record7) {
|
|
8731
8738
|
return record7.platform === "android" && typeof record7.error === "string" && [ANDROID_FORMAT_NOT_BUILT, ANDROID_FORMAT_WRONG_SIGNER, ANDROID_FORMAT_NOT_REQUESTED, ANDROID_BUILD_TYPE_NOT_BUILT].some((code3) => record7.error.includes(`${code3}:`));
|
|
8732
8739
|
}
|
|
@@ -8894,7 +8901,7 @@ function withoutCallbackToken(params) {
|
|
|
8894
8901
|
const { HIMI_DIST_CALLBACK_TOKEN: _printedByThePool, ...printable2 } = params;
|
|
8895
8902
|
return printable2;
|
|
8896
8903
|
}
|
|
8897
|
-
var DESKTOP_DIST_PLATFORMS, DIST_ERROR_CODES, APPLE_ERROR_CODES_MAX, IN_FLIGHT, JOB_SERVICE_ENDED, SCOPE_CREATE, SCOPE_READ, SCOPE_CANCEL, DEFAULT_BASE_URL, DEFAULT_OAUTH_URL, TOKEN_TTL_MS, JobServiceError, JobServiceBroker, CUSTOMER_UPLOAD_LEASE_MS, CUSTOMER_UPLOAD_RETRY_DELAYS_MS, CUSTOMER_UPLOAD_MAX_ATTEMPTS, CUSTOMER_UPLOAD_ABANDONED, MAX_MEASURABLE_IDENTITY_WINDOW, SITE_SHELL_SERVED_CAPABILITIES, DIST_SHELLS, DEFAULT_DIST_SHELL, DEFAULT_BORROWABLE_IOS_IDS, BUNDLE_ID_RE, DEFAULT_DIST_SIGNING, WIX_MANAGED_SIGNING_ALIASES, DEFAULT_ANDROID_SIGNING, ANDROID_SIGNING_POLICIES, ANDROID_SIGNING_ALIASES, DEFAULT_ANDROID_FORMAT, ANDROID_FORMATS, ANDROID_FORMAT_NOT_BUILT, ANDROID_FORMAT_WRONG_SIGNER, ANDROID_FORMAT_NOT_REQUESTED, DEFAULT_ANDROID_BUILD_TYPE, ANDROID_BUILD_TYPES, ANDROID_BUILD_TYPE_NOT_BUILT, DEFAULT_IOS_FORMAT, IOS_FORMATS, IOS_FORMAT_NOT_BUILT, IOS_FORMAT_NOT_REQUESTED, DEFAULT_GIT_URL, DIST_PACKAGE_NAME, DIST_PARAMS_FLAG, MAX_COMMAND_CHARS;
|
|
8904
|
+
var DESKTOP_DIST_PLATFORMS, DIST_ERROR_CODES, APPLE_ERROR_CODES_MAX, IN_FLIGHT, JOB_SERVICE_ENDED, SCOPE_CREATE, SCOPE_READ, SCOPE_CANCEL, DEFAULT_BASE_URL, DEFAULT_OAUTH_URL, TOKEN_TTL_MS, JobServiceError, JobServiceBroker, CUSTOMER_UPLOAD_LEASE_MS, CUSTOMER_UPLOAD_RETRY_DELAYS_MS, CUSTOMER_UPLOAD_MAX_ATTEMPTS, CUSTOMER_UPLOAD_ABANDONED, MAX_MEASURABLE_IDENTITY_WINDOW, SITE_SHELL_SERVED_CAPABILITIES, DIST_SHELLS, DEFAULT_DIST_SHELL, DEFAULT_BORROWABLE_IOS_IDS, BUNDLE_ID_RE, DEFAULT_DIST_SIGNING, WIX_MANAGED_SIGNING_ALIASES, DEFAULT_ANDROID_SIGNING, ANDROID_SIGNING_POLICIES, ANDROID_SIGNING_ALIASES, LINUX_ANDROID_SIGNING_POLICIES, DEFAULT_ANDROID_FORMAT, ANDROID_FORMATS, ANDROID_FORMAT_NOT_BUILT, ANDROID_FORMAT_WRONG_SIGNER, ANDROID_FORMAT_NOT_REQUESTED, DEFAULT_ANDROID_BUILD_TYPE, ANDROID_BUILD_TYPES, ANDROID_BUILD_TYPE_NOT_BUILT, DEFAULT_IOS_FORMAT, IOS_FORMATS, IOS_FORMAT_NOT_BUILT, IOS_FORMAT_NOT_REQUESTED, DEFAULT_GIT_URL, DIST_PACKAGE_NAME, DIST_PARAMS_FLAG, MAX_COMMAND_CHARS;
|
|
8898
8905
|
var init_dist_jobs = __esm({
|
|
8899
8906
|
"../../core/serve-control/src/dist-jobs.ts"() {
|
|
8900
8907
|
init_define_HHP_CATALOG();
|
|
@@ -9185,6 +9192,7 @@ var init_dist_jobs = __esm({
|
|
|
9185
9192
|
// The CLI's word for an owner bundle. `unsigned` is the fact about the file, which the pool reports.
|
|
9186
9193
|
owner: "unsigned"
|
|
9187
9194
|
};
|
|
9195
|
+
LINUX_ANDROID_SIGNING_POLICIES = ["qa-keystore", "oneapp-debug", "debug"];
|
|
9188
9196
|
DEFAULT_ANDROID_FORMAT = "apk";
|
|
9189
9197
|
ANDROID_FORMATS = ["apk", "aab"];
|
|
9190
9198
|
ANDROID_FORMAT_NOT_BUILT = "android_format_not_built";
|
|
@@ -45951,7 +45959,6 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
45951
45959
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
45952
45960
|
var init_idiom = __esm({
|
|
45953
45961
|
"../../core/ts/src/idiom.ts"() {
|
|
45954
|
-
"use strict";
|
|
45955
45962
|
init_define_HHP_CATALOG();
|
|
45956
45963
|
IDIOM_CONTEXTS = {
|
|
45957
45964
|
ios: { native: ["ios"] },
|
|
@@ -47721,7 +47728,6 @@ function shouldRevealError(args) {
|
|
|
47721
47728
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
47722
47729
|
var init_validation = __esm({
|
|
47723
47730
|
"../../core/ts/src/validation.ts"() {
|
|
47724
|
-
"use strict";
|
|
47725
47731
|
init_define_HHP_CATALOG();
|
|
47726
47732
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
47727
47733
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -170825,7 +170831,7 @@ Guides: ${DEVELOPER_PORTAL_URL}`;
|
|
|
170825
170831
|
{ 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)" },
|
|
170826
170832
|
{ 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)" },
|
|
170827
170833
|
{ 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)" },
|
|
170828
|
-
{ name: "dist", summary: "build an INSTALLABLE QA binary (signed IPA / APK) on the Wix Job Service Mac
|
|
170834
|
+
{ name: "dist", summary: "build an INSTALLABLE QA binary (signed IPA / APK) on the Wix Job Service pool (Mac; a signed QA APK on its Linux runner) 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. `--platform macos-desktop`, `windows-desktop` and `linux-desktop` build Himi Desktop installers (a `.dmg` for Apple silicon, an NSIS `.exe`, an AppImage) with the release baked in, from any shell; each is an unsigned download link, never a phone QR, and needs a published release. `--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,macos-desktop,windows-desktop,linux-desktop] [--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>]" },
|
|
170829
170835
|
{ 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]" },
|
|
170830
170836
|
{ 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]" },
|
|
170831
170837
|
{ name: "guide", summary: "print the Himalaya overview + headless dev loop + available topics (offline)", required: "[--json]" },
|
package/guides/qa-builds.md
CHANGED
|
@@ -181,7 +181,9 @@ Android keeps its normal, account-neutral application ID.
|
|
|
181
181
|
|
|
182
182
|
This pipeline produces QA builds **on demand**, **without any GitHub secrets** —
|
|
183
183
|
the commit-triggered path folds into Falcon's Argus Job Service job: Mac for iOS,
|
|
184
|
-
Linux for Android. Brokered `himi dist` jobs use Mac workers for iOS and Android
|
|
184
|
+
Linux for Android. Brokered `himi dist` jobs use Mac workers for iOS, and for Android when the
|
|
185
|
+
key or format needs one; a signed QA APK builds on Linux ([Which runner builds an Android
|
|
186
|
+
job](#which-runner-builds-an-android-job)).
|
|
185
187
|
CI credentials come from the Falcon databag; iOS signing certs are already on the Mac
|
|
186
188
|
machines. It's modeled on `wix-private/ai-scheduling-assistant` `native-apps/scripts/ci-ios.sh`
|
|
187
189
|
+ the `wix-private/mre` S3/distributer infra.
|
|
@@ -216,8 +218,9 @@ There are two paths to the same artifact. Pick by whether you have the repo.
|
|
|
216
218
|
| Good for | an off-repo developer or coding agent | a change you are already pushing |
|
|
217
219
|
|
|
218
220
|
Both run `tools/mobile-dist/run-dist.ts`. Brokered requests use the Wix Job Service
|
|
219
|
-
Mac pool
|
|
220
|
-
|
|
221
|
+
Mac pool, except a signed QA APK, which builds on its Linux runner ([Which runner builds an
|
|
222
|
+
Android job](#which-runner-builds-an-android-job)); tagged commits use the validation job's pool
|
|
223
|
+
(Mac for iOS, Linux for Android). The brokered path replaces "push a commit and wait for Falcon"
|
|
221
224
|
with "ask the serve plane".
|
|
222
225
|
|
|
223
226
|
## Path A — `himi dist` (no repo needed)
|
|
@@ -1209,6 +1212,34 @@ machine with no Wix material fails the build naming the paths it searched; it do
|
|
|
1209
1212
|
the QA key that is sitting right there. That matters because an APK signed by an unexpected key is
|
|
1210
1213
|
indistinguishable downstream — it verifies, installs, uploads, and the job reports SUCCESS.
|
|
1211
1214
|
|
|
1215
|
+
#### Which runner builds an Android job
|
|
1216
|
+
|
|
1217
|
+
A signed APK needs no Mac, so the plane sends it to Job Service's **Linux** runner
|
|
1218
|
+
(`LINUX_NODE_COMMAND` on `bk-mobile-linux`, native-ci's `linux:dist:android`) when all of these hold:
|
|
1219
|
+
|
|
1220
|
+
| Condition | Why |
|
|
1221
|
+
|---|---|
|
|
1222
|
+
| an APK, not `--aab` | a Play bundle signs only with the Wix production key |
|
|
1223
|
+
| `--android-signing` is `qa-keystore`, `oneapp-debug` or `debug` | the first two are committed to the repo and gradle mints the third, so every Linux agent has them |
|
|
1224
|
+
| no operator `DIST_ANDROID_KEYSTORE` in the plane's dist env | that names a file on the Mac machines |
|
|
1225
|
+
| the release's shell commit carries `linuxAndroidDist: 1` in its dist signing-protocol marker | an older commit was never proven there. It keeps building on the Mac |
|
|
1226
|
+
|
|
1227
|
+
Everything else builds on a Mac as before: `wix-keystore` (its `oneapp-production.keystore`
|
|
1228
|
+
ships in the Mac image and its `oneapp-signing.gradle` comes from Vault `FILE_ONEAPP_SIGNING`; no
|
|
1229
|
+
Linux agent is provisioned with either), every `--aab` (store builds, play-internal, OneApp
|
|
1230
|
+
migrations) and every iOS / macOS / desktop build. An owner bundle (`unsigned`) was already on Linux.
|
|
1231
|
+
Nothing is refused by this choice: a marker that cannot be read sends the job to a Mac.
|
|
1232
|
+
A Linux pod starts with no gradle cache, so a branded-lite compile takes 19-20 minutes there (about 4
|
|
1233
|
+
on a warm Mac). So run-dist's per-command timeout is 40 minutes on Linux instead of 20
|
|
1234
|
+
(`distCmdTimeoutMs`; `DIST_CMD_TIMEOUT_MS` still overrides it): the old default killed one measured
|
|
1235
|
+
run at 19m57s.
|
|
1236
|
+
`HIMI_DIST_ANDROID_LINUX=0` on the serve config (Dev Portal "Configs") sends every signed Android
|
|
1237
|
+
job back to a Mac without a deploy.
|
|
1238
|
+
|
|
1239
|
+
Moving `wix-keystore` APKs too would need `oneapp-production.keystore` and `oneapp-signing.gradle`
|
|
1240
|
+
(Vault `FILE_ONEAPP_SIGNING`) installed in `~/.signing` or `/opt/files/.signing` on the
|
|
1241
|
+
`bk-mobile-linux` agents, plus a `linuxAndroidDist`-style proof run.
|
|
1242
|
+
|
|
1212
1243
|
**`wix-keystore` is internal-only.** It resolves to the One App *store* signing key, so the public
|
|
1213
1244
|
self-serve door refuses it with `403 android_signing_not_allowed` and names `qa-keystore` / `debug`
|
|
1214
1245
|
as what remains open. The gate keys on the **self-serve** claim rather than the role, because
|
|
@@ -1305,7 +1336,11 @@ DIST_ANDROID_KEYSTORE=/path/to/key.jks DIST_ANDROID_KEYSTORE_PASS=… DIST_ANDRO
|
|
|
1305
1336
|
```
|
|
1306
1337
|
|
|
1307
1338
|
That tier outranks every other source, so the committed key stops being used the moment a real one
|
|
1308
|
-
exists. Delete it then — nothing else references it.
|
|
1339
|
+
exists. Delete it then — nothing else references it. **Provision it on both runners**: a QA APK
|
|
1340
|
+
builds on the Linux runner ([Which runner builds an Android job](#which-runner-builds-an-android-job)),
|
|
1341
|
+
and a key set only on the Mac machines would leave those builds on the committed key. Until the Linux
|
|
1342
|
+
agents have it, set `HIMI_DIST_ANDROID_LINUX=0` so every APK builds on the Mac. (A key in the plane's
|
|
1343
|
+
own dist env keeps its jobs on the Mac by itself.)
|
|
1309
1344
|
|
|
1310
1345
|
**One thing it does NOT yet buy.** The cert-derived features (SMS Retriever's hash, Google
|
|
1311
1346
|
sign-in's SHA-1) need this certificate's SHA-1 *registered* with the relevant Wix/Google project,
|
|
@@ -1657,7 +1692,7 @@ uploads Himi didn't build, add `--min-version-code <the listing's highest + 1>`.
|
|
|
1657
1692
|
- **Why unsigned, not QA-signed:** Google Play should refuse an unsigned file on upload, so forgetting
|
|
1658
1693
|
to sign costs nothing. A QA signature would be accepted, and would tie the listing to a key committed
|
|
1659
1694
|
to this repo.
|
|
1660
|
-
- **It runs on Linux
|
|
1695
|
+
- **It runs on Linux,** as a signed QA APK does ([Which runner builds an Android job](#which-runner-builds-an-android-job)): `linux:dist:android` runs
|
|
1661
1696
|
`native-ci/scripts/run-android.mjs`, which sets up the Android SDK and JDK before `run-dist`.
|
|
1662
1697
|
- **The inputs come from the request:** `androidPackageName` and `googleServicesJson`, with nothing read
|
|
1663
1698
|
from Branded, the Firebase pool or mobile-apps-containers-builder. The file must pass the check above
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2029.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": "c88923e0d32024ad37e193eb60d5489fa37d56e4995e80f31a2e6cab"
|
|
86
86
|
}
|