@pmate/cli 0.41.1 → 0.42.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/README.md +11 -1
- package/dist/index.js +780 -478
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -363,6 +363,16 @@ Android services use `pmate service deploy pmate:merry-android`. The primary ser
|
|
|
363
363
|
|
|
364
364
|
Use --variant, --bump, --force, --release-notes or --minimum-version-code to override release options. --dry-run prints the plan without incrementing versions, resolving signing secrets, building or uploading. Android currently does not support --local/--unsigned. service apk release was removed; service apk list remains a query.
|
|
365
365
|
|
|
366
|
-
HarmonyOS NEXT projects exist in parrot-native (apps/pmate-app-harmony and apps/time-duck-harmony). They
|
|
366
|
+
HarmonyOS NEXT projects exist in parrot-native (apps/pmate-app-harmony and apps/time-duck-harmony). They have signed build scripts and a GitHub Actions workflow; CLI 0.42.0+ also supports a harmonyos service through service deploy. AppGallery submission is separate.
|
|
367
367
|
|
|
368
368
|
Android production releases check the existing current and compatibility update manifests before changing source versions or loading signing secrets. A candidate versionCode must exceed every published versionCode; stale checkouts are rejected and must be updated explicitly. APK package identity must match the registered service before upload.
|
|
369
|
+
|
|
370
|
+
### HarmonyOS distribution
|
|
371
|
+
|
|
372
|
+
`pmate service deploy pmate:merry-harmony` dispatches a harmonyos service. mobile holds bundleName, repository and dir; build.script defaults to scripts/build-release.sh. The service must associate exactly one app ID. The source AppScope/app.json5 controls the published version. Only prod is supported. --dry-run inspects the plan without SDK or secrets; --local builds verified signed artifacts without upload; --out-dir overrides the local output base. Other platforms' flags are rejected.
|
|
373
|
+
|
|
374
|
+
Install the DevEco SDK, ohpm, Hvigor and Java. Configure DEVECO_SDK_HOME, OHPM_BIN, HVIGORW_BIN, optionally NODE_BIN, JAVA_BIN and HAP_SIGN_TOOL for non-default installations. Service prod Secrets are HARMONY_KEYSTORE_BASE64, HARMONY_CERTIFICATE_BASE64, HARMONY_PROFILE_BASE64, HARMONY_STORE_PASSWORD, HARMONY_KEY_ALIAS and HARMONY_KEY_PASSWORD. Local signing variables are not used. Missing tools or credentials stop the real build.
|
|
375
|
+
|
|
376
|
+
Builds run in private temporary source/SDK copies. The CLI verifies APP, HAP and embedded module signatures, signer certificate and compiled identity/version, then uploads both files and immutable release.json under harmony/<namespace>/<service>/<versionName>/<versionCode>/ in parrot-static, followed by latest.json. Existing or older versions are rejected. Native service history records the manifest URL. Signing keys and temporary sources are cleaned; logs and verified local outputs remain under ~/.pmate/harmony-builds/ by default. Publication means OSS distribution, not AppGallery submission, approval or device installation.
|
|
377
|
+
|
|
378
|
+
HarmonyOS publication uses an ownership-checked service lock in an unversioned OSS bucket and forbid-overwrite for immutable files. It checks the latest version again under the lock. Interrupted publishers may leave a lock; confirm they have stopped before clearing it. The CLI does not automatically steal stale locks.
|