fix(ci): create deployment manifest via mage -New Deployment (not -Update of copy)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -298,11 +298,18 @@ jobs:
|
||||
& "$env:MAGE" -Sign "$appFilesDir/MarcusLaw.OutlookAddin.dll.manifest" -CertHash $thumb -TimeStampUri http://timestamp.digicert.com
|
||||
if ($LASTEXITCODE -ne 0) { throw "mage -Sign app manifest failed" }
|
||||
|
||||
Copy-Item "$appFilesDir/MarcusLaw.OutlookAddin.dll.manifest" "$publishDir/OutlookAddin.vsto"
|
||||
& "$env:MAGE" -Update "$publishDir/OutlookAddin.vsto" `
|
||||
# Create the deployment manifest (.vsto) directly via -New Deployment.
|
||||
# Don't copy-then-Update -- mage rejects an Application manifest fed
|
||||
# to -Update because the schema differs.
|
||||
& "$env:MAGE" -New Deployment `
|
||||
-ToFile "$publishDir/OutlookAddin.vsto" `
|
||||
-Name "Marcus-Law OutlookAddin" `
|
||||
-Version $version `
|
||||
-AppManifest "$appFilesDir/MarcusLaw.OutlookAddin.dll.manifest" `
|
||||
-ProviderUrl "$env:PROVIDER_URL" -Publisher "Marcus-Law" -Install true
|
||||
if ($LASTEXITCODE -ne 0) { throw "mage -Update deployment manifest failed" }
|
||||
-ProviderUrl "$env:PROVIDER_URL" `
|
||||
-Publisher "Marcus-Law" `
|
||||
-Install true
|
||||
if ($LASTEXITCODE -ne 0) { throw "mage -New Deployment failed" }
|
||||
|
||||
& "$env:MAGE" -Sign "$publishDir/OutlookAddin.vsto" -CertHash $thumb -TimeStampUri http://timestamp.digicert.com
|
||||
if ($LASTEXITCODE -ne 0) { throw "mage -Sign deployment manifest failed" }
|
||||
|
||||
Reference in New Issue
Block a user