Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit a4a4f3a

Browse files
committed
Mark executable files after signing
1 parent fae7d26 commit a4a4f3a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

azure-pipelines.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,19 @@ steps:
115115
includeRootFolder: false
116116
archiveType: zip
117117
archiveFile: $(Build.StagingDirectory)\vscode-arduino.vsix
118-
- script: python .\build\markExecutableFiles.py
119-
displayName: Make serial monitor executable
120118
- task: MSBuild@1
121119
displayName: Sign VSIX
122120
inputs:
123121
solution: .\build\SignVsix.proj
124122
msbuildArguments: /p:SignType=$(SignType)
125123
# MicroBuild signing will always fail on public PRs.
126124
condition: ne(variables['Build.Reason'], 'PullRequest')
125+
# VSIX signing removes the executable attributes on files. Luckily, the
126+
# signature only seems to be based on the content of the files, not the
127+
# attributes, so we can safely go back and mark the serial monitor as
128+
# executable without invalidating the signature.
129+
- script: python .\build\markExecutableFiles.py
130+
displayName: Make serial monitor executable
127131
- publish: $(Build.StagingDirectory)\vscode-arduino.vsix
128132
artifact: VS Code extension VSIX
129133
displayName: Publish extension VSIX as artifact

0 commit comments

Comments
 (0)