File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 8383 Invoke-RestMethod -Uri "$alistUrl/api/fs/put" -Method Put -InFile $appxFile.FullName -Headers $headers
8484
8585 Write-Host "Upload complete: $remotePath"
86+
87+ - name : Update AppInstaller Config
88+ shell : powershell
89+ run : |
90+ # 1. 获取构建好的 Appx 文件名来提取版本号
91+ $appxFile = Get-ChildItem -Path "Packaging" -Filter "MaiChartManager_Canary_*.appx" | Select-Object -First 1
92+ if (-not $appxFile) { throw "Appx file not found for version extraction!" }
93+
94+ # 2. 提取版本号 (假设文件名格式为 MaiChartManager_Canary_1.2.3.4.appx)
95+ $version = $appxFile.Name -replace 'MaiChartManager_Canary_', '' -replace '.appx', ''
96+ Write-Host "Detected Version: $version"
97+
98+ # 3. 执行更新脚本
99+ & "D:\sign\mcm-canary-update.ps1" -Version $version
You can’t perform that action at this time.
0 commit comments