@smbcloud / smbcloud-ascapi Mirror · read-only
Fork 0

Read-only mirror of github.com/smbcloudXYZ/smbcloud-ascapi.

Mirrored from https://github.com/smbcloudXYZ/smbcloud-ascapi.git

Synced Nov 25, 09:15 UTC

1 # AppGallery
2
3 `asc appgallery` uses an AppGallery Connect Service Account (developer-level,
4 with a publishing role), not the App Store Connect key:
5
6 | Flag | Environment variable | Notes |
7 | --- | --- | --- |
8 | `--service-account` | `APPGALLERY_SERVICE_ACCOUNT_JSON_PATH` | The `*private.json` file; or its contents in `APPGALLERY_SERVICE_ACCOUNT_JSON`. |
9 | `--client-id` | `APPGALLERY_CLIENT_ID` | Optional `client_id` header. |
10
11 ```sh
12 asc appgallery app-id xyz.smbcloud.SiGit
13 asc appgallery listings list <APP> [--lang en-US] # every field the API returns
14 asc appgallery listings update <APP> --lang en-US --brief "..." --release-notes-file notes.txt
15 asc appgallery listings delete <APP> --lang id
16 asc appgallery info update <APP> --privacy-policy URL [--category ID --category-tag ID]
17 [--publish-country CODES] [--developer-website URL] [--device-types JSON] ...
18 asc appgallery files upload <APP> --type icon --lang en-US icon-216.png
19 asc appgallery files upload <APP> --type screenshots --orientation portrait --lang en-US 1.png 2.png
20 asc appgallery files upload <APP> --type package siGit.apk # chineseMainlandFlag=0 unless --chinese-mainland
21 asc appgallery packages list <APP>
22 asc appgallery packages status <APP> <PKG_ID>...
23 asc appgallery gms <APP> --needs-gms false
24 asc appgallery submit <APP> [--release-time T] [--remark TEXT] [--phased-start T --phased-end T --phased-percent P --phased-description D]
25 asc appgallery phased-release <APP> (--to-full | --state SUSPEND|RELEASE | --phased-percent P ...)
26 asc appgallery release-time <APP> (--immediately | --at T)
27 ```
28
29 `<APP>` is the numeric app id or the package name. Every write takes
30 `--dry-run`. Binding an image or video for a language clears that language's
31 text; `files upload` reads the text first and writes it back if it went
32 missing. MCP has three read-only tools: `appgallery_app_info_get`,
33 `appgallery_package_list` and `appgallery_package_status`.
34
35 Not covered: the "download mode" submit and package calls, which need a
36 public package URL and a callback server for Huawei to report to.