Skip to content

Commit f4e30a8

Browse files
committed
handle readonly binaries when signing
1 parent f279c35 commit f4e30a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CreateMsix.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ try {
3131
throw "$MakePriPath new failed with exit code ${LastExitCode}"
3232
}
3333

34+
Set-ItemProperty -Path .\dist\bin\ecsact.exe -Name IsReadOnly -Value $false
35+
Set-ItemProperty -Path .\dist\bin\ecsact_rtb.exe -Name IsReadOnly -Value $false
36+
3437
& $SignToolPath sign `
3538
/debug /fd SHA384 `
3639
/f $CertPath `
@@ -43,6 +46,9 @@ try {
4346
throw "Signing dist binaries failed with exit code ${LastExitCode}"
4447
}
4548

49+
Set-ItemProperty -Path .\dist\bin\ecsact.exe -Name IsReadOnly -Value $true
50+
Set-ItemProperty -Path .\dist\bin\ecsact_rtb.exe -Name IsReadOnly -Value $true
51+
4652
& $MakeAppxPath pack /v /o /h SHA384 /d .\dist\ /p $MsixPath
4753

4854
if(-not $?) {

0 commit comments

Comments
 (0)