Skip to content

Commit 0edc2f1

Browse files
committed
MSIX: Partner Center identity (KanakPrabhakar.MEDHIDE)
1 parent 7f08924 commit 0edc2f1

3 files changed

Lines changed: 7 additions & 16 deletions

File tree

‎.github/workflows/windows-msix.yml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ jobs:
2424
run: packaging\windows\fetch_toolchains.ps1
2525
- name: Build MSIX (includes MEDHA.exe --selftest with bundled GCC)
2626
shell: pwsh
27-
env:
28-
MSIX_IDENTITY_NAME: ${{ vars.MSIX_IDENTITY_NAME }}
29-
MSIX_PUBLISHER: ${{ vars.MSIX_PUBLISHER }}
30-
MSIX_PUBLISHER_DISPLAY: ${{ vars.MSIX_PUBLISHER_DISPLAY }}
3127
run: packaging\windows\build_msix.ps1
3228
- uses: actions/upload-artifact@v4
3329
with:

‎packaging/windows/AppxManifest.xml‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,21 @@
22
<!--
33
MEDHĀ IDE — MSIX manifest (Microsoft Store, free Individual developer account).
44
WHAT: describes the packaged Win32 app (MEDHA.exe) to Windows and the Store.
5-
WHY placeholders: Identity Name / Publisher / PublisherDisplayName MUST be copied
6-
from Partner Center → your app → Product identity. Wrong values = Store rejects
7-
the upload, so they are never guessed. build_msix.ps1 replaces __VERSION__.
5+
Identity values copied from Partner Center → Product identity (23 Oct 2026).
6+
They are public (every installed MSIX shows them), so they live in the repo. build_msix.ps1 replaces __VERSION__.
87
runFullTrust: required for a classic desktop (Win32) app; nothing else is requested.
98
-->
109
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
1110
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
1211
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
1312
IgnorableNamespaces="uap rescap">
14-
<Identity Name="__PARTNER_CENTER_IDENTITY_NAME__"
15-
Publisher="__PARTNER_CENTER_PUBLISHER_CN__"
13+
<Identity Name="KanakPrabhakar.MEDHIDE"
14+
Publisher="CN=D47E0796-ADF8-4726-BE39-DCBB2D6B664D"
1615
Version="__VERSION__"
1716
ProcessorArchitecture="x64" />
1817
<Properties>
1918
<DisplayName>MEDHĀ IDE</DisplayName>
20-
<PublisherDisplayName>__PUBLISHER_DISPLAY_NAME__</PublisherDisplayName>
19+
<PublisherDisplayName>KanakPrabhakar</PublisherDisplayName>
2120
<Logo>Assets\StoreLogo.png</Logo>
2221
</Properties>
2322
<Dependencies>

‎packaging/windows/build_msix.ps1‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
# FLOW: icons → PyInstaller one-folder → --selftest (real compile with bundled GCC)
44
# → layout + AppxManifest (version from medha/__init__.py) → makeappx pack → zip
55
$ErrorActionPreference = "Stop"
6-
# Partner Center → Product identity values come from GitHub repo variables
7-
# (MSIX_IDENTITY_NAME, MSIX_PUBLISHER, MSIX_PUBLISHER_DISPLAY) — never guessed.
8-
foreach ($v in "MSIX_IDENTITY_NAME","MSIX_PUBLISHER","MSIX_PUBLISHER_DISPLAY") {
9-
if (-not (Get-Item "env:$v" -ErrorAction SilentlyContinue)) { throw "Set repo variable $v (Partner Center → Product identity)" }
10-
}
6+
# Identity values are in AppxManifest.xml (copied from Partner Center → Product identity).
117
$root = Resolve-Path "$PSScriptRoot\..\.."
128
Set-Location $root
139
$ver = (python -c "import medha;print(medha.__version__)").Trim()
@@ -20,7 +16,7 @@ python -m PyInstaller --noconfirm --distpath dist packaging\windows\medha_window
2016
& dist\MEDHA\MEDHA.exe --selftest | Tee-Object -Variable st
2117
if ($LASTEXITCODE -ne 0) { throw "MEDHA.exe --selftest failed" }
2218
Copy-Item -Recurse dist\MEDHA "$layout\MEDHA"
23-
(Get-Content packaging\windows\AppxManifest.xml -Raw).Replace("__VERSION__", $msixVer).Replace("__PARTNER_CENTER_IDENTITY_NAME__", $env:MSIX_IDENTITY_NAME).Replace("__PARTNER_CENTER_PUBLISHER_CN__", $env:MSIX_PUBLISHER).Replace("__PUBLISHER_DISPLAY_NAME__", $env:MSIX_PUBLISHER_DISPLAY) | Set-Content "$layout\AppxManifest.xml" -Encoding utf8
19+
(Get-Content packaging\windows\AppxManifest.xml -Raw).Replace("__VERSION__", $msixVer) | Set-Content "$layout\AppxManifest.xml" -Encoding utf8
2420
$makeappx = Get-ChildItem "${env:ProgramFiles(x86)}\Windows Kits\10\bin\*\x64\makeappx.exe" | Sort-Object FullName -Descending | Select-Object -First 1
2521
& $makeappx.FullName pack /d $layout /p "dist\MEDHA-$ver.msix" /o
2622
if ($LASTEXITCODE -ne 0) { throw "makeappx failed" }

0 commit comments

Comments
 (0)