@@ -115,21 +115,19 @@ steps:
115
115
includeRootFolder : false
116
116
archiveType : zip
117
117
archiveFile : $(Build.StagingDirectory)\vscode-arduino.vsix
118
- - script : python .\build\markExecutableFiles.py
119
- displayName : Make serial monitor executable
120
118
- task : MSBuild@1
121
119
displayName : Sign VSIX
122
120
inputs :
123
121
solution : .\build\SignVsix.proj
124
122
msbuildArguments : /p:SignType=$(SignType)
125
123
# MicroBuild signing will always fail on public PRs.
126
- # TODO: Signing the VSIX strips out the "main" executables for
127
- # serial-monitor-cli on Mac and Linux, completely breaking serial
128
- # functionality in the extension on these platforms. For now we disable VSIX
129
- # signing because it's not a strict requirement, but we should investigate
130
- # if we can either add extensions to these files or support extensionless
131
- # files in VSIX signing.
132
- condition : and(false, ne(variables['Build.Reason'], 'PullRequest'))
124
+ 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
133
131
- publish : $(Build.StagingDirectory)\vscode-arduino.vsix
134
132
artifact : VS Code extension VSIX
135
133
displayName : Publish extension VSIX as artifact
0 commit comments