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

Commit fd921c3

Browse files
committed
Switch from serial-monitor-cli to node-serialport
1 parent 08eabe6 commit fd921c3

10 files changed

+247
-405
lines changed

azure-pipelines.yml

-6
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,6 @@ steps:
122122
msbuildArguments: /p:SignType=$(SignType)
123123
# MicroBuild signing will always fail on public PRs.
124124
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
131125
- publish: $(Build.StagingDirectory)\vscode-arduino.vsix
132126
artifact: VS Code extension VSIX
133127
displayName: Publish extension VSIX as artifact

build/SignFiles.proj

-8
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@
1313
<FilesToSign Include="$(OutDir)\**\*.js" Exclude="$(OutDir)\**\node_modules\**\*.js">
1414
<Authenticode>Microsoft400</Authenticode>
1515
</FilesToSign>
16-
<!-- Authenticode only works on Windows files. If we get the ability to sign Linux and Mac executables, the signing
17-
steps should probably move to the serial-monitor-cli repo instead of doing all the signing here. -->
18-
<FilesToSign Include="$(OutDir)\out\serial-monitor-cli\win32\*.exe">
19-
<Authenticode>Microsoft400</Authenticode>
20-
</FilesToSign>
21-
<FilesToSign Include="$(OutDir)\out\serial-monitor-cli\win32\*.dll">
22-
<Authenticode>Microsoft400</Authenticode>
23-
</FilesToSign>
2416
<FilesToSign Include="$(OutDir)\**\node_modules\**\*.js">
2517
<Authenticode>3PartyScriptsSHA2</Authenticode>
2618
</FilesToSign>

build/markExecutableFiles.py

-31
This file was deleted.

gulpfile.js

+1-23
Original file line numberDiff line numberDiff line change
@@ -63,28 +63,6 @@ gulp.task("node_modules-webpack", (done) => {
6363
});
6464
});
6565

66-
gulp.task("insert-serial-monitor-cli", async (done) => {
67-
const platforms = [
68-
"linux",
69-
"darwin",
70-
"win32",
71-
];
72-
const release = "latest";
73-
const destDir = path.resolve("out", "serial-monitor-cli");
74-
75-
async function downloadAndUnzip(platform) {
76-
const fileName = `${platform}.zip`;
77-
const zipPath = path.join(destDir, fileName);
78-
await download(`https://github.com/microsoft/serial-monitor-cli/releases/${release}/download/${fileName}`,
79-
destDir,
80-
);
81-
await extract(zipPath, { dir: path.join(destDir, platform) });
82-
fs.rmSync(zipPath);
83-
}
84-
85-
Promise.all(platforms.map(downloadAndUnzip)).then(done);
86-
});
87-
8866
gulp.task("ts-compile", () => {
8967
const tsProject = ts.createProject("./tsconfig.json");
9068
return tsProject.src()
@@ -156,7 +134,7 @@ gulp.task("test", (done) => {
156134
});
157135
});
158136

159-
gulp.task("build", gulp.series("clean", "ts-compile", "html-webpack", "node_modules-webpack", "insert-serial-monitor-cli"));
137+
gulp.task("build", gulp.series("clean", "ts-compile", "html-webpack", "node_modules-webpack"));
160138

161139
gulp.task("build_without_view", gulp.series("clean", "ts-compile"));
162140

0 commit comments

Comments
 (0)