Przeglądaj źródła

MSIX: LYNX's real Partner Center identity (KA1WARE.LYNXSHARE) as the layout defaults; docs with family name and Store ID

Ka1-S 1 miesiąc temu
rodzic
commit
d71d4fcb7a
3 zmienionych plików z 30 dodań i 21 usunięć
  1. 15 12
      docs/STORE.md
  2. 10 7
      scripts/make-msix-layout.py
  3. 5 2
      store/CHECKLIST.pt-BR.md

+ 15 - 12
docs/STORE.md

@@ -37,15 +37,17 @@ is in the repository:
   `Package/Identity/Publisher` and `Package/Properties/PublisherDisplayName`. Copy them into the repository variables
   (GitHub › Settings › Secrets and variables › Actions › *Variables*):
 
-  | Variable | Value from Partner Center | Placeholder until then |
+  | Variable | Partner Center field | LYNX's value (set 2026-10-27) |
   |---|---|---|
-  | `MSIX_IDENTITY_NAME` | Package/Identity/Name, e.g. `12345Ka1-S.LYNX` | `LYNX.DAW` |
-  | `MSIX_PUBLISHER` | Package/Identity/Publisher, e.g. `CN=1A2B3C4D-…` | `CN=LYNX` |
-  | `MSIX_PUBLISHER_DISPLAY` | Package/Properties/PublisherDisplayName | `LYNX` |
-  | `MSIX_DISPLAY_NAME` | the reserved app name (only if it changes) | `LYNX SHARE` |
+  | `MSIX_IDENTITY_NAME` | Package/Identity/Name | `KA1WARE.LYNXSHARE` |
+  | `MSIX_PUBLISHER` | Package/Identity/Publisher | `CN=BACBB786-A595-4AC3-9807-A70EAA268E4C` |
+  | `MSIX_PUBLISHER_DISPLAY` | Package/Properties/PublisherDisplayName | `KA1WARE` |
+  | `MSIX_DISPLAY_NAME` | the reserved app name | `LYNX SHARE` |
 
-  A package built with the placeholders is valid but Partner Center rejects it ("identity does not match"): set the
-  variables first, then run the workflow (tag push, or *Actions › Release › Run workflow*).
+  Package family name **`KA1WARE.LYNXSHARE_sj8hjwabzpdr8`**, Store ID **`9NQRFBFDCX6N`** (once live:
+  <https://apps.microsoft.com/detail/9NQRFBFDCX6N>, `ms-windows-store://pdp/?ProductId=9NQRFBFDCX6N`).
+  `make-msix-layout.py` uses the same values as defaults, so a local package is the release workflow's package.
+  A package with another identity is rejected by Partner Center ("identity does not match").
 
 ## What the workflow does
 
@@ -54,10 +56,11 @@ In the `package` job (Windows), after the self-test, the editor windows test and
 1. `make-msix-layout.py` builds the layout; `makepri` indexes the scale / target-size assets into `resources.pri`
    (languages `en-US`, `pt-BR`); `makeappx pack` writes **`LYNX-<label>-store.msix`** (unsigned — the Store signs it).
    It goes into the release assets and `SHA256SUMS.txt` like every other file.
-2. **Install test:** the same layout with a *test identity* (the publisher gets Windows' "unsigned package" OID
-   `2.25.311729368913984317654407730594956997722`, so it installs without a certificate and can never clash with the
-   Store's) is installed with `Add-AppxPackage -AllowUnsigned`, then LYNX runs **inside the package** through its
-   execution alias: `--packageinfo` must report the package identity and a settings folder on the real disk (checked
+2. **Install test:** the same layout and identity name (`KA1WARE.LYNXSHARE`), except that the publisher gets Windows'
+   "unsigned package" OID `2.25.311729368913984317654407730594956997722` appended (`--test-identity`): that is what
+   lets an unsigned package install at all, and it gives the test package its own family name, so it can never clash
+   with the Store-signed one. Everything else (files, manifest, assets, resources.pri) is the Store package's. It is
+   installed with `Add-AppxPackage -AllowUnsigned`, then LYNX runs **inside the package** through its execution alias: `--packageinfo` must report the package identity and a settings folder on the real disk (checked
    from outside the package, like Explorer would), and `--selftest` must pass. The package is removed afterwards.
 
 ## LYNX inside a package
@@ -95,7 +98,7 @@ Installing an unsigned package needs an elevated PowerShell, and registering a l
 python scripts\make-msix-layout.py --version 0.1.20 --bin build-win --out msix-test --test-identity --loose --extra LICENSE
 Add-AppxPackage -Register msix-test\AppxManifest.xml   # (loose files: no makepri/makeappx needed)
 lynx --packageinfo $PWD\packageinfo.txt; Get-Content packageinfo.txt
-Get-AppxPackage LYNX.DAW | Remove-AppxPackage
+Get-AppxPackage KA1WARE.LYNXSHARE | Remove-AppxPackage
 ```
 
 ## Store policy check

+ 10 - 7
scripts/make-msix-layout.py

@@ -8,7 +8,7 @@ Usage:
                               [--extra file ...]
 
 The identity defaults come from the environment (MSIX_IDENTITY_NAME, MSIX_PUBLISHER, MSIX_PUBLISHER_DISPLAY: the
-repository variables, copied from Partner Center › Product identity) and fall back to placeholders; MSIX_DISPLAY_NAME
+repository variables, copied from Partner Center › Product identity) and fall back to the same values; MSIX_DISPLAY_NAME
 is the app name reserved in Partner Center (default "LYNX SHARE"; Start menu and the app itself say LYNX). --test-identity
 appends Windows' "unsigned package" OID to the publisher, so `Add-AppxPackage -AllowUnsigned` installs the package
 for a test (it can then never clash with the Store-signed one). See docs/STORE.md.
@@ -20,9 +20,12 @@ import shutil
 import sys
 
 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-PLACEHOLDER_NAME = "LYNX.DAW"
-PLACEHOLDER_PUBLISHER = "CN=LYNX"
-PLACEHOLDER_DISPLAY = "LYNX"
+# LYNX's identity in Partner Center (Product identity; family name KA1WARE.LYNXSHARE_sj8hjwabzpdr8, Store ID
+# 9NQRFBFDCX6N): the defaults, so a local package matches the release workflow's (whose repository variables hold
+# the same values)
+DEFAULT_NAME = "KA1WARE.LYNXSHARE"
+DEFAULT_PUBLISHER = "CN=BACBB786-A595-4AC3-9807-A70EAA268E4C"
+DEFAULT_DISPLAY = "KA1WARE"
 UNSIGNED_OID = "OID.2.25.311729368913984317654407730594956997722=1"
 APP_FILES = ("LYNX.exe", "lynx-asio.dll")  # (lynx-asio32.dll is for registering with 32-bit hosts: not in the package)
 
@@ -47,9 +50,9 @@ def main(argv):
     ap.add_argument("--version", required=True)
     ap.add_argument("--bin", required=True, help="folder with LYNX.exe (and lynx-asio.dll)")
     ap.add_argument("--out", required=True)
-    ap.add_argument("--identity-name", default=os.environ.get("MSIX_IDENTITY_NAME") or PLACEHOLDER_NAME)
-    ap.add_argument("--publisher", default=os.environ.get("MSIX_PUBLISHER") or PLACEHOLDER_PUBLISHER)
-    ap.add_argument("--publisher-display", default=os.environ.get("MSIX_PUBLISHER_DISPLAY") or PLACEHOLDER_DISPLAY)
+    ap.add_argument("--identity-name", default=os.environ.get("MSIX_IDENTITY_NAME") or DEFAULT_NAME)
+    ap.add_argument("--publisher", default=os.environ.get("MSIX_PUBLISHER") or DEFAULT_PUBLISHER)
+    ap.add_argument("--publisher-display", default=os.environ.get("MSIX_PUBLISHER_DISPLAY") or DEFAULT_DISPLAY)
     ap.add_argument("--display-name", default=os.environ.get("MSIX_DISPLAY_NAME") or "LYNX SHARE")
     ap.add_argument("--test-identity", action="store_true")
     ap.add_argument("--loose", action="store_true",

+ 5 - 2
store/CHECKLIST.pt-BR.md

@@ -3,6 +3,9 @@
 Tudo o que dá para preparar já está no repositório (pacote MSIX, textos, imagens). Falta o que só você pode fazer:
 a conta e os cliques de envio. Detalhes técnicos: `docs/STORE.md`.
 
+> **Feito (27/10):** conta criada, nome **LYNX SHARE** reservado e as variáveis do GitHub preenchidas (identidade
+> `KA1WARE.LYNXSHARE`, Store ID `9NQRFBFDCX6N`). Siga a partir do passo 4. Os passos 1–3 ficam aqui para referência.
+
 ## 1. Criar a conta (grátis, uma vez)
 
 1. Abra <https://storedeveloper.microsoft.com> → **Get started** / **Começar** → entre com sua conta Microsoft.
@@ -47,8 +50,8 @@ quê — me mande o texto.
 
 ## 5. Depois que estiver no ar
 
-- Me passe o link da página (`https://apps.microsoft.com/detail/<ID>`): eu ligo o botão **"Microsoft Store
-  (recomendado)"** no site (já está pronto num branch) e publico.
+- Me avise: eu ligo o botão **"Microsoft Store (recomendado)"** no site (já pronto no branch `wip/store165-site`,
+  apontando para `https://apps.microsoft.com/detail/9NQRFBFDCX6N`) e publico.
 - Novas versões: Partner Center → LYNX → **Atualizar** → Pacotes → envie o novo `.msix` → Novidades → Enviar.
 - Opcional: Windows → Configurações → Sistema → Para desenvolvedores → **Modo de desenvolvedor** permite eu testar
   o pacote instalado neste PC sem pedir administrador (hoje está desligado; o teste foi feito no GitHub Actions).