@wix/himalaya-cli 0.2035.0 → 0.2036.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 +3 -1
- package/guides/qa-builds.md +68 -22
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -3964,6 +3964,7 @@ 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";
|
|
3967
3968
|
init_define_HHP_CATALOG();
|
|
3968
3969
|
ICON_VIEW_BOX = 24;
|
|
3969
3970
|
ICON_STROKE_WIDTH = 2;
|
|
@@ -48378,6 +48379,7 @@ function shouldRevealError(args) {
|
|
|
48378
48379
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
48379
48380
|
var init_validation = __esm({
|
|
48380
48381
|
"../../core/ts/src/validation.ts"() {
|
|
48382
|
+
"use strict";
|
|
48381
48383
|
init_define_HHP_CATALOG();
|
|
48382
48384
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
48383
48385
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -171481,7 +171483,7 @@ Guides: ${DEVELOPER_PORTAL_URL}`;
|
|
|
171481
171483
|
{ 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)" },
|
|
171482
171484
|
{ 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)" },
|
|
171483
171485
|
{ 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)" },
|
|
171484
|
-
{ name: "dist", summary: "build an INSTALLABLE QA binary (signed IPA / APK) on the Wix Job Service pool (Mac; a signed QA APK
|
|
171486
|
+
{ name: "dist", summary: "build an INSTALLABLE QA binary (signed IPA / APK) on the Wix Job Service pool (Mac by default; the plane can send a signed QA APK to 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 | nano) 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, demo-app and nano (Nano's own 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|nano] [--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>]" },
|
|
171485
171487
|
{ 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]" },
|
|
171486
171488
|
{ 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]" },
|
|
171487
171489
|
{ name: "guide", summary: "print the Himalaya overview + headless dev loop + available topics (offline)", required: "[--json]" },
|
package/guides/qa-builds.md
CHANGED
|
@@ -206,7 +206,8 @@ Android keeps its normal, account-neutral application ID.
|
|
|
206
206
|
This pipeline produces QA builds **on demand**, **without any GitHub secrets** —
|
|
207
207
|
the commit-triggered path folds into Falcon's Argus Job Service job: Mac for iOS,
|
|
208
208
|
Linux for Android. Brokered `himi dist` jobs use Mac workers for iOS, and for Android when the
|
|
209
|
-
key or format needs one
|
|
209
|
+
key or format needs one. A signed QA APK builds on a Mac too unless the plane's Linux switch
|
|
210
|
+
(`HIMI_DIST_ANDROID_LINUX=1`) is on ([Which runner builds an Android
|
|
210
211
|
job](#which-runner-builds-an-android-job)).
|
|
211
212
|
CI credentials come from the Falcon databag; iOS signing certs are already on the Mac
|
|
212
213
|
machines. It's modeled on `wix-private/ai-scheduling-assistant` `native-apps/scripts/ci-ios.sh`
|
|
@@ -242,8 +243,8 @@ There are two paths to the same artifact. Pick by whether you have the repo.
|
|
|
242
243
|
| Good for | an off-repo developer or coding agent | a change you are already pushing |
|
|
243
244
|
|
|
244
245
|
Both run `tools/mobile-dist/run-dist.ts`. Brokered requests use the Wix Job Service
|
|
245
|
-
Mac pool
|
|
246
|
-
Android job](#which-runner-builds-an-android-job)); tagged commits use the validation job's pool
|
|
246
|
+
Mac pool; a signed QA APK goes to its Linux runner only while the plane's Linux switch is on
|
|
247
|
+
([Which runner builds an Android job](#which-runner-builds-an-android-job)); tagged commits use the validation job's pool
|
|
247
248
|
(Mac for iOS, Linux for Android). The brokered path replaces "push a commit and wait for Falcon"
|
|
248
249
|
with "ask the serve plane".
|
|
249
250
|
|
|
@@ -1257,8 +1258,19 @@ indistinguishable downstream — it verifies, installs, uploads, and the job rep
|
|
|
1257
1258
|
|
|
1258
1259
|
#### Which runner builds an Android job
|
|
1259
1260
|
|
|
1260
|
-
|
|
1261
|
-
|
|
1261
|
+
**Signed Android jobs build on a Mac by default.** A warm Mac runs a branded-lite QA APK in
|
|
1262
|
+
about 7 minutes; Job Service's Linux runner takes 10-13 with the Gradle cache below and 21-23 without.
|
|
1263
|
+
The Linux runner is kept as a switch for capacity tests:
|
|
1264
|
+
|
|
1265
|
+
| Serve config (Dev Portal "Configs") | Signed Android jobs build on |
|
|
1266
|
+
|---|---|
|
|
1267
|
+
| `HIMI_DIST_ANDROID_LINUX` unset, or anything but `1` | a Mac (the default) |
|
|
1268
|
+
| `HIMI_DIST_ANDROID_LINUX=1` | the Linux runner, for each job that passes every condition in the next table; the rest stay on the Mac |
|
|
1269
|
+
|
|
1270
|
+
The plane reads the switch at every dispatch, so a change takes effect on the next job, without a deploy.
|
|
1271
|
+
|
|
1272
|
+
With the switch on, the plane sends a signed APK to the **Linux** runner (`LINUX_NODE_COMMAND` on
|
|
1273
|
+
`bk-mobile-linux`, native-ci's `linux:dist:android`) when all of these hold:
|
|
1262
1274
|
|
|
1263
1275
|
| Condition | Why |
|
|
1264
1276
|
|---|---|
|
|
@@ -1267,21 +1279,55 @@ A signed APK needs no Mac, so the plane sends it to Job Service's **Linux** runn
|
|
|
1267
1279
|
| no operator `DIST_ANDROID_KEYSTORE` in the plane's dist env | that names a file on the Mac machines |
|
|
1268
1280
|
| 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 |
|
|
1269
1281
|
|
|
1270
|
-
Everything else builds on a Mac
|
|
1271
|
-
ships in the Mac image and its `oneapp-signing.gradle` comes from Vault `FILE_ONEAPP_SIGNING`;
|
|
1272
|
-
|
|
1273
|
-
migrations) and every iOS / macOS / desktop build. An
|
|
1282
|
+
Everything else builds on a Mac, switch or no switch: `wix-keystore` (its `oneapp-production.keystore`
|
|
1283
|
+
ships in the Mac image and its `oneapp-signing.gradle` comes from Vault `FILE_ONEAPP_SIGNING`; a Linux
|
|
1284
|
+
job was seen with both in `/root/.signing`, but no Linux run has resolved or signed with them yet),
|
|
1285
|
+
every `--aab` (store builds, play-internal, OneApp migrations) and every iOS / macOS / desktop build. An
|
|
1286
|
+
owner bundle (`unsigned`) builds on Linux regardless of this switch, as it did before it existed.
|
|
1274
1287
|
Nothing is refused by this choice: a marker that cannot be read sends the job to a Mac.
|
|
1275
|
-
A Linux pod starts with
|
|
1276
|
-
on a warm Mac). So run-dist's per-command timeout is 40 minutes on Linux instead of 20
|
|
1288
|
+
A Linux pod starts with an empty Gradle home, so a cold branded-lite compile takes 19-21 minutes there
|
|
1289
|
+
(about 4 on a warm Mac). So run-dist's per-command timeout is 40 minutes on Linux instead of 20
|
|
1277
1290
|
(`distCmdTimeoutMs`; `DIST_CMD_TIMEOUT_MS` still overrides it): the old default killed one measured
|
|
1278
1291
|
run at 19m57s.
|
|
1279
|
-
`HIMI_DIST_ANDROID_LINUX=0` on the serve config (Dev Portal "Configs") sends every signed Android
|
|
1280
|
-
job back to a Mac without a deploy.
|
|
1281
1292
|
|
|
1282
|
-
|
|
1283
|
-
(
|
|
1284
|
-
`
|
|
1293
|
+
**A Gradle home cache for Linux jobs, OFF by default.** With `HIMI_DIST_GRADLE_CACHE=1` on the serve
|
|
1294
|
+
config (read at every dispatch, like the runner switch), a Linux job restores a tarball of `~/.gradle`
|
|
1295
|
+
(`caches/` and `wrapper/dists`: the Gradle distribution, the downloaded dependencies and their
|
|
1296
|
+
transforms) from the Android dist bucket before gradle runs, under
|
|
1297
|
+
`gradle-home-cache/himalaya/<shell>/gradle-<version>.tar.gz`. About 1 GB, restored in about 20 s.
|
|
1298
|
+
That takes gradle from about 21 minutes to 8-11, and the whole job from 21-23 minutes to 10-13, to
|
|
1299
|
+
the install link. It is the pattern MRE uses for its own Linux Android builds. It is off until
|
|
1300
|
+
snapshots carry a provenance check; see "Why the cache is off by default" below.
|
|
1301
|
+
|
|
1302
|
+
| | Saves the snapshot? |
|
|
1303
|
+
|---|---|
|
|
1304
|
+
| a job whose release commit is on `origin/master`, with no extension code in its contract | yes, after the result is delivered (about a minute, and never delays the install link) |
|
|
1305
|
+
| a branch commit, or a contract that carries extension code | no: it restores and never writes |
|
|
1306
|
+
|
|
1307
|
+
The build cache (`caches/build-cache-*`) is never saved, because a dist job's task outputs carry the
|
|
1308
|
+
customer's contract (name, icon, seed). Signing material is never in the Gradle home either. A missing
|
|
1309
|
+
snapshot, a failed download or a failed upload is logged and the job carries on as a cold build. A
|
|
1310
|
+
snapshot that is not made of plain folders and files (a symbolic link, a device, a FIFO, a socket, or a
|
|
1311
|
+
file where `caches` should be) is refused the same way as a missing one. A new Gradle version in the
|
|
1312
|
+
shell's wrapper starts a new snapshot. Owner bundles (the unsigned AABs, built on Linux) restore and
|
|
1313
|
+
save the same snapshot when the cache is on.
|
|
1314
|
+
|
|
1315
|
+
**Why the cache is off by default (provenance).** The "branch jobs never save" rule is enforced by the
|
|
1316
|
+
job's own code, not by S3. A branch job runs with the same bucket credentials as a master job (it needs
|
|
1317
|
+
them to upload its APK), so code on a branch could upload a crafted snapshot that a later master job
|
|
1318
|
+
restores and runs. The checks above bound where a bad snapshot can reach; they do not prove who wrote
|
|
1319
|
+
it. Before `HIMI_DIST_GRADLE_CACHE` can default on, one of these has to exist:
|
|
1320
|
+
|
|
1321
|
+
- **A plane-attested digest** (doable in this repo, no new infrastructure): the result callback reports
|
|
1322
|
+
the saved snapshot's sha256; serve-control records it only after GitHub confirms the job's release
|
|
1323
|
+
commit is on master; the contract hands it to later jobs, which restore only a snapshot whose sha256
|
|
1324
|
+
matches.
|
|
1325
|
+
- **An IAM split** (infrastructure this repo does not own): a policy that denies the dist credentials
|
|
1326
|
+
writes under `gradle-home-cache/`, plus a writer role used only by builds of master commits.
|
|
1327
|
+
|
|
1328
|
+
Moving `wix-keystore` APKs too would need a proof run that resolves and signs with
|
|
1329
|
+
`oneapp-production.keystore` and `oneapp-signing.gradle` on a `bk-mobile-linux` agent (one job listed
|
|
1330
|
+
both in `/root/.signing`), then a `linuxAndroidDist`-style marker bump.
|
|
1285
1331
|
|
|
1286
1332
|
**`wix-keystore` is internal-only.** It resolves to the One App *store* signing key, so the public
|
|
1287
1333
|
self-serve door refuses it with `403 android_signing_not_allowed` and names `qa-keystore` / `debug`
|
|
@@ -1379,11 +1425,11 @@ DIST_ANDROID_KEYSTORE=/path/to/key.jks DIST_ANDROID_KEYSTORE_PASS=… DIST_ANDRO
|
|
|
1379
1425
|
```
|
|
1380
1426
|
|
|
1381
1427
|
That tier outranks every other source, so the committed key stops being used the moment a real one
|
|
1382
|
-
exists. Delete it then — nothing else references it. **Provision it on both runners
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
own dist env keeps its jobs on the Mac by itself.)
|
|
1428
|
+
exists. Delete it then — nothing else references it. **Provision it on both runners** before you
|
|
1429
|
+
turn on `HIMI_DIST_ANDROID_LINUX=1`: with that switch on, a QA APK builds on the Linux runner
|
|
1430
|
+
([Which runner builds an Android job](#which-runner-builds-an-android-job)), and a key set only on the
|
|
1431
|
+
Mac machines would leave those builds on the committed key. With the switch off (the default) every
|
|
1432
|
+
APK builds on the Mac. (A key in the plane's own dist env keeps its jobs on the Mac by itself.)
|
|
1387
1433
|
|
|
1388
1434
|
**One thing it does NOT yet buy.** The cert-derived features (SMS Retriever's hash, Google
|
|
1389
1435
|
sign-in's SHA-1) need this certificate's SHA-1 *registered* with the relevant Wix/Google project,
|
|
@@ -1735,7 +1781,7 @@ uploads Himi didn't build, add `--min-version-code <the listing's highest + 1>`.
|
|
|
1735
1781
|
- **Why unsigned, not QA-signed:** Google Play should refuse an unsigned file on upload, so forgetting
|
|
1736
1782
|
to sign costs nothing. A QA signature would be accepted, and would tie the listing to a key committed
|
|
1737
1783
|
to this repo.
|
|
1738
|
-
- **It runs on Linux,**
|
|
1784
|
+
- **It runs on Linux,** always, whatever the `HIMI_DIST_ANDROID_LINUX` switch says ([Which runner builds an Android job](#which-runner-builds-an-android-job)): `linux:dist:android` runs
|
|
1739
1785
|
`native-ci/scripts/run-android.mjs`, which sets up the Android SDK and JDK before `run-dist`.
|
|
1740
1786
|
- **The inputs come from the request:** `androidPackageName` and `googleServicesJson`, with nothing read
|
|
1741
1787
|
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.2036.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": "963630ae858c99471b633eb7e282118c29e74f0250b765bb3b9a6251"
|
|
86
86
|
}
|